Makefile 543 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 =	-fullwarn -non_shared -G 0

LDIRT  =	$(APP)

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

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