GNUmakefile 542 Bytes
include $(ROOT)/usr/include/make/PRdefs

APP =		rgtest

OPTIMIZER =	-g

TARGETS =	rom

CODE_CFILES =	rgtest.c parse.c

CODE_OBJECTS=	$(CODE_CFILES:.c=.o)

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

LDIRT  =	$(APP)

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

default:	$(TARGETS)

include $(COMMONRULES)

install:	default

code.o:		$(CODE_OBJECTS) $(ROOT)/usr/lib/libultra_d.a
		$(LD) -o code.o -r $(CODE_OBJECTS) $(LDFLAGS)

rom $(APP):	spec code.o memory.o $(MAKEROM)
		$(MAKEROM) -r rom spec