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 = \
135 EXTRA_libfreeciv_la_DEPENDENCIES = \
136 $(top_builddir)/utility/libcivutility.la \
137 $(top_builddir)/common/aicore/libaicore.la \
138 $(top_builddir)/common/networking/libfcivnetwork.la \
139 $(top_builddir)/common/scriptcore/libscriptcore.la
141 libfreeciv_la_LIBADD = \
142 $(top_builddir)/utility/libcivutility.la \
143 $(top_builddir)/common/aicore/libaicore.la \
144 $(top_builddir)/common/networking/libfcivnetwork.la \
145 $(top_builddir)/common/scriptcore/libscriptcore.la \
148 BUILT_SOURCES = packets_gen.c packets_gen.h
150 # ./generate_packets.py makes both packets_gen.[ch]
152 # Feed the dependence through a fake intermediate file to avoid
153 # a race condition in a parallel build (like make -j2).
155 # Currently we run the generation directly into the source directory.
156 # Ideally we'd generate the new files into the build directory but first we'd
157 # have to resolve conflicts (since there could then be 2 copies).
158 packets_gen.h packets_gen.c: packets_generate
159 .INTERMEDIATE: packets_generate
160 packets_generate: networking/packets.def generate_packets.py
161 cd $(srcdir) && ./generate_packets.py
162 touch packets_generate
164 # These files are not generated to builddir, but to srcdir */
165 MAINTAINERCLEANFILES = \
166 $(srcdir)/packets_gen.h \
167 $(srcdir)/packets_gen.c
170 BUILT_SOURCES += fc_svnrev_gen.h
173 BUILT_SOURCES += fc_gitrev_gen.h
176 .PHONY : fc_svnrev_gen.h fc_gitrev_gen.h
179 "$(top_srcdir)/bootstrap/generate_svnrev.sh" "$(top_srcdir)" "$(top_builddir)"
182 "$(top_srcdir)/bootstrap/generate_gitrev.sh" "$(top_srcdir)" "$(top_builddir)"