1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = advisors generator scripting
8 srvbin = freeciv-server
12 bin_PROGRAMS = $(srvbin)
15 lib_LTLIBRARIES = libfreeciv-srv.la
18 -I$(top_srcdir)/ai/classic \
19 -I$(top_srcdir)/common \
20 -I$(top_srcdir)/common/aicore \
21 -I$(top_srcdir)/common/networking \
22 -I$(top_srcdir)/common/scriptcore \
23 -I$(top_srcdir)/utility \
24 -I$(srcdir)/advisors \
25 -I$(srcdir)/generator \
26 -I$(srcdir)/scripting \
27 -I$(top_srcdir)/dependencies/tinycthread \
28 $(FCDB_MYSQL_CFLAGS) $(FCDB_POSTGRES_CFLAGS) $(FCDB_SQLITE3_CFLAGS)
31 SERVERICON=../windows/servericon.o
37 libfreeciv_srv_la_SOURCES = \
127 # hand_gen.c & hand_gen.h are generated files, but as they are generated
128 # outside this directory (when building common) there's no point in
129 # setting them to BUILT_SOURCES.
133 if AI_MOD_DEFAULT_NEEDED
134 da_libs += $(top_builddir)/ai/default/libdefaultai.la
137 if AI_MOD_STATIC_CLASSIC
138 da_libs += $(top_builddir)/ai/classic/libclassicai.la
140 if AI_MOD_STATIC_THREADED
141 da_libs += $(top_builddir)/ai/threaded/libthreadedai.la
144 da_libs += $(top_builddir)/ai/tex/libtexai.la
146 if AI_MOD_STATIC_STUB
147 da_libs += $(top_builddir)/ai/stub/libstubai.la
150 # These files are not generated to builddir, but to srcdir */
151 MAINTAINERCLEANFILES = \
152 $(srcdir)/hand_gen.c \
157 $(top_builddir)/ai/libaicommon.la \
158 $(top_builddir)/server/advisors/libadvisors.la \
159 $(top_builddir)/server/generator/libgenerator.la \
160 $(top_builddir)/server/scripting/libscripting_fcdb.la \
161 $(top_builddir)/server/scripting/libscripting_server.la
163 libfreeciv_srv_la_LIBADD = \
164 $(srvlibs) $(SRV_LIB_LIBS) \
165 $(LUA_LIBS) $(TOLUA_LIBS) $(LUASQL_LIBS)
170 ./libfreeciv-srv.la \
171 $(top_builddir)/common/libfreeciv.la \
173 $(MAPIMG_WAND_LIBS) \
175 $(SERVER_LIBS) $(SERVERICON)
178 freeciv_web_SOURCES = $(exe_sources)
179 freeciv_web_LDFLAGS = $(exe_ldflags)
180 freeciv_web_LDADD = $(exe_ldadd)
182 freeciv_server_SOURCES = $(exe_sources)
183 freeciv_server_LDFLAGS = $(exe_ldflags)
184 freeciv_server_LDADD = $(exe_ldadd)
187 desktopfiledir = @DESKTOPDIR@
189 freeciv-server.desktop
191 appdatafiledir = @APPDATADIR@
193 freeciv-server.appdata.xml