GNUmakefile 1.04 KB
# --------------------------------------------------------------------
#        Copyright (C) 1998 Nintendo. (Originated by SGI)
#        
#        $RCSfile: GNUmakefile,v $
#        $Revision: 1.1 $
#        $Date: 2003/04/05 17:49:42 $
# --------------------------------------------------------------------
include $(ROOT)/usr/include/make/PRdefs

APP =		corefunc

OPTIMIZER =	-g

TARGETS =	rom

BOOT0_CFILES =	boot0.c

BOOT0_OBJECTS =	$(BOOT0_CFILES:.c=.o)

BOOT1_CFILES =	boot1.c

BOOT1_OBJECTS=	$(BOOT1_CFILES:.c=.o)

LCINCS =	-I. -I$(ROOT)/usr/include/PR
LCOPTS =	-Wall -non_shared -G 0 -mips2

LASINCS =	$(LCINCS)
LASOPTS =	-non_shared -G 0 -mips2

LDIRT  =	$(APP)

LDFLAGS =	$(MKDEPOPT) -L$(ROOT)/usr/lib -lultra -lgcc

default:	$(TARGETS)

include $(COMMONRULES)

install:	default

boot0obj.o:	$(BOOT0_OBJECTS) $(ROOT)/usr/lib/libultra.a
		$(LD) -o $@ -r $(BOOT0_OBJECTS) $(LDFLAGS)

boot1obj.o:	$(BOOT1_OBJECTS) $(ROOT)/usr/lib/libultra.a
		$(LD) -o $@ -r $(BOOT1_OBJECTS) $(LDFLAGS)

rom $(APP):	spec boot0obj.o boot1obj.o $(MAKEROM)
		$(MAKEROM) -r rom spec