-
Notifications
You must be signed in to change notification settings - Fork 191
/
Makefile.am
183 lines (157 loc) · 5.04 KB
/
Makefile.am
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
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = $(PTHREAD_CFLAGS) $(GLIB_CFLAGS)
STORE_SOURCES = \
src/g_logger.c \
src/store.c \
src/store_file.c \
src/store_file_utils.c \
src/store_memcached.c \
src/store_null.c \
src/store_rados.c \
src/store_ro_composite.c \
src/store_ro_http_proxy.c
STORE_LDFLAGS = $(LIBMEMCACHED_LDFLAGS) $(LIBRADOS_LDFLAGS) $(LIBCURL) $(GLIB_LIBS)
STORE_CPPFLAGS =
bin_PROGRAMS = \
renderd \
render_expired \
render_list \
render_old \
render_speedtest
noinst_PROGRAMS = \
gen_tile_test \
renderd_config_test \
renderd_test \
render_expired_test \
render_list_test \
render_old_test \
render_speedtest_test
man_MANS = \
docs/man/renderd.1 \
docs/man/renderd.conf.5 \
docs/man/render_expired.1 \
docs/man/render_list.1 \
docs/man/render_old.1 \
docs/man/render_speedtest.1
renderddir = $(sysconfdir)
renderd_SOURCES = \
src/renderd.c \
src/cache_expire.c \
src/daemon_compat.c \
src/gen_tile.cpp \
src/metatile.cpp \
src/parameterize_style.cpp \
src/protocol_helper.c \
src/renderd_config.c \
src/request_queue.c \
src/sys_utils.c \
$(STORE_SOURCES)
renderd_CXXFLAGS = $(MAPNIK_CFLAGS)
renderd_DATA = etc/renderd/renderd.conf
renderd_LDADD = $(PTHREAD_CFLAGS) $(MAPNIK_LDFLAGS) $(STORE_LDFLAGS) $(INIPARSER_LDFLAGS)
render_speedtest_SOURCES = \
src/render_speedtest.cpp \
src/g_logger.c \
src/protocol_helper.c \
src/render_submit_queue.c \
src/renderd_config.c \
src/sys_utils.c
render_speedtest_LDADD = $(PTHREAD_CFLAGS) $(GLIB_LIBS) $(INIPARSER_LDFLAGS)
render_list_SOURCES = \
src/render_list.c \
src/protocol_helper.c \
src/render_submit_queue.c \
src/renderd_config.c \
src/sys_utils.c \
$(STORE_SOURCES)
render_list_LDADD = $(PTHREAD_CFLAGS) $(STORE_LDFLAGS) $(INIPARSER_LDFLAGS)
render_expired_SOURCES = \
src/render_expired.c \
src/protocol_helper.c \
src/render_submit_queue.c \
src/renderd_config.c \
src/sys_utils.c \
$(STORE_SOURCES)
render_expired_LDADD = $(PTHREAD_CFLAGS) $(STORE_LDFLAGS) $(INIPARSER_LDFLAGS)
render_old_SOURCES = \
src/render_old.c \
src/g_logger.c \
src/protocol_helper.c \
src/render_submit_queue.c \
src/renderd_config.c \
src/store_file_utils.c \
src/sys_utils.c
render_old_LDADD = $(PTHREAD_CFLAGS) $(GLIB_LIBS) $(INIPARSER_LDFLAGS)
#convert_meta_SOURCES = src/dir_utils.c src/store.c src/convert_meta.c
noinst_LIBRARIES = catch_main.o catch_test_common.o
catch_main_o_SOURCES = tests/catch_main.cpp
catch_test_common_o_SOURCES = tests/catch_test_common.cpp
gen_tile_test_SOURCES = \
tests/gen_tile_test.cpp \
$(renderd_SOURCES)
gen_tile_test_CFLAGS = -DMAIN_ALREADY_DEFINED
gen_tile_test_CXXFLAGS = $(renderd_CXXFLAGS)
gen_tile_test_LDADD = $(renderd_LDADD) catch_test_common.o
renderd_config_test_SOURCES = \
tests/renderd_config_test.cpp
renderd_config_test_LDADD = $(GLIB_LIBS) catch_main.o catch_test_common.o
renderd_test_SOURCES = \
tests/renderd_test.cpp
renderd_test_LDADD = $(GLIB_LIBS) catch_main.o catch_test_common.o
render_expired_test_SOURCES = \
tests/render_expired_test.cpp
render_expired_test_LDADD = $(GLIB_LIBS) catch_main.o catch_test_common.o
render_list_test_SOURCES = \
tests/render_list_test.cpp
render_list_test_LDADD = $(GLIB_LIBS) catch_main.o catch_test_common.o
render_old_test_SOURCES = \
tests/render_old_test.cpp
render_old_test_LDADD = $(GLIB_LIBS) catch_main.o catch_test_common.o
render_speedtest_test_SOURCES = \
tests/render_speedtest_test.cpp
render_speedtest_test_LDADD = $(GLIB_LIBS) catch_main.o catch_test_common.o
CLEANFILES=*.slo mod_tile.la stderr.out src/*.slo src/*.lo src/.libs/* src/*.la
COMMA=,
test: gen_tile_test renderd_config_test renderd_test render_expired_test render_list_test render_old_test render_speedtest_test
./gen_tile_test
./renderd_config_test
./renderd_test
./render_expired_test
./render_list_test
./render_old_test
./render_speedtest_test
all-local:
$(APXS) -c $(DEF_LDLIBS) $(AM_CFLAGS) \
$(subst -pthread,-Wc$(COMMA)-pthread,$(GLIB_CFLAGS)) \
-I@srcdir@/includes $(AM_LDFLAGS) $(STORE_LDFLAGS) $(INIPARSER_LDFLAGS) \
@srcdir@/src/mod_tile.c \
@srcdir@/src/g_logger.c \
@srcdir@/src/renderd_config.c \
@srcdir@/src/store.c \
@srcdir@/src/store_file.c \
@srcdir@/src/store_file_utils.c \
@srcdir@/src/store_memcached.c \
@srcdir@/src/store_null.c \
@srcdir@/src/store_rados.c \
@srcdir@/src/store_ro_composite.c \
@srcdir@/src/store_ro_http_proxy.c \
@srcdir@/src/sys_utils.c
install-mod_tile:
mkdir -p $(DESTDIR)`$(APXS) -q LIBEXECDIR`
$(APXS) -S LIBEXECDIR=$(DESTDIR)`$(APXS) \
-q LIBEXECDIR` -c -i $(DEF_LDLIBS) $(AM_CFLAGS) \
$(subst -pthread,-Wc$(COMMA)-pthread,$(GLIB_CFLAGS)) \
-I@srcdir@/includes $(AM_LDFLAGS) $(STORE_LDFLAGS) $(INIPARSER_LDFLAGS) \
@srcdir@/src/mod_tile.c \
@srcdir@/src/g_logger.c \
@srcdir@/src/renderd_config.c \
@srcdir@/src/store.c \
@srcdir@/src/store_file.c \
@srcdir@/src/store_file_utils.c \
@srcdir@/src/store_memcached.c \
@srcdir@/src/store_null.c \
@srcdir@/src/store_rados.c \
@srcdir@/src/store_ro_composite.c \
@srcdir@/src/store_ro_http_proxy.c \
@srcdir@/src/sys_utils.c