Makefile 1.7 KB

include $(WORKAREA)/PR/PRdefs
include $(COMMONRULES)

CPPC = $(TOOLROOT)/usr/bin/CC

CFILES = 	Main.c++ \
		CnfgMgr.c++ \
		EditMgr.c++ \
		Editor.c++ \
		ReverbEdit.c++ \
		BankEdit.c++ \
		InstEdit.c++ \
		MidiMain.c++ \
		AssetMgr.c++ \
		List.c++ \
		Assets.c++ \
		AEReverb.c++ \
		AEBankFile.c++ \
		AEBank.c++ \
		AEInst.c++ \
		AESound.c++ \
		AEKeymap.c++ \
		AEEnvlp.c++ \
		AEWavet.c++ \
		AELoop.c++ \
		AEBook.c++ \
		Hash.c++ \
		FileMgr.c++ \
		GioMgr.c++ \
		U64Dev.c++


ROMOBJ = rom.o
XLIBS = -lultrahost -lmd -lXm -lXt -lXmu -lX11
N64LIB = -L -L$(ROOT)/usr/lib -L/usr/lib
NOWARN = -woff 3262,3252
MAKED = -MDupdate Makedepend 
N64INCS = -I$(ROOT)/usr/include -I$(ROOT)/usr/include/PR -I$(ROOT)/PR/libultra/include
TARGETS = AudioEditor

default: $(TARGETS)

APPOBJECTS = $(CFILES:.c++=.o)

$(APPOBJECTS): 
	$(CPPC) -c -g -o $@ $(N64INCS) $(NOWARN) $(MAKED) $*.c++

$(TARGETS): $(APPOBJECTS) $(ROMOBJ)
	$(CPPC) -g -o $@ $(APPOBJECTS) $(ROMOBJ) $(N64LIB) $(XLIBS)

clobber: $(_FORCE)
	rm -f *.o AudioEditor Makedepend



CODEFILES =	AudioApp.c \
		audio.c \
		sched.c \
		gfx.c \
		gfxcfb.c \
		gfxyield.c \
		gfxinit.c \
		gfxstack.c \
		font.c


CODEOBJECTS =	$(CODEFILES:.c=.o)
CODESEGMENT =	codesegment.o
LCINCS =	-I. -I$(ROOT)/usr/include/PR -I$(ROOT)/PR/libultra/include
LCOPTS =	-fullwarn -non_shared -G 0
LDFLAGS =	-nostdlib -L$(ROOT)/usr/lib -L$(ROOT)/usr/lib/PR -lultra_d
AUDIOLIBS =     $(ROOT)/PR/libultra/libultra/libultra.a


$(CODESEGMENT):	$(CODEOBJECTS) $(AUDIOLIBS) 
		$(LD) -m -o $(CODESEGMENT) -r $(CODEOBJECTS) $(LDFLAGS) > load.map

rom :	spec $(CODESEGMENT)
	$(MAKEROM) -r rom spec

rom.c: rom romcvt
	romcvt 

romcvt: romcvt.c
	$(HOST_CC) romcvt.c -o romcvt

rom.o: rom.c
	$(CC) -c -o rom.o rom.c