1 ## Process this file with automake to produce Makefile.in
3 ## Must be set before adding anything
6 desktopfiledir = @DESKTOPDIR@
7 appdatafiledir = @APPDATADIR@
13 GUI_SUBDIRS += gui-sdl
17 freeciv-sdl.appdata.xml
20 GUI_SUBDIRS += gui-sdl2
24 freeciv-sdl2.appdata.xml
27 GUI_SUBDIRS += gui-gtk-2.0
31 freeciv-gtk2.appdata.xml
33 if CLIENT_GUI_GTK_3_22
34 GUI_SUBDIRS += gui-gtk-3.22
38 freeciv-gtk3.appdata.xml
41 GUI_SUBDIRS += gui-gtk-3.0
45 freeciv-gtk3.appdata.xml
48 GUI_SUBDIRS += gui-xaw
55 freeciv-qt.appdata.xml
58 GUI_SUBDIRS += gui-stub
61 ALL_AUDIO_SDL_FILES=audio_sdl.c audio_sdl.h
64 AUDIO_SDL_FILES=$(ALL_AUDIO_SDL_FILES)
68 CLIENTICON=../win32/clienticon.o
71 EXTRA_DIST= $(ALL_AUDIO_SDL_FILES)
73 ## This is usually false, so "include" is not recursed into
74 ## by 'make', but it can be enabled in configure, and it is
75 ## necessary to have something like this so that the include
76 ## directory is included for 'make dist'.
77 if MAKE_CLIENT_INCLUDE
83 SUBDIRS = $(GUI_SUBDIRS) $(CLI_INCLUDE) agents luascript
86 -I$(top_srcdir)/utility -I$(srcdir)/include \
87 -I$(top_srcdir)/common -I$(top_srcdir)/common/aicore \
88 -I$(top_srcdir)/common/scriptcore \
89 -I$(srcdir)/luascript -I$(srcdir)/agents \
90 $(CLIENT_CFLAGS) $(SOUND_CFLAGS) \
91 -I$(top_srcdir)/dependencies/cvercmp
93 AM_LIBTOOLFLAGS = --preserve-dup-deps
95 # Build client common functionality in to library
96 # instead linking them directly to the client. This is necessary
98 freeciv_client_src = $(AUDIO_SDL_FILES) \
109 connectdlg_common.c \
110 connectdlg_common.h \
129 luaconsole_common.c \
130 luaconsole_common.h \
135 messagewin_common.c \
136 messagewin_common.h \
161 unitselect_common.c \
162 unitselect_common.h \
174 gui_interface_src = \
182 # packhand_gen.c & packhand_gen.h are generated files, but as they are
183 # generated outside this directory (when building common) there's no point in
184 # setting them to BUILT_SOURCES.
186 # These files are not generated to builddir, but to srcdir */
187 MAINTAINERCLEANFILES = $(srcdir)/packhand_gen.c $(srcdir)/packhand_gen.h
193 $(top_builddir)/common/scriptcore/libscriptcore.la \
194 $(top_builddir)/client/agents/libagents.la \
195 $(top_builddir)/client/luascript/libscripting_client.la \
196 $(top_builddir)/dependencies/cvercmp/libcvercmp.la
198 if CLIENT_GUI_GTK_2_0
199 bin_PROGRAMS += freeciv-gtk2
200 noinst_LTLIBRARIES += libfcgui-gtk2.la
201 libfcgui_gtk2_la_SOURCES = $(freeciv_client_src)
202 libfcgui_gtk2_la_LIBADD = gui-gtk-2.0/libgui-gtk2.la $(clientlibs)
203 freeciv_gtk2_SOURCES = dummy.c
204 freeciv_gtk2_LDFLAGS = $(gui_gtk2_ldflags)
205 freeciv_gtk2_LDADD = \
208 $(top_builddir)/common/libfreeciv.la \
209 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
210 $(MAPIMG_WAND_LIBS) \
214 if CLIENT_GUI_GTK_3_22
215 bin_PROGRAMS += freeciv-gtk3.22
216 noinst_LTLIBRARIES += libfcgui-gtk3_22.la
217 libfcgui_gtk3_22_la_SOURCES = $(freeciv_client_src)
218 libfcgui_gtk3_22_la_LIBADD = gui-gtk-3.22/libgui-gtk3_22.la $(clientlibs)
219 freeciv_gtk3_22_SOURCES = dummy.c
220 freeciv_gtk3_22_LDFLAGS = $(gui_gtk3_22_ldflags)
221 freeciv_gtk3_22_LDADD = \
223 libfcgui-gtk3_22.la \
224 $(top_builddir)/common/libfreeciv.la \
225 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
226 $(MAPIMG_WAND_LIBS) \
230 if CLIENT_GUI_GTK_3_0
231 bin_PROGRAMS += freeciv-gtk3
232 noinst_LTLIBRARIES += libfcgui-gtk3.la
233 libfcgui_gtk3_la_SOURCES = $(freeciv_client_src)
234 libfcgui_gtk3_la_LIBADD = gui-gtk-3.0/libgui-gtk3.la $(clientlibs)
235 freeciv_gtk3_SOURCES = dummy.c
236 freeciv_gtk3_LDFLAGS = $(gui_gtk3_ldflags)
237 freeciv_gtk3_LDADD = \
240 $(top_builddir)/common/libfreeciv.la \
241 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
242 $(MAPIMG_WAND_LIBS) \
247 bin_PROGRAMS += freeciv-sdl
248 noinst_LTLIBRARIES += libfcgui-sdl.la
249 libfcgui_sdl_la_SOURCES = $(freeciv_client_src)
250 libfcgui_sdl_la_LIBADD = gui-sdl/libgui-sdl.la $(clientlibs)
251 freeciv_sdl_SOURCES = dummy.c
252 freeciv_sdl_LDFLAGS = $(gui_sdl_ldflags)
253 freeciv_sdl_LDADD = \
256 $(top_builddir)/common/libfreeciv.la \
257 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
258 $(MAPIMG_WAND_LIBS) \
263 bin_PROGRAMS += freeciv-sdl2
264 noinst_LTLIBRARIES += libfcgui-sdl2.la
265 libfcgui_sdl2_la_SOURCES = $(freeciv_client_src)
266 libfcgui_sdl2_la_LIBADD = gui-sdl2/libgui-sdl2.la $(clientlibs)
267 freeciv_sdl2_SOURCES = dummy.c
268 freeciv_sdl2_LDFLAGS = $(gui_sdl2_ldflags)
269 freeciv_sdl2_LDADD = \
272 $(top_builddir)/common/libfreeciv.la \
273 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
274 $(MAPIMG_WAND_LIBS) \
279 bin_PROGRAMS += freeciv-xaw
280 noinst_LTLIBRARIES += libfcgui-xaw.la
281 libfcgui_xaw_la_SOURCES = $(freeciv_client_src)
282 libfcgui_xaw_la_LIBADD = gui-xaw/libgui-xaw.la $(clientlibs)
283 freeciv_xaw_SOURCES = dummy.c
284 freeciv_xaw_LDFLAGS = $(gui_xaw_ldflags)
285 freeciv_xaw_LDADD = \
287 $(top_builddir)/common/libfreeciv.la \
288 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
289 $(MAPIMG_WAND_LIBS) \
294 bin_PROGRAMS += freeciv-qt
295 noinst_LTLIBRARIES += libfcgui-qt.la
296 libfcgui_qt_la_SOURCES = $(freeciv_client_src)
297 libfcgui_qt_la_LIBADD = gui-qt/libgui-qt.la $(clientlibs)
298 freeciv_qt_SOURCES = dummycxx.cpp $(gui_interface_src)
299 freeciv_qt_LDFLAGS = $(gui_qt_ldflags)
303 $(top_builddir)/common/libfreeciv.la \
304 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
305 $(MAPIMG_WAND_LIBS) \
310 bin_PROGRAMS += freeciv-stub
311 noinst_LTLIBRARIES += libfcgui-stub.la
312 libfcgui_stub_la_SOURCES = $(freeciv_client_src)
313 libfcgui_stub_la_LIBADD = gui-stub/libgui-stub.la $(clientlibs)
314 freeciv_stub_SOURCES = $(gui_interface_src) $(gui_cbs_src)
315 freeciv_stub_LDFLAGS = $(gui_stub_ldflags)
316 freeciv_stub_LDADD = \
318 $(top_builddir)/common/libfreeciv.la \
319 $(INTLLIBS) $(CLIENT_LIBS) $(SOUND_LIBS) $(CLIENTICON) \
320 $(MAPIMG_WAND_LIBS) \