1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = aicore networking scriptcore
5 lib_LTLIBRARIES = libfreeciv.la
8 -I$(top_srcdir)/utility \
10 -I$(srcdir)/networking \
11 -I$(srcdir)/scriptcore \
12 -I$(top_srcdir)/dependencies/tinycthread \
13 $(MAPIMG_WAND_CFLAGS) $(JANSSON_CFLAGS)
15 libfreeciv_la_SOURCES = \
133 EXTRA_libfreeciv_la_DEPENDENCIES = \
134 $(top_builddir)/utility/libcivutility.la \
135 $(top_builddir)/common/aicore/libaicore.la \
136 $(top_builddir)/common/networking/libfcivnetwork.la \
137 $(top_builddir)/common/scriptcore/libscriptcore.la
139 libfreeciv_la_LIBADD = \
140 $(top_builddir)/utility/libcivutility.la \
141 $(top_builddir)/common/aicore/libaicore.la \
142 $(top_builddir)/common/networking/libfcivnetwork.la \
143 $(top_builddir)/common/scriptcore/libscriptcore.la \
146 BUILT_SOURCES = packets_gen.c packets_gen.h
148 # ./generate_packets.py makes both packets_gen.[ch]
150 # Feed the dependence through a fake intermediate file to avoid
151 # a race condition in a parallel build (like make -j2).
153 # Currently we run the generation directly into the source directory.
154 # Ideally we'd generate the new files into the build directory but first we'd
155 # have to resolve conflicts (since there could then be 2 copies).
156 packets_gen.h packets_gen.c: packets_generate
157 .INTERMEDIATE: packets_generate
158 packets_generate: networking/packets.def generate_packets.py
159 cd $(srcdir) && ./generate_packets.py
160 touch packets_generate
162 # These files are not generated to builddir, but to srcdir */
163 MAINTAINERCLEANFILES = \
164 $(srcdir)/packets_gen.h \
165 $(srcdir)/packets_gen.c
168 BUILT_SOURCES += fc_svnrev_gen.h
171 BUILT_SOURCES += fc_gitrev_gen.h
174 .PHONY : fc_svnrev_gen.h fc_gitrev_gen.h
177 "$(top_srcdir)/bootstrap/generate_svnrev.sh" "$(top_srcdir)" "$(top_builddir)"
180 "$(top_srcdir)/bootstrap/generate_gitrev.sh" "$(top_srcdir)" "$(top_builddir)"