-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.defs
279 lines (243 loc) · 7.08 KB
/
Makefile.defs
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
#
# ScummC Makefile.defs
# Copyright (C) 2005-2006 Alban Bedel
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##
## This makefile define all the programs that can be built.
##
VERSION = 0.2.0
## We start by defining the different groups. By default only the
## first group is built. Group names MUST be in capital.
##
GROUPS= \
PROGS \
UTILS \
## We make 2 groups, one for the really usefull stuff
## and one with all the little utilities.
PROGS= \
scc \
sld \
boxedit \
cost \
char \
midi \
soun \
costview \
scvm \
UTILS= \
zpnn2bmp \
rd \
imgsplit \
imgremap \
raw2voc \
palcat \
TESTS= \
road \
road7 \
openquest \
##
## Each program must have a x_SRCS defined with all the source it
## need. If the program requiere some libs they must be listed in
## x_LIBS. If the program can optionaly use some lib put them
## in x_OPT_LIBS
##
## All the source needing special cflags must be put the
## corresponding lib_SRCS. Be careful a source can't be
## listed in several lib_SRCS at once. For more complexe
## lib dependency one can use some "virtual" lib:
##
## myprog_SRCS = long.c list.c of.c sources.c
## myprog_LIBS = LIBMYPROG
##
## HAVE_LIBMYPROG = $(HAVE_GTK)
##
## LIBMYPROG_CFLAGS= $(GTK_CFLAGS) $(LIBOPT_CFLAGS)
## LIBMYPROG_LDFLAGS = $(GTK_LDFLAGS) $(LIBOPT_LDFLAGS)
##
##
## LIBMYPROG_SRCS = $(myprog_SRCS)
##
## LIBS = LIBMYPROG ... GTK LIBOPT ....
##
## If a program have many sources and make bork out with
## 'virtual memory exhausted' look at Makefile.target.
scc_SRCS= \
scc_parse.tab.c \
scc_util.c \
scc_ns.c \
scc_target.c \
scc_roobj.c \
scc_img.c \
quantize.c \
scc_code.c \
code.c \
write.c \
scc_lex.c \
scc_lexer.c \
scc_fd.c \
scc_param.c \
sld_SRCS= \
scc_ld.c \
scc_ns.c \
scc_target.c \
scc_code.c \
scc_fd.c \
scc_param.c \
scc_util.c \
boxedit_SRCS= \
read.c \
write.c \
scc_fd.c \
scc_cost.c \
scc_img.c \
quantize.c \
scc_param.c \
boxedit.c \
scc_util.c \
scc_box.c \
boxedit_LIBS= \
GTK \
cost_SRCS= \
cost_parse.tab.c \
scc_fd.c \
scc_param.c \
scc_img.c \
quantize.c \
scc_util.c \
scc_lex.c \
cost_lexer.c \
char_SRCS= \
char.c \
scc_fd.c \
scc_param.c \
scc_img.c \
quantize.c \
scc_util.c \
scc_char.c \
char_OPT_LIBS= \
FT \
midi_SRCS= \
midi.c \
scc_smf.c \
scc_fd.c \
scc_param.c \
scc_util.c \
soun_SRCS= \
soun.c \
scc_fd.c \
scc_param.c \
scc_util.c \
costview_SRCS= \
code.c \
decode.c \
read.c \
write.c \
scc_util.c \
scc_fd.c \
scc_cost.c \
costview.c \
scc_img.c \
quantize.c \
scc_param.c \
costview_LIBS= \
GTK \
scvm_SRCS= \
scvm.c \
scvm_dbg.c \
scvm_res.c \
scvm_thread.c \
scvm_op.c \
scvm_view.c \
scvm_actor.c \
scvm_object.c \
scvm_verb.c \
scvm_string.c \
scc_fd.c \
scc_util.c \
scc_param.c \
scc_cost.c \
scc_char.c \
scc_box.c \
decode.c \
scvm_LIBS= \
SDL \
m \
scvm_OPT_LIBS= \
READLINE \
## Utils
rd_SRCS= \
code.c \
decode.c \
read.c \
write.c \
scc_util.c \
scc_fd.c \
scc_cost.c \
rd.c \
zpnn2bmp_SRCS= \
zpnn2bmp.c \
scc_fd.c \
scc_param.c \
decode.c \
scc_img.c \
quantize.c \
scc_util.c \
imgsplit_SRCS= \
imgsplit.c \
scc_img.c \
quantize.c \
scc_fd.c \
scc_param.c \
scc_util.c \
imgremap_SRCS= \
imgremap.c \
scc_img.c \
quantize.c \
scc_fd.c \
scc_param.c \
scc_util.c \
raw2voc_SRCS= \
raw2voc.c \
scc_fd.c \
scc_param.c \
scc_util.c \
palcat_SRCS= \
palcat.c \
scc_img.c \
quantize.c \
scc_fd.c \
scc_param.c \
scc_util.c \
##
## All the libs we have
##
LIBS = \
GTK \
FT \
SDL \
READLINE \
## Source needing gtk
GTK_SRCS = \
costview.c \
boxedit.c \
## Source needing freetype
FT_SRCS = \
char.c \
SDL_SRCS = \
scvm.c \
READLINE = \
scvm_dbg.c \