Makefile.irix 1.04 KB
#!smake -k
#
# 	NuSystem highreso Program 
#
#	Copyright (C) 1997, NINTENDO Co,Ltd.
#

include $(ROOT)/usr/include/make/PRdefs

#
# NUSYS LIBRARY
#
#
N64KITDIR	=	/usr/local/n64kit/nusys
NUSYSINCDIR	=	$(N64KITDIR)/include
NUSYSLIBDIR	=	$(N64KITDIR)/lib

APP 		=	gbptest

OPTIMIZER 	=	-g

TARGETS 	=	rom

TEXHFILES 	=

HFILES 		= 	localdef.h

CODEFILES   	= 	main.c menu.c funccheck.c graphics.c

CODEOBJECTS	=	$(CODEFILES:.c=.o) $(NUSYSLIBDIR)/nusys.o

DATAFILES   	=

DATAOBJECTS	=	$(DATAFILES:.c=.o)

CODESEGMENT	=	codesegment.o

OBJECTS		=	$(CODESEGMENT) $(DATAOBJECTS)


LCDEFS =
LCINCS =	-I. -I$(NUSYSINCDIR) -I$(ROOT)/usr/include/PR
LCOPTS =	-Xcpluscomm -fullwarn -wlint,-f -woff 813,819,826,827,852 -non_shared -G 0
LDFLAGS =	$(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib   -L$(NUSYSLIBDIR) -L$(NUAULIBDIR) -lnusys_d  -lultra_d

LDIRT  =	$(APP)

default:	$(TARGETS)

include $(COMMONRULES)

$(CODESEGMENT):	$(CODEOBJECTS)
		$(LD) -o $(CODESEGMENT) -r $(CODEOBJECTS) $(LDFLAGS)

rom $(APP):	spec $(OBJECTS) $(MAKEROM)
		$(MAKEROM) -r rom -I$(NUSYSINCDIR) spec