forked from SomeoneElseOSM/mod_tile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
143 lines (124 loc) · 3.65 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
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = $(PTHREAD_CFLAGS) $(GLIB_CFLAGS)
STORE_SOURCES = \
src/store.c \
src/store_file.c \
src/store_file_utils.c \
src/store_memcached.c \
src/store_rados.c \
src/store_ro_http_proxy.c \
src/store_ro_composite.c \
src/store_null.c \
src/g_logger.c
STORE_LDFLAGS = $(LIBMEMCACHED_LDFLAGS) $(LIBRADOS_LDFLAGS) $(LIBCURL) $(GLIB_LIBS)
STORE_CPPFLAGS =
bin_PROGRAMS = \
renderd \
render_expired \
render_list \
render_speedtest \
render_old
noinst_PROGRAMS = gen_tile_test
man_MANS = \
docs/man/renderd.1 \
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/daemon.c \
src/daemon_compat.c \
src/gen_tile.cpp \
src/sys_utils.c \
src/request_queue.c \
src/cache_expire.c \
src/metatile.cpp \
src/parameterize_style.cpp \
src/protocol_helper.c \
$(STORE_SOURCES)
renderd_CXXFLAGS = $(MAPNIK_CFLAGS)
renderd_LDADD = $(PTHREAD_CFLAGS) $(MAPNIK_LDFLAGS) $(STORE_LDFLAGS) -liniparser
renderd_DATA = etc/renderd/renderd.conf
render_speedtest_SOURCES = \
src/speedtest.cpp \
src/protocol_helper.c \
src/render_submit_queue.c \
src/sys_utils.c \
src/g_logger.c
render_speedtest_LDADD = $(PTHREAD_CFLAGS) $(GLIB_LIBS)
render_list_SOURCES = \
src/render_list.c \
src/sys_utils.c \
src/protocol_helper.c \
src/render_submit_queue.c \
$(STORE_SOURCES)
render_list_LDADD = $(PTHREAD_CFLAGS) $(STORE_LDFLAGS)
render_expired_SOURCES = \
src/render_expired.c \
src/protocol_helper.c \
src/render_submit_queue.c \
src/sys_utils.c \
$(STORE_SOURCES)
render_expired_LDADD = $(PTHREAD_CFLAGS) $(STORE_LDFLAGS)
render_old_SOURCES = \
src/store_file_utils.c \
src/render_old.c \
src/sys_utils.c \
src/protocol_helper.c \
src/render_submit_queue.c \
src/g_logger.c
render_old_LDADD = $(PTHREAD_CFLAGS) $(GLIB_LIBS)
#convert_meta_SOURCES = src/dir_utils.c src/store.c src/convert_meta.c
gen_tile_test_SOURCES = \
src/gen_tile_test.cpp \
src/metatile.cpp \
src/request_queue.c \
src/protocol_helper.c \
src/daemon.c \
src/daemon_compat.c \
src/gen_tile.cpp \
src/sys_utils.c \
src/cache_expire.c \
src/parameterize_style.cpp \
$(STORE_SOURCES)
gen_tile_test_CFLAGS = -DMAIN_ALREADY_DEFINED $(PTHREAD_CFLAGS) $(GLIB_CFLAGS)
gen_tile_test_CXXFLAGS = $(MAPNIK_CFLAGS)
gen_tile_test_LDADD = $(PTHREAD_CFLAGS) $(MAPNIK_LDFLAGS) $(STORE_LDFLAGS) -liniparser
CLEANFILES=*.slo mod_tile.la stderr.out src/*.slo src/*.lo src/.libs/* src/*.la
COMMA=,
test: gen_tile_test
./gen_tile_test
all-local:
$(APXS) -c $(DEF_LDLIBS) $(AM_CFLAGS) \
$(subst -pthread,-Wc$(COMMA)-pthread,$(GLIB_CFLAGS)) \
-I@srcdir@/includes $(AM_LDFLAGS) $(STORE_LDFLAGS) \
@srcdir@/src/mod_tile.c \
@srcdir@/src/sys_utils.c \
@srcdir@/src/store.c \
@srcdir@/src/store_file.c \
@srcdir@/src/store_file_utils.c \
@srcdir@/src/store_memcached.c \
@srcdir@/src/store_rados.c \
@srcdir@/src/store_ro_http_proxy.c \
@srcdir@/src/store_ro_composite.c \
@srcdir@/src/store_null.c \
@srcdir@/src/g_logger.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) \
@srcdir@/src/mod_tile.c \
@srcdir@/src/sys_utils.c \
@srcdir@/src/store.c \
@srcdir@/src/store_file.c \
@srcdir@/src/store_file_utils.c \
@srcdir@/src/store_memcached.c \
@srcdir@/src/store_rados.c \
@srcdir@/src/store_ro_http_proxy.c \
@srcdir@/src/store_ro_composite.c \
@srcdir@/src/store_null.c \
@srcdir@/src/g_logger.c