File: Makefile.am

package info (click to toggle)
freeciv 2.6.2-1~bpo10+1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 212,500 kB
  • sloc: ansic: 443,831; cpp: 29,541; sh: 7,982; makefile: 7,886; python: 1,933; xml: 945
file content (322 lines) | stat: -rw-r--r-- 7,997 bytes parent folder | download | duplicates (4)
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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
## Process this file with automake to produce Makefile.in

## Must be set before adding anything
GUI_SUBDIRS =

desktopfiledir = @DESKTOPDIR@
appdatafiledir = @APPDATADIR@

desktopfile_DATA =
appdatafile_DATA =

if CLIENT_GUI_SDL
GUI_SUBDIRS += gui-sdl
desktopfile_DATA += \
	freeciv-sdl.desktop
appdatafile_DATA += \
	freeciv-sdl.appdata.xml
endif
if CLIENT_GUI_SDL2
GUI_SUBDIRS += gui-sdl2
desktopfile_DATA += \
	freeciv-sdl2.desktop
appdatafile_DATA += \
	freeciv-sdl2.appdata.xml
endif
if CLIENT_GUI_GTK_2_0
GUI_SUBDIRS += gui-gtk-2.0
desktopfile_DATA += \
	freeciv-gtk2.desktop
appdatafile_DATA += \
	freeciv-gtk2.appdata.xml
endif
if CLIENT_GUI_GTK_3_22
GUI_SUBDIRS += gui-gtk-3.22
desktopfile_DATA += \
	freeciv-gtk3.22.desktop
appdatafile_DATA += \
	freeciv-gtk3.22.appdata.xml
endif
if CLIENT_GUI_GTK_3_0
GUI_SUBDIRS += gui-gtk-3.0
desktopfile_DATA += \
	freeciv.desktop
appdatafile_DATA += \
	freeciv-gtk3.appdata.xml
endif
if CLIENT_GUI_XAW
GUI_SUBDIRS += gui-xaw
endif
if CLIENT_GUI_QT
GUI_SUBDIRS += gui-qt
desktopfile_DATA += \
	freeciv-qt.desktop
appdatafile_DATA += \
	freeciv-qt.appdata.xml
endif
if CLIENT_GUI_STUB
GUI_SUBDIRS += gui-stub
endif

ALL_AUDIO_SDL_FILES=audio_sdl.c audio_sdl.h

if AUDIO_SDL
AUDIO_SDL_FILES=$(ALL_AUDIO_SDL_FILES)
endif

if MINGW
CLIENTICON=../win32/clienticon.o
endif

EXTRA_DIST= $(ALL_AUDIO_SDL_FILES)

## This is usually false, so "include" is not recursed into 
## by 'make', but it can be enabled in configure, and it is
## necessary to have something like this so that the include 
## directory is included for 'make dist'.
if MAKE_CLIENT_INCLUDE
CLI_INCLUDE = include
else
CLI_INCLUDE = 
endif

SUBDIRS = $(GUI_SUBDIRS) $(CLI_INCLUDE) agents luascript

AM_CPPFLAGS = \
	-I$(top_srcdir)/utility -I$(srcdir)/include \
	-I$(top_srcdir)/common -I$(top_srcdir)/common/aicore \
	-I$(top_srcdir)/common/scriptcore \
	-I$(srcdir)/luascript -I$(srcdir)/agents \
	$(CLIENT_CFLAGS) $(SOUND_CFLAGS) \
	-I$(top_srcdir)/dependencies/cvercmp

AM_LIBTOOLFLAGS = --preserve-dup-deps

# Build client common functionality in to library
# instead linking them directly to the client. This is necessary
# for static linking.
freeciv_client_src = $(AUDIO_SDL_FILES) \
	attribute.h	\
	attribute.c	\
	citydlg_common.c \
	citydlg_common.h \
	cityrepdata.c	\
	cityrepdata.h	\
	client_main.c	\
	client_main.h	\
	chatline_common.c \
	chatline_common.h \
	connectdlg_common.c \
	connectdlg_common.h \
	climisc.c	\
	climisc.h	\
	climap.c	\
	climap.h	\
	clinet.c	\
	clinet.h	\
	colors_common.c		\
	colors_common.h		\
	control.c	\
	control.h	\
	editor.c 		\
	editor.h 		\
	global_worklist.c	\
	global_worklist.h	\
	goto.c		\
	goto.h		\
	helpdata.c	\
	helpdata.h	\
	luaconsole_common.c	\
	luaconsole_common.h	\
	mapctrl_common.c \
	mapctrl_common.h \
	mapview_common.c \
	mapview_common.h \
	messagewin_common.c \
	messagewin_common.h \
	music.c		\
	music.h		\
	overview_common.c	\
	overview_common.h	\
	packhand.c	\
	packhand.h	\
	packhand_gen.h	\
	packhand_gen.c	\
	plrdlg_common.c \
	plrdlg_common.h \
	options.c	\
	options.h	\
	repodlgs_common.c \
	repodlgs_common.h \
	reqtree.c \
	reqtree.h \
	servers.c		\
	servers.h		\
	text.c	\
	text.h	\
	themes_common.c	\
	themes_common.h	\
	tilespec.c	\
	tilespec.h	\
	unitselect_common.c	\
	unitselect_common.h	\
	update_queue.c	\
	update_queue.h	\
	voteinfo.c	\
	voteinfo.h	\
	zoom.c		\
	zoom.h		\
	audio.c         \
	audio.h         \
	audio_none.c    \
	audio_none.h

gui_interface_src = \
	gui_interface.c \
	gui_interface.h

gui_cbs_src = \
	gui_cbsetter.c \
	gui_cbsetter.h

# packhand_gen.c & packhand_gen.h are generated files, but as they are
# generated outside this directory (when building common) there's no point in
# setting them to BUILT_SOURCES.

# These files are not generated to builddir, but to srcdir */
MAINTAINERCLEANFILES = $(srcdir)/packhand_gen.c $(srcdir)/packhand_gen.h

bin_PROGRAMS =
noinst_LTLIBRARIES =

clientlibs = \
 $(top_builddir)/common/scriptcore/libscriptcore.la \
 $(top_builddir)/client/agents/libagents.la \
 $(top_builddir)/client/luascript/libscripting_client.la \
 $(top_builddir)/dependencies/cvercmp/libcvercmp.la

if CLIENT_GUI_GTK_2_0
bin_PROGRAMS += freeciv-gtk2
noinst_LTLIBRARIES += libfcgui-gtk2.la
libfcgui_gtk2_la_SOURCES = $(freeciv_client_src)
libfcgui_gtk2_la_LIBADD = gui-gtk-2.0/libgui-gtk2.la $(clientlibs)
freeciv_gtk2_SOURCES = dummy.c
freeciv_gtk2_LDFLAGS = $(gui_gtk2_ldflags)
freeciv_gtk2_LDADD = \
 $(SOUND_LIBS) \
 libfcgui-gtk2.la \
 $(top_builddir)/common/libfreeciv.la \
 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
 $(MAPIMG_WAND_LIBS) \
 $(gui_gtk2_libs)
endif

if CLIENT_GUI_GTK_3_22
bin_PROGRAMS += freeciv-gtk3.22
noinst_LTLIBRARIES += libfcgui-gtk3_22.la
libfcgui_gtk3_22_la_SOURCES = $(freeciv_client_src)
libfcgui_gtk3_22_la_LIBADD = gui-gtk-3.22/libgui-gtk3_22.la $(clientlibs)
freeciv_gtk3_22_SOURCES = dummy.c
freeciv_gtk3_22_LDFLAGS = $(gui_gtk3_22_ldflags)
freeciv_gtk3_22_LDADD = \
 $(SOUND_LIBS) \
 libfcgui-gtk3_22.la \
 $(top_builddir)/common/libfreeciv.la \
 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
 $(MAPIMG_WAND_LIBS) \
 $(gui_gtk3_22_libs)
endif

if CLIENT_GUI_GTK_3_0
bin_PROGRAMS += freeciv-gtk3
noinst_LTLIBRARIES += libfcgui-gtk3.la
libfcgui_gtk3_la_SOURCES = $(freeciv_client_src)
libfcgui_gtk3_la_LIBADD = gui-gtk-3.0/libgui-gtk3.la $(clientlibs)
freeciv_gtk3_SOURCES = dummy.c
freeciv_gtk3_LDFLAGS = $(gui_gtk3_ldflags)
freeciv_gtk3_LDADD = \
 $(SOUND_LIBS) \
 libfcgui-gtk3.la \
 $(top_builddir)/common/libfreeciv.la \
 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
 $(MAPIMG_WAND_LIBS) \
 $(gui_gtk3_libs)
endif

if CLIENT_GUI_SDL
bin_PROGRAMS += freeciv-sdl
noinst_LTLIBRARIES += libfcgui-sdl.la
libfcgui_sdl_la_SOURCES = $(freeciv_client_src)
libfcgui_sdl_la_LIBADD = gui-sdl/libgui-sdl.la $(clientlibs)
freeciv_sdl_SOURCES = dummy.c
freeciv_sdl_LDFLAGS = $(gui_sdl_ldflags)
freeciv_sdl_LDADD = \
 $(gui_sdl_libs) \
 libfcgui-sdl.la \
 $(top_builddir)/common/libfreeciv.la \
 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
 $(MAPIMG_WAND_LIBS) \
 $(gui_sdl_libs)
endif

if CLIENT_GUI_SDL2
bin_PROGRAMS += freeciv-sdl2
noinst_LTLIBRARIES += libfcgui-sdl2.la
libfcgui_sdl2_la_SOURCES = $(freeciv_client_src)
libfcgui_sdl2_la_LIBADD = gui-sdl2/libgui-sdl2.la $(clientlibs)
freeciv_sdl2_SOURCES = dummy.c
freeciv_sdl2_LDFLAGS = $(gui_sdl2_ldflags)
freeciv_sdl2_LDADD = \
 $(gui_sdl2_libs) \
 libfcgui-sdl2.la \
 $(top_builddir)/common/libfreeciv.la \
 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
 $(MAPIMG_WAND_LIBS) \
 $(gui_sdl2_libs)
endif

if CLIENT_GUI_XAW
bin_PROGRAMS += freeciv-xaw
noinst_LTLIBRARIES += libfcgui-xaw.la
libfcgui_xaw_la_SOURCES = $(freeciv_client_src)
libfcgui_xaw_la_LIBADD = gui-xaw/libgui-xaw.la $(clientlibs)
freeciv_xaw_SOURCES = dummy.c
freeciv_xaw_LDFLAGS = $(gui_xaw_ldflags)
freeciv_xaw_LDADD = \
 libfcgui-xaw.la \
 $(top_builddir)/common/libfreeciv.la \
 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
 $(MAPIMG_WAND_LIBS) \
 $(gui_xaw_libs)
endif

if CLIENT_GUI_QT
bin_PROGRAMS += freeciv-qt
noinst_LTLIBRARIES += libfcgui-qt.la
libfcgui_qt_la_SOURCES = $(freeciv_client_src)
libfcgui_qt_la_LIBADD = gui-qt/libgui-qt.la $(clientlibs)
freeciv_qt_SOURCES = dummycxx.cpp $(gui_interface_src)
freeciv_qt_LDFLAGS = $(gui_qt_ldflags)
freeciv_qt_LDADD = \
 $(SOUND_LIBS) \
 libfcgui-qt.la \
 $(top_builddir)/common/libfreeciv.la \
 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
 $(MAPIMG_WAND_LIBS) \
 $(gui_qt_libs)
endif

if CLIENT_GUI_STUB
bin_PROGRAMS += freeciv-stub
noinst_LTLIBRARIES += libfcgui-stub.la
libfcgui_stub_la_SOURCES = $(freeciv_client_src)
libfcgui_stub_la_LIBADD = gui-stub/libgui-stub.la $(clientlibs)
freeciv_stub_SOURCES = $(gui_interface_src) $(gui_cbs_src)
freeciv_stub_LDFLAGS = $(gui_stub_ldflags)
freeciv_stub_LDADD = \
 libfcgui-stub.la \
 $(top_builddir)/common/libfreeciv.la \
 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
 $(MAPIMG_WAND_LIBS) \
 $(gui_stub_libs)
endif