Moved make_escapes() and remove_escapes() to support.c.
[freeciv.git] / server / Makefile.am
blob896df918e0b0b54b65f61b5c7ab56e24e4bd216d
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = advisors generator scripting
5 if FREECIV_WEB
6 srvbin = freeciv-web
7 else
8 srvbin = freeciv-server
9 endif
11 if SERVER
12 bin_PROGRAMS = $(srvbin)
13 endif
15 lib_LTLIBRARIES = libfreeciv-srv.la
16 AM_CPPFLAGS = \
17         -I$(top_srcdir)/ai \
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)
28 if MINGW
29 SERVERICON=../win32/servericon.o
30 endif
32 exe_sources = \
33                 civserver.c
35 libfreeciv_srv_la_SOURCES = \
36                 actiontools.c   \
37                 actiontools.h   \
38                 aiiface.c       \
39                 aiiface.h       \
40                 animals.c       \
41                 animals.h       \
42                 auth.c          \
43                 auth.h          \
44                 barbarian.c     \
45                 barbarian.h     \
46                 citizenshand.c  \
47                 citizenshand.h  \
48                 cityhand.c      \
49                 cityhand.h      \
50                 citytools.c     \
51                 citytools.h     \
52                 cityturn.c      \
53                 cityturn.h      \
54                 commands.c      \
55                 commands.h      \
56                 connecthand.c   \
57                 connecthand.h   \
58                 console.c       \
59                 console.h       \
60                 diplhand.c      \
61                 diplhand.h      \
62                 diplomats.c     \
63                 diplomats.h     \
64                 edithand.c      \
65                 edithand.h      \
66                 fcdb.c          \
67                 fcdb.h          \
68                 gamehand.c      \
69                 gamehand.h      \
70                 handchat.c      \
71                 handchat.h      \
72                 hand_gen.h      \
73                 hand_gen.c      \
74                 maphand.c       \
75                 maphand.h       \
76                 meta.c          \
77                 meta.h          \
78                 mood.c          \
79                 mood.h          \
80                 notify.c        \
81                 notify.h        \
82                 plrhand.c       \
83                 plrhand.h       \
84                 report.c        \
85                 report.h        \
86                 rssanity.c      \
87                 rssanity.h      \
88                 ruleset.c       \
89                 ruleset.h       \
90                 sanitycheck.c   \
91                 sanitycheck.h   \
92                 savecompat.c    \
93                 savecompat.h    \
94                 savegame.c      \
95                 savegame.h      \
96                 savegame2.c     \
97                 savegame2.h     \
98                 score.c         \
99                 score.h         \
100                 sernet.c        \
101                 sernet.h        \
102                 settings.c      \
103                 settings.h      \
104                 spacerace.c     \
105                 spacerace.h     \
106                 srv_log.c       \
107                 srv_log.h       \
108                 srv_main.c      \
109                 srv_main.h      \
110                 stdinhand.c     \
111                 stdinhand.h     \
112                 techtools.h     \
113                 techtools.c     \
114                 unithand.c      \
115                 unithand.h      \
116                 unittools.c     \
117                 unittools.h     \
118                 voting.c        \
119                 voting.h
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.
125 da_libs = 
127 if AI_MOD_DEFAULT_NEEDED
128 da_libs += $(top_builddir)/ai/default/libdefaultai.la
129 endif
131 if AI_MOD_STATIC_CLASSIC
132 da_libs += $(top_builddir)/ai/classic/libclassicai.la
133 endif
134 if AI_MOD_STATIC_THREADED
135 da_libs += $(top_builddir)/ai/threaded/libthreadedai.la
136 endif
137 if AI_MOD_STATIC_STUB
138 da_libs += $(top_builddir)/ai/stub/libstubai.la
139 endif
141 # These files are not generated to builddir, but to srcdir */
142 MAINTAINERCLEANFILES = \
143         $(srcdir)/hand_gen.c \
144         $(srcdir)/hand_gen.h
146 srvlibs = \
147  $(da_libs) \
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)
158 exe_ldflags =
160 exe_ldadd = \
161  ./libfreeciv-srv.la \
162  $(top_builddir)/common/libfreeciv.la \
163  $(INTLLIBS) \
164  $(MAPIMG_WAND_LIBS) \
165  $(SERVER_LIBS) $(SERVERICON)
167 if FREECIV_WEB
168 freeciv_web_SOURCES = $(exe_sources)
169 freeciv_web_LDFLAGS = $(exe_ldflags)
170 freeciv_web_LDADD = $(exe_ldadd)
171 else
172 freeciv_server_SOURCES = $(exe_sources)
173 freeciv_server_LDFLAGS = $(exe_ldflags)
174 freeciv_server_LDADD = $(exe_ldadd)
175 endif
177 desktopfiledir = @DESKTOPDIR@
178 desktopfile_DATA = \
179         freeciv-server.desktop
181 appdatafiledir = @APPDATADIR@
182 appdatafile_DATA = \
183         freeciv-server.appdata.xml