Stop sharing requirement_unit_state_ereq().
[freeciv.git] / common / Makefile.am
blobf21d9cc55f7ee8f73446ffba4d3e92e008878247
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = aicore networking scriptcore
5 lib_LTLIBRARIES = libfreeciv.la
7 AM_CPPFLAGS = \
8         -I$(top_srcdir)/utility \
9         -I$(srcdir)/aicore \
10         -I$(srcdir)/networking \
11         -I$(srcdir)/scriptcore \
12         -I$(top_srcdir)/dependencies/tinycthread \
13         $(MAPIMG_WAND_CFLAGS) $(JANSSON_CFLAGS)
15 libfreeciv_la_SOURCES = \
16                 achievements.c  \
17                 achievements.h  \
18                 actions.c       \
19                 actions.h       \
20                 ai.c            \
21                 ai.h            \
22                 base.c          \
23                 base.h          \
24                 borders.c       \
25                 borders.h       \
26                 calendar.c      \
27                 calendar.h      \
28                 capstr.c        \
29                 capstr.h        \
30                 chat.h          \
31                 citizens.c      \
32                 citizens.h      \
33                 city.c          \
34                 city.h          \
35                 clientutils.c   \
36                 clientutils.h   \
37                 combat.c        \
38                 combat.h        \
39                 culture.c       \
40                 culture.h       \
41                 diptreaty.c     \
42                 diptreaty.h     \
43                 disaster.c      \
44                 disaster.h      \
45                 effects.c       \
46                 effects.h       \
47                 events.c        \
48                 events.h        \
49                 extras.c        \
50                 extras.h        \
51                 featured_text.c \
52                 featured_text.h \
53                 fc_cmdhelp.c    \
54                 fc_cmdhelp.h    \
55                 fc_interface.c  \
56                 fc_interface.h  \
57                 fc_types.h      \
58                 game.c          \
59                 game.h          \
60                 government.c    \
61                 government.h    \
62                 idex.c          \
63                 idex.h          \
64                 improvement.c   \
65                 improvement.h   \
66                 map.c           \
67                 map.h           \
68                 map_types.h     \
69                 mapimg.c        \
70                 mapimg.h        \
71                 metaknowledge.c \
72                 metaknowledge.h \
73                 movement.c      \
74                 movement.h      \
75                 multipliers.c   \
76                 multipliers.h   \
77                 name_translation.h \
78                 nation.c        \
79                 nation.h        \
80                 packets_gen.c   \
81                 packets_gen.h   \
82                 player.c        \
83                 player.h        \
84                 reqtext.c       \
85                 reqtext.h       \
86                 requirements.c  \
87                 requirements.h  \
88                 research.c      \
89                 research.h      \
90                 rgbcolor.c      \
91                 rgbcolor.h      \
92                 road.c          \
93                 road.h          \
94                 spaceship.c     \
95                 spaceship.h     \
96                 specialist.c    \
97                 specialist.h    \
98                 srvdefs.h       \
99                 style.c         \
100                 style.h         \
101                 team.c          \
102                 team.h          \
103                 tech.c          \
104                 tech.h          \
105                 terrain.c       \
106                 terrain.h       \
107                 tile.c          \
108                 tile.h          \
109                 traderoutes.c   \
110                 traderoutes.h   \
111                 traits.h        \
112                 unit.c          \
113                 unit.h          \
114                 unitlist.c      \
115                 unitlist.h      \
116                 unittype.c      \
117                 unittype.h      \
118                 version.c       \
119                 version.h       \
120                 victory.c       \
121                 victory.h       \
122                 vision.c        \
123                 vision.h        \
124                 workertask.c    \
125                 workertask.h    \
126                 worklist.c      \
127                 worklist.h      \
128                 world_object.h
130 EXTRA_DIST = \
131                 generate_packets.py
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 \
144         $(COMMON_LIBS)
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
167 if SVNREV
168 BUILT_SOURCES += fc_svnrev_gen.h
169 endif
170 if GITREV
171 BUILT_SOURCES += fc_gitrev_gen.h
172 endif
174 .PHONY : fc_svnrev_gen.h fc_gitrev_gen.h
176 fc_svnrev_gen.h :
177         "$(top_srcdir)/bootstrap/generate_svnrev.sh" "$(top_srcdir)" "$(top_builddir)"
179 fc_gitrev_gen.h :
180         "$(top_srcdir)/bootstrap/generate_gitrev.sh" "$(top_srcdir)" "$(top_builddir)"