source: subversion/applications/utils/mod_tile/Makefile @ 18082

Last change on this file since 18082 was 17460, checked in by jonb, 10 years ago

Update render_old to use multi-threaded rendering requests.

File size: 1.9 KB
Line 
1APXS      = $(shell which apxs || which apxs2 || echo "need apxs"; exit 1)
2$(if $(wildcard $(APXS)),,$(error "cannot find apxs or apxs2")) 
3
4builddir     = .
5top_dir:=$(shell ${APXS} -q exp_installbuilddir)
6top_dir:=$(shell /usr/bin/dirname ${top_dir})
7
8top_srcdir   = ${top_dir}
9top_builddir = ${top_dir}
10
11include ${top_builddir}/build/special.mk
12
13CXX := g++
14CXXFLAGS += -Wall
15
16APACHECTL = $(shell which apachectl || which apache2ctl)
17EXTRA_CFLAGS = -I$(builddir)
18
19EXTRA_CPPFLAGS += -g -O2 -Wall
20
21all: local-shared-build renderd speedtest render_list render_old convert_meta
22
23install: ${DESTDIR}/etc/renderd.conf
24
25
26${DESTDIR}/etc/renderd.conf:
27        cp -u renderd.conf ${DESTDIR}/etc/renderd.conf
28
29clean:
30        rm -f *.o *.lo *.slo *.la .libs/*
31        rm -f renderd render_list speedtest render_old convert_meta
32        make -C iniparser3.0b veryclean
33
34RENDER_CPPFLAGS += -g -O2 -Wall
35RENDER_CPPFLAGS += -I/usr/local/include/mapnik
36RENDER_CPPFLAGS += $(shell pkg-config --cflags freetype2)
37
38RENDER_LDFLAGS += -g
39RENDER_LDFLAGS += -lmapnik -L/usr/local/lib64 -Liniparser3.0b -liniparser
40
41renderd: store.c daemon.c gen_tile.cpp dir_utils.c protocol.h render_config.h dir_utils.h store.h iniparser3.0b/libiniparser.a
42        $(CXX) -o $@ $^ $(RENDER_LDFLAGS) $(RENDER_CPPFLAGS)
43
44speedtest: render_config.h protocol.h dir_utils.c dir_utils.h
45
46render_list: render_config.h protocol.h dir_utils.c dir_utils.h
47
48render_old: render_config.h protocol.h dir_utils.c dir_utils.h render_old.c
49        $(CC) $(EXTRA_CPPFLAGS) -o $@ $^ -lpthread
50
51convert_meta: render_config.h protocol.h dir_utils.c dir_utils.h store.c
52
53iniparser: iniparser3.0b/libiniparser.a
54
55iniparser3.0b/libiniparser.a: iniparser3.0b/src/iniparser.c
56        make -C iniparser3.0b
57
58MYSQL_CFLAGS += -g -O2 -Wall
59MYSQL_CFLAGS += $(shell mysql_config --cflags)
60
61MYSQL_LDFLAGS += $(shell mysql_config --libs)
62
63mysql2file: mysql2file.c
64        $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
65
66deb:
67        debuild
68
69# Not sure why this is not created automatically
70.deps:
71        touch .deps
Note: See TracBrowser for help on using the repository browser.