Makefile
1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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