File: Makefile.am

package info (click to toggle)
freeciv 3.2.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 286,492 kB
  • sloc: ansic: 484,452; cpp: 37,766; sh: 10,374; makefile: 7,425; python: 2,938; xml: 652; sed: 11
file content (83 lines) | stat: -rw-r--r-- 2,435 bytes parent folder | download
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
## Process this file with automake to produce Makefile.in

noinst_LTLIBRARIES = \
	libscripting_fcdb.la \
	libscripting_server.la

AM_CPPFLAGS = \
	-I$(top_srcdir)/utility \
	-I$(top_srcdir)/common \
	-I$(top_srcdir)/common/aicore \
	-I$(top_srcdir)/common/networking \
	-I$(top_srcdir)/common/scriptcore \
	-I$(top_srcdir)/server \
	-I$(top_srcdir)/server/generator \
	-I$(top_srcdir)/server/savegame \
	-I$(top_srcdir)/ai \
	-I$(top_srcdir)/dependencies/tinycthread \
	$(FCDB_MYSQL_CFLAGS) $(FCDB_POSTGRES_CFLAGS) $(FCDB_SQLITE_CFLAGS) \
	$(LUA_CFLAGS) $(LUASQL_CFLAGS) $(TOLUA_CFLAGS)

# tolua_[fcdb|server]_gen.[ch] are now distributed to aid in cross-compiling.
# See PR#13571.
dist_libscripting_server_la_SOURCES = \
	api_server_counters.c	\
	api_server_counters.h	\
	api_server_base.c	\
	api_server_base.h	\
	api_server_edit.c	\
	api_server_edit.h	\
	api_server_game_methods.c	\
	api_server_game_methods.h	\
	api_server_luadata.c	\
	api_server_luadata.h	\
	api_server_notify.c	\
	api_server_notify.h	\
	script_server.c		\
	script_server.h		\
	tolua_server_gen.c	\
	tolua_server_gen.h

dist_libscripting_fcdb_la_SOURCES = \
	api_fcdb_auth.c		\
	api_fcdb_auth.h		\
	api_fcdb_base.c		\
	api_fcdb_base.h		\
	api_fcdb_specenum.c	\
	api_fcdb_specenum.h	\
	script_fcdb.c		\
	script_fcdb.h		\
	tolua_fcdb_gen.c	\
	tolua_fcdb_gen.h

EXTRA_DIST = \
	tolua_fcdb.pkg		\
	tolua_server.pkg

BUILT_SOURCES = \
	tolua_fcdb_gen.c	\
	tolua_fcdb_gen.h	\
	tolua_server_gen.c	\
	tolua_server_gen.h

# LUA_LIBS & co are not LIBADDedded to the library since having them
# both from shared libfreeciv.so (common/scriptcore) and static library
# here would break build when libfreeciv.so is shared library. Here we
# can only rely on them getting included via libfreeciv.so.

tolua_fcdb_gen.c tolua_fcdb_gen.h: tolua_fcdb.pkg
	@if ! $(AM_V_P) ; then echo "  tolua    tolua_fcdb" ; fi
	$(AM_V_at) $(TOLUA) -n fcdb -o $(srcdir)/tolua_fcdb_gen.c \
	-H $(srcdir)/tolua_fcdb_gen.h $(srcdir)/tolua_fcdb.pkg

tolua_server_gen.c tolua_server_gen.h: tolua_server.pkg
	@if ! $(AM_V_P) ; then echo "  tolua    tolua_server" ; fi
	$(AM_V_at) $(TOLUA) -n server -o $(srcdir)/tolua_server_gen.c \
	-H $(srcdir)/tolua_server_gen.h $(srcdir)/tolua_server.pkg

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