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

APP =		perf

OPTIMIZER =	-g

TARGETS =	rom

CFILES =	main.c int0.c

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_d -lgcc

default:	$(TARGETS)

include $(COMMONRULES)

install:	default

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

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