File: Makefile.am

package info (click to toggle)
xqf 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 3,964 kB
  • ctags: 3,021
  • sloc: ansic: 31,166; sh: 1,451; xml: 1,039; makefile: 257; perl: 131
file content (210 lines) | stat: -rw-r--r-- 4,627 bytes parent folder | download | duplicates (3)
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
SUBDIRS = xpm zip tga

localedir = $(datadir)/locale
INCLUDES = -I$(top_srcdir)/intl \
	-DLOCALEDIR=\"$(localedir)\" \
	-DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
	-DPIXMAPSDIR=\"$(datadir)/pixmaps\" \
	$(GTK_CFLAGS) \
	$(QSTAT23) \
	$(DEBUG) \
	$(COMPRESSION) \
	$(GDK_PIXBUF_CFLAGS) \
	$(PACKAGE_CFLAGS) \
	$(OLD_GTK_SUPPORT)

qstatcfgdir = $(pkgdatadir)
qstatcfg_DATA = qstat.cfg

qstatsavagedir = $(pkgdatadir)
qstatsavage_DATA = qstat_savage.sh

EXTRA_DIST = \
	games.c \
	games.xml \
	qstat.cfg \
	qstat_savage.sh \
	xqf.map \
	$(noinst_SCRIPTS)

bin_PROGRAMS = xqf
if BUILD_XQFRCON
bin_PROGRAMS += xqf-rcon
endif

EXTRA_PROGRAMS = gamesxml2c

xqf_LDADD = $(INTLLIBS) \
	    $(top_builddir)/src/zip/libunzip.a \
	    $(top_builddir)/src/tga/libtga.a \
	    $(GTK_LIBS) \
	    $(GEOIP_LIB) \
	    $(PACKAGE_LIBS) \
	    $(GDK_PIXBUF_LIBS) \
	    -lz -ldl

xqf_LDFLAGS = -Wl,-rpath,$(pkglibdir) -Wl,--export-dynamic -Wl,--version-script=$(top_srcdir)/src/xqf.map

xqf_CFLAGS = -DQSTAT_SAVAGE_SCRIPT=\"$(qstatsavagedir)/$(qstatsavage_DATA)\"

# we need to specify all deps manually due to dummy libs
xqf_DEPENDENCIES = \
	$(top_builddir)/src/zip/libunzip.a \
	$(top_builddir)/src/tga/libtga.a

xqf_rcon_LDADD = @INTLLIBS@ $(GLIB_LIBS) $(XQFRCON_LIBS) @PACKAGE_LIBS@
xqf_rcon_SOURCES = \
    rcon.c rcon.h \
    debug.c debug.h \
    utils.c utils.h
xqf_rcon_CFLAGS = -DRCON_STANDALONE $(GLIB_CFLAGS) $(OLD_GTK_SUPPORT)

xqf_SOURCES =  \
addmaster.c \
addserver.c \
config.c \
country-filter.c \
debug.c \
dialogs.c \
dns.c \
filter.c \
flt-player.c \
game.c \
history.c \
host.c \
launch.c \
menus.c \
pixmaps.c \
pref.c \
psearch.c \
rc.c \
rcon.c \
server.c \
skin.c \
skin_pcx.c \
sort.c \
source.c \
srv-info.c \
srv-list.c \
srv-prop.c \
stat.c \
statistics.c \
trayicon.c \
utils.c \
xqf.c \
xqf-ui.c \
xutils.c \
zipped.c \
redial.c \
q3maps.c \
utmaps.c \
loadpixmap.c \
splash.c \
scripts.c \
addmaster.h \
addserver.h \
config.h \
country-filter.h \
debug.h \
dialogs.h \
dns.h \
filter.h \
flt-player.h \
game.h \
history.h \
host.h \
launch.h \
menus.h \
pixmaps.h \
pref.h \
psearch.h \
quake2_pal.h \
quake_pal.h \
rc.h \
rcon.h \
server.h \
skin.h \
skin_pcx.h \
sort.h \
source.h \
srv-info.h \
srv-list.h \
srv-prop.h \
stat.h \
statistics.h \
trayicon.h \
utils.h \
xqf-ui.h \
xqf.h \
xutils.h \
zipped.h \
redial.h \
q3maps.h \
utmaps.h \
i18n.h \
loadpixmap.h \
splash.h \
scripts.h

noinst_SCRIPTS = gensyms.pl
noinst_PROGRAMS = test_utils
test_utils_SOURCES = test_utils.c \
		     utils.c utils.h \
		     debug.c debug.h
test_utils_LDADD = $(xqf_LDADD)

# it's only temporary, so ...
gamesxml2c_LDFLAGS = -lxml2
gamesxml2c_LDADD = -lxml2
gamesxml2c_CFLAGS = $(shell xml2-config --cflags) 

gamesxml2c_SOURCES = \
gamesxml2c.c

pkglibexec_PROGRAMS =

if DUMMY_LIBGEOIP
pkglibexec_PROGRAMS += libxqf_dummy_GeoIP.so.0
xqf_DEPENDENCIES += libxqf_dummy_GeoIP.so
endif
if DUMMY_LIBGDKPIXBUF
pkglibexec_PROGRAMS += libxqf_dummy_gdk_pixbuf.so.0
xqf_DEPENDENCIES += libxqf_dummy_gdk_pixbuf.so
endif

libxqf_dummy_gdk_pixbuf.c:
	$(top_srcdir)/src/gensyms.pl -x gdk_pixbuf_new_from_file,gdk_pixbuf_render_pixmap_and_mask,gdk_pixbuf_unref $(DUMMY_LIBGDKPIXBUF_ORIG) -o $(top_srcdir)/src/libxqf_dummy_gdk_pixbuf.c || rm $(top_srcdir)/src/libxqf_dummy_gdk_pixbuf.c
	test -s $(top_srcdir)/src/libxqf_dummy_gdk_pixbuf.c

nodist_libxqf_dummy_gdk_pixbuf_so_0_SOURCES = libxqf_dummy_gdk_pixbuf.c
libxqf_dummy_gdk_pixbuf_so_0_SOURCES = libxqf_dummy_gdk_pixbuf_stubs.c
libxqf_dummy_gdk_pixbuf_so_0_LDFLAGS = -nostdlib -shared -Wl,-f,$(DUMMY_LIBGDKPIXBUF_SONAME) -Wl,-soname,libxqf_dummy_gdk_pixbuf.so.0
libxqf_dummy_gdk_pixbuf_so_0_CFLAGS = -fPIC -DPIC

libxqf_dummy_gdk_pixbuf.so: libxqf_dummy_gdk_pixbuf.so.0
	rm -f $@
	$(LN_S) $< $@

libxqf_dummy_GeoIP.c:
	$(top_srcdir)/src/gensyms.pl -x GeoIP_new,GeoIP_open $(DUMMY_LIBGEOIP_ORIG) -o $(top_srcdir)/src/libxqf_dummy_GeoIP.c || rm $(top_srcdir)/src/libxqf_dummy_GeoIP.c
	test -s $(top_srcdir)/src/libxqf_dummy_GeoIP.c

nodist_libxqf_dummy_GeoIP_so_0_SOURCES = libxqf_dummy_GeoIP.c
libxqf_dummy_GeoIP_so_0_SOURCES = libxqf_dummy_GeoIP_stubs.c
libxqf_dummy_GeoIP_so_0_LDFLAGS = -nostdlib -shared -Wl,-f,$(DUMMY_LIBGEOIP_SONAME) -Wl,-soname,libxqf_dummy_GeoIP.so.0
libxqf_dummy_GeoIP_so_0_CFLAGS = -fPIC -DPIC

libxqf_dummy_GeoIP.so: libxqf_dummy_GeoIP.so.0
	rm -f $@
	$(LN_S) $< $@

CLEANFILES = \
	$(nodist_libxqf_dummy_gdk_pixbuf_so_0_SOURCES) \
	$(nodist_libxqf_dummy_GeoIP_so_0_SOURCES) \
	libxqf_dummy_GeoIP.so \
	libxqf_dummy_gdk_pixbuf.so

gamelist: gamesxml2c
	$(top_builddir)/src/gamesxml2c $(top_srcdir)/src/games.xml > $(top_srcdir)/src/games.c

.PHONY: gamelist