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/scriptcore \
22 -I$(top_srcdir)/utility \
23 -I$(srcdir)/advisors \
24 -I$(srcdir)/generator \
25 -I$(srcdir)/scripting \
26 $(FCDB_MYSQL_CFLAGS) $(FCDB_POSTGRES_CFLAGS) $(FCDB_SQLITE3_CFLAGS)
29 SERVERICON=../win32/servericon.o
35 libfreeciv_srv_la_SOURCES = \
121 # hand_gen.c & hand_gen.h are generated files, but as they are generated
122 # outside this directory (when building common) there's no point in
123 # setting them to BUILT_SOURCES.
127 if AI_MOD_DEFAULT_NEEDED
128 da_libs += $(top_builddir)/ai/default/libdefaultai.la
131 if AI_MOD_STATIC_CLASSIC
132 da_libs += $(top_builddir)/ai/classic/libclassicai.la
134 if AI_MOD_STATIC_THREADED
135 da_libs += $(top_builddir)/ai/threaded/libthreadedai.la
137 if AI_MOD_STATIC_STUB
138 da_libs += $(top_builddir)/ai/stub/libstubai.la
141 # These files are not generated to builddir, but to srcdir */
142 MAINTAINERCLEANFILES = \
143 $(srcdir)/hand_gen.c \
148 $(top_builddir)/ai/libaicommon.la \
149 $(top_builddir)/server/advisors/libadvisors.la \
150 $(top_builddir)/server/generator/libgenerator.la \
151 $(top_builddir)/server/scripting/libscripting_fcdb.la \
152 $(top_builddir)/server/scripting/libscripting_server.la
154 libfreeciv_srv_la_LIBADD = \
155 $(srvlibs) $(SRV_LIB_LIBS) \
156 $(LUA_LIBS) $(TOLUA_LIBS) $(LUASQL_LIBS)
161 ./libfreeciv-srv.la \
162 $(top_builddir)/common/libfreeciv.la \
164 $(MAPIMG_WAND_LIBS) \
165 $(SERVER_LIBS) $(SERVERICON)
168 freeciv_web_SOURCES = $(exe_sources)
169 freeciv_web_LDFLAGS = $(exe_ldflags)
170 freeciv_web_LDADD = $(exe_ldadd)
172 freeciv_server_SOURCES = $(exe_sources)
173 freeciv_server_LDFLAGS = $(exe_ldflags)
174 freeciv_server_LDADD = $(exe_ldadd)
177 desktopfiledir = @DESKTOPDIR@
179 freeciv-server.desktop
181 appdatafiledir = @APPDATADIR@
183 freeciv-server.appdata.xml