webperimental: ally share J.S. Bach's Cathedral.
[freeciv.git] / common / Makefile.am
blob46adf78f1d6eda6b06722d7838af5a97ed1e30d3
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                 server_settings.h \
95                 server_settings.c \
96                 spaceship.c     \
97                 spaceship.h     \
98                 specialist.c    \
99                 specialist.h    \
100                 srvdefs.h       \
101                 style.c         \
102                 style.h         \
103                 team.c          \
104                 team.h          \
105                 tech.c          \
106                 tech.h          \
107                 terrain.c       \
108                 terrain.h       \
109                 tile.c          \
110                 tile.h          \
111                 traderoutes.c   \
112                 traderoutes.h   \
113                 traits.h        \
114                 unit.c          \
115                 unit.h          \
116                 unitlist.c      \
117                 unitlist.h      \
118                 unittype.c      \
119                 unittype.h      \
120                 version.c       \
121                 version.h       \
122                 victory.c       \
123                 victory.h       \
124                 vision.c        \
125                 vision.h        \
126                 workertask.c    \
127                 workertask.h    \
128                 worklist.c      \
129                 worklist.h      \
130                 world_object.h
132 EXTRA_DIST = \
133                 generate_packets.py
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 \
146         $(COMMON_LIBS)
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
169 if SVNREV
170 BUILT_SOURCES += fc_svnrev_gen.h
171 endif
172 if GITREV
173 BUILT_SOURCES += fc_gitrev_gen.h
174 endif
176 .PHONY : fc_svnrev_gen.h fc_gitrev_gen.h
178 fc_svnrev_gen.h :
179         "$(top_srcdir)/bootstrap/generate_svnrev.sh" "$(top_srcdir)" "$(top_builddir)"
181 fc_gitrev_gen.h :
182         "$(top_srcdir)/bootstrap/generate_gitrev.sh" "$(top_srcdir)" "$(top_builddir)"