Makefile
3.31 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
include $(ROOT)/PR/PRdefs
include $(COMMONRULES)
CPPC = $(TOOLROOT)/usr/bin/CC
# Audioeditor files
AEFILES = main.c++\
MidiMain.c++\
AeMain.c++\
AeAssetWindow.c++\
AeBankWindow.c++\
AeBinView.c++\
AeListUI.c++\
AeTabPanelUI.c++\
AePopupUI.c++\
AeClient.c++\
AeEditor.c++\
AePlayer.c++\
AeBinEditor.c++\
AeBinEditorNotify.c++\
AeBinEditorEdit.c++\
AeAssetEditor.c++\
AeBankEditor.c++\
AeAssetBinUI.c++\
AeAssetUI.c++\
AeFieldUI.c++\
AeStringFieldUI.c++\
AeIntFieldUI.c++\
AeFloatFieldUI.c++\
AeRefFieldUI.c++\
AeContainerFieldUI.c++\
AeKeyFieldUI.c++\
AeDelayFieldUI.c++\
AeTypeFieldUI.c++\
AeIconFieldUI.c++\
AeAssetBase.c++\
AeAssetBin.c++\
AeAsset.c++\
AeBankAsset.c++\
AeInstAsset.c++\
AeSoundAsset.c++\
AeEnvAsset.c++\
AeKeymapAsset.c++\
AeWaveAsset.c++\
AeLoopAsset.c++\
AeBookAsset.c++\
AeFxAsset.c++\
AeFxSxnAsset.c++\
AeFile.c++\
AeAssetFile.c++\
AeBankFile.c++\
AeWaveFile.c++\
AeInstFile.c++\
AeInstList.c++\
AeInstHash.c++\
AeConfig.c++\
AeN64Driver.c++\
AeN64DriverMenu.c++\
AeN64DriverNotify.c++\
AeN64DriverFx.c++\
AeN64DriverConfig.c++\
AeN64Config.c++\
AeN64ConfigFile.c++\
GioMgr.c++\
AeUtils.c++\
AeUnitTest.c++\
AeErr.c++\
GList.c++\
List.c++\
Hash.c++\
ieeexdbl.c \
unimplemented.c++\
$(NULL)
# ViewKit args
HELPLIB= -lvkhelp
VIEWKITFLAGS= -I$(ROOT)/usr/include/Vk
TOOLTALKLIBS=
EZLIB = -lvkEZ
VIEWKITLIBS= $(TOOLTALKLIBS) $(EZLIB) -lvk $(HELPLIB) -lSgm -lXpm
XLIBS = -lXm -lXt -lXmu -lX11 -laudiofile -lmd
AELIBS = -L -L$(ROOT)/usr/lib -lultrahost # -lmalloc_cv
AEINCS = -I$(ROOT)/usr/include -I$(ROOT)/usr/include/PR -I$(ROOT)/PR/libultra/include
NOWARN = -woff 3262
MAKED = -MDupdate Makedepend
TARGETS = ie
LC++FLAGS = -g $(AEINCS) $(NOWARN) $(MAKED)
YACCOBJ = AeInstFile.y.o AeInstFile.l.o
ROMOBJ = rom.o
#
# lex and yacc files
#
NOWARN_YACC = -woff 3203,3262,3255
YFLAGS = -vdl
AeInstFile.y.o: AeInstFile.y y.tab.h y.tab.c
$(CPPC) -c -g -o $@ $(AEINCS) $(NOWARN_YACC) y.tab.c -o AeInstFile.y.o
AeInstFile.l.o: AeInstFile.l y.tab.h
lex AeInstFile.l
$(CPPC) -c -g -o $@ $(AEINCS) $(NOWARN_YACC) lex.yy.c -o AeInstFile.l.o
y.tab.h y.tab.c: AeInstFile.y
rm -f y.tab.h y.output
$(YACCF) AeInstFile.y
AeInstFile.c++: y.tab.h
y.tab.c: y.tab.h
#
# Ae files
#
default: $(YACCOBJ) $(TARGETS)
APPOBJECTS = $(AEFILES:.c++=.o)
$(TARGETS): $(YACCOBJ) $(APPOBJECTS) $(ROMOBJ)
$(CPPC) -g -o $@ $(YACCOBJ) $(APPOBJECTS) $(ROMOBJ) $(VIEWKITLIBS) $(AELIBS) $(XLIBS)\
-lgen -lm -lfileicon libXbae.a
exports install: default
$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)
$(INSTALL) -m 666 -F /usr/src/PR/assets/banks ie.cnfg
#
# n64 files
#
N64FILES = n64main.c \
audio.c \
sched.c \
gfx.c \
gfxcfb.c \
gfxyield.c \
gfxinit.c \
gfxstack.c
N64OBJECTS = $(N64FILES:.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): $(N64OBJECTS) $(AUDIOLIBS)
$(LD) -m -o $(CODESEGMENT) -r $(N64OBJECTS) $(LDFLAGS) > load.map
rom: spec $(CODESEGMENT)
$(MAKEROM) spec
rom.c: rom romcvt
romcvt
romcvt: romcvt.c
$(CC) romcvt.c -o romcvt
rom.o: rom.c
$(CC) -c -o rom.o rom.c