forked from quadra-game/quadra
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
255 lines (237 loc) · 5.45 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -Im4
datagamesdir = $(datadir)/games
pixmapsdir = $(datadir)/pixmaps
noinst_PROGRAMS = wadder dumpwad test_version
if APP_BUNDLE
noinst_PROGRAMS += Quadra.app quadra
Quadra_app_SOURCES =
else
bin_PROGRAMS = quadra
datagames_DATA = quadra.res
pixmaps_DATA = images/quadra.xpm
endif
CLEANFILES = quadra.res $(EXTRA_PROGRAMS)
AM_CPPFLAGS = \
-DDATAGAMESDIR='"$(datagamesdir)"' $(SDL2_CFLAGS) $(BOOST_CPPFLAGS)
AM_LDFLAGS = $(BOOST_LDFLAGS)
EXTRA_DIST = \
ChangeLog \
LICENSE \
NEWS.md \
README.md \
VisualC++ \
demos \
fonts \
images \
packages/quadra.nsi \
packages/quadra.nsi.in \
packages/quadra.spec.in \
packages/readme-win32.txt \
packages/readme-win32.txt.in \
packages/winzip_icone.ico \
quadra.spec \
resources.txt \
server \
crypt.pl \
sons \
stats \
textes
quadra_LDFLAGS = $(AM_LDFLAGS)
if APP_BUNDLE
quadra_LDFLAGS += -rpath @executable_path/../Frameworks
endif
quadra_LDADD = $(SDL2_LIBS) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB)
quadra_SOURCES = \
source/attack.h \
source/bitmap.cc \
source/bitmap.h \
source/bloc.cc \
source/bloc.h \
source/buf.cc \
source/buf.h \
source/canvas.cc \
source/canvas.h \
source/cfgfile.cc \
source/cfgfile.h \
source/chat_text.cc \
source/chat_text.h \
source/clipable.cc \
source/clipable.h \
source/clock.cc \
source/clock.h \
source/color.cc \
source/color.h \
source/command.cc \
source/command.h \
source/crypt.cc \
source/crypt.h \
source/cursor.cc \
source/cursor.h \
source/dict.cc \
source/dict.h \
source/error.cc \
source/error.h \
source/fonts.cc \
source/fonts.h \
source/game.cc \
source/game.h \
source/game_menu.cc \
source/game_menu.h \
source/global.cc \
source/global.h \
source/highscores.cc \
source/highscores.h \
source/http_post.cc \
source/http_post.h \
source/http_request.cc \
source/http_request.h \
source/id.cc \
source/id.h \
source/image.h \
source/image_png.cc \
source/image_png.h \
source/input.cc \
source/input.h \
source/inter.cc \
source/inter.h \
source/listbox.cc \
source/listbox.h \
source/main.cc \
source/main.h \
source/menu.cc \
source/menu.h \
source/menu_base.cc \
source/menu_base.h \
source/menu_demo_central.cc \
source/menu_demo_central.h \
source/misc.cc \
source/misc.h \
source/multi_player.cc \
source/multi_player.h \
source/net.cc \
source/net.h \
source/net_buf.h \
source/net_call.h \
source/net_list.cc \
source/net_list.h \
source/net_server.cc \
source/net_server.h \
source/net_stuff.cc \
source/net_stuff.h \
source/nglog.cc \
source/nglog.h \
source/notify.cc \
source/notify.h \
source/overmind.cc \
source/overmind.h \
source/packet.cc \
source/packet.h \
source/packets.cc \
source/packets.h \
source/palette.cc \
source/palette.h \
source/pane.cc \
source/pane.h \
source/player.cc \
source/player.h \
source/qserv.cc \
source/qserv.h \
source/quadra.cc \
source/quadra.h \
source/random.cc \
source/random.h \
source/recording.cc \
source/recording.h \
source/res.cc \
source/res.h \
source/res_compress.cc \
source/res_compress.h \
source/res_name.cc \
source/res_name.h \
source/resfile.cc \
source/resfile.h \
source/resmanager.cc \
source/resmanager.h \
source/score.cc \
source/score.h \
source/sons.cc \
source/sons.h \
source/sound.cc \
source/sound.h \
source/sprite.cc \
source/sprite.h \
source/stats.cc \
source/stats.h \
source/stringtable.cc \
source/stringtable.h \
source/texte.h \
source/types.h \
source/unicode.cc \
source/unicode.h \
source/update.cc \
source/update.h \
source/url.cc \
source/url.h \
source/version.h \
source/video.cc \
source/video.h \
source/video_dumb.cc \
source/video_dumb.h \
source/zone.cc \
source/zone.h \
source/zone_list.cc \
source/zone_list.h \
source/zone_text_clock.cc \
source/zone_text_clock.h
# FIXME: we use SDL_Log in wadder, should avoid.
wadder_LDADD = $(SDL2_LIBS) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB)
wadder_SOURCES = \
source/error.cc \
source/error.h \
source/res.cc \
source/res.h \
source/resfile.cc \
source/resfile.h \
source/resmanager.cc \
source/resmanager.h \
source/stringtable.cc \
source/stringtable.h \
source/wadder.cc
# FIXME: we use SDL_Log in dumpwad, should avoid.
dumpwad_LDADD = $(SDL2_LIBS)
dumpwad_SOURCES = \
source/dumpwad.cc \
source/error.cc \
source/error.h \
source/res.cc \
source/res.h \
source/resfile.cc \
source/resfile.h \
source/resmanager.cc
test_version_SOURCES = \
source/test_version.cc
# Validate that the version strings are consistent when we make a distribution.
dist-hook: test_version
$(AM_V_at)./test_version
# FIXME: Ideally, we would have a variable here listing the resource, instead
# of having them in a separate file, so we could use them for EXTRA_DIST well
# as dependencies (the shell call-out is a GNU make extension). But this would
# make it more difficult to build from Windows without extra tools.
quadra.res: resources.txt wadder$(EXEEXT) $(shell cat $(srcdir)/resources.txt)
$(AM_V_GEN)./wadder$(EXEEXT) $(srcdir)/ $@ $^ || rm -f $@
if APP_BUNDLE
Quadra.app: quadra$(EXEEXT) quadra.res
rm -rf $@
$(MKDIR_P) $@/Contents/MacOS
$(MKDIR_P) $@/Contents/Resources
echo "APPL????" > $@/Contents/PkgInfo
$(INSTALL_PROGRAM) quadra$(EXEEXT) $@/Contents/MacOS
$(INSTALL_PROGRAM) quadra.res $@/Contents/Resources
clean-local:
-rm -rf Quadra.app
install-exec-hook: Quadra.app
$(MKDIR_P) $(DESTDIR)/Applications
cp -R $^ $(DESTDIR)/Applications
uninstall-hook:
rm -rf $(DESTDIR)/Applications/Quadra.app
endif