File: Makefile.am

package info (click to toggle)
freeciv 2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 212,508 kB
  • sloc: ansic: 443,831; cpp: 29,541; sh: 7,982; makefile: 7,886; python: 1,933; xml: 945
file content (174 lines) | stat: -rw-r--r-- 3,347 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
## Process this file with automake to produce Makefile.in

SUBDIRS = aicore scriptcore

lib_LTLIBRARIES = libfreeciv.la

AM_CPPFLAGS = \
	-I$(top_srcdir)/utility \
	-I$(srcdir)/aicore \
	-I$(srcdir)/scriptcore \
	$(MAPIMG_WAND_CFLAGS)

libfreeciv_la_SOURCES = \
		achievements.c	\
		achievements.h	\
		actions.c	\
		actions.h	\
		ai.c		\
		ai.h		\
		base.c		\
		base.h		\
		borders.c	\
		borders.h	\
		calendar.c	\
		calendar.h	\
		capstr.c	\
		capstr.h	\
		chat.h		\
		citizens.c	\
		citizens.h	\
		city.c		\
		city.h		\
		clientutils.c	\
		clientutils.h	\
		combat.c	\
		combat.h	\
		connection.c	\
		connection.h	\
		culture.c	\
		culture.h	\
		dataio.c	\
		dataio.h	\
		diptreaty.c	\
		diptreaty.h	\
		disaster.c	\
		disaster.h	\
		effects.c	\
		effects.h	\
		events.c	\
		events.h	\
		extras.c	\
		extras.h	\
		featured_text.c	\
		featured_text.h	\
		fc_cmdhelp.c	\
		fc_cmdhelp.h	\
		fc_interface.c	\
		fc_interface.h	\
		fc_types.h	\
		game.c		\
		game.h		\
		government.c	\
		government.h	\
		idex.c		\
		idex.h		\
		improvement.c	\
		improvement.h	\
		map.c		\
		map.h		\
		map_types.h	\
		mapimg.c	\
		mapimg.h	\
		metaknowledge.c \
		metaknowledge.h \
		movement.c	\
		movement.h	\
		multipliers.c   \
		multipliers.h   \
		name_translation.h \
		nation.c        \
		nation.h        \
		packets.c	\
		packets.h	\
		packets_gen.c	\
		packets_gen.h	\
		player.c	\
		player.h	\
		requirements.c	\
		requirements.h	\
		research.c	\
		research.h	\
		rgbcolor.c	\
		rgbcolor.h	\
		road.c		\
		road.h		\
		spaceship.c	\
		spaceship.h	\
		specialist.c	\
		specialist.h	\
		srvdefs.h	\
		style.c		\
		style.h		\
		team.c		\
		team.h		\
		tech.c		\
		tech.h		\
		terrain.c	\
		terrain.h	\
		tile.c		\
		tile.h		\
		traderoutes.c	\
		traderoutes.h	\
		traits.h	\
		unit.c		\
		unit.h		\
		unitlist.c	\
		unitlist.h	\
		unittype.c	\
		unittype.h	\
		version.c	\
		version.h	\
		victory.c	\
		victory.h	\
		vision.c	\
		vision.h	\
		workertask.c	\
		workertask.h	\
		worklist.c	\
		worklist.h

EXTRA_DIST = \
		packets.def	\
		generate_packets.py

libfreeciv_la_DEPENDENCIES = \
	$(top_builddir)/utility/libcivutility.la \
	$(top_builddir)/common/aicore/libaicore.la \
	$(top_builddir)/common/scriptcore/libscriptcore.la

libfreeciv_la_LIBADD = \
	$(top_builddir)/utility/libcivutility.la \
	$(top_builddir)/common/aicore/libaicore.la \
	$(top_builddir)/common/scriptcore/libscriptcore.la \
	$(COMMON_LIBS)

BUILT_SOURCES = packets_gen.c packets_gen.h

# ./generate_packets.py makes both packets_gen.[ch]
#
# Feed the dependence through a fake intermediate file to avoid
# a race condition in a parallel build (like make -j2).
#
# Currently we run the generation directly into the source directory.
# Ideally we'd generate the new files into the build directory but first we'd
# have to resolve conflicts (since there could then be 2 copies).
packets_gen.h packets_gen.c: packets_generate
.INTERMEDIATE: packets_generate
packets_generate: packets.def generate_packets.py
	cd $(srcdir) && ./generate_packets.py
	touch packets_generate

# These files are not generated to builddir, but to srcdir */
MAINTAINERCLEANFILES = \
	$(srcdir)/packets_gen.h \
	$(srcdir)/packets_gen.c

if GITREV
BUILT_SOURCES += fc_gitrev_gen.h
endif

.PHONY : fc_gitrev_gen.h

fc_gitrev_gen.h :
	"$(top_srcdir)/bootstrap/generate_gitrev.sh" "$(top_srcdir)" "$(top_builddir)"