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

Last change on this file since 15889 was 15864, checked in by jochen, 11 years ago

Fixes to debian scripts

renderd starts in background mode now by default (use -fforeground for old behaviour)
File size: 1.8 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: 
24        cp -u renderd.conf ${DESTDIR}/etc/renderd.conf
25
26clean:
27        rm -f *.o *.lo *.slo *.la .libs/*
28        rm -f renderd render_list speedtest render_old convert_meta
29        make -C iniparser3.0b veryclean
30
31RENDER_CPPFLAGS += -g -O2 -Wall
32RENDER_CPPFLAGS += -I/usr/local/include/mapnik
33RENDER_CPPFLAGS += $(shell pkg-config --cflags freetype2)
34
35RENDER_LDFLAGS += -g
36RENDER_LDFLAGS += -lmapnik -L/usr/local/lib64 -Liniparser3.0b -liniparser
37
38renderd: store.c daemon.c gen_tile.cpp dir_utils.c protocol.h render_config.h dir_utils.h store.h iniparser3.0b/libiniparser.a
39        $(CXX) -o $@ $^ $(RENDER_LDFLAGS) $(RENDER_CPPFLAGS)
40
41speedtest: render_config.h protocol.h dir_utils.c dir_utils.h
42
43render_list: render_config.h protocol.h dir_utils.c dir_utils.h
44
45render_old: render_config.h protocol.h dir_utils.c dir_utils.h
46
47convert_meta: render_config.h protocol.h dir_utils.c dir_utils.h store.c
48
49iniparser: iniparser3.0b/libiniparser.a
50
51iniparser3.0b/libiniparser.a: iniparser3.0b/src/iniparser.c
52        make -C iniparser3.0b
53
54MYSQL_CFLAGS += -g -O2 -Wall
55MYSQL_CFLAGS += $(shell mysql_config --cflags)
56
57MYSQL_LDFLAGS += $(shell mysql_config --libs)
58
59mysql2file: mysql2file.c
60        $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
61
62deb:
63        debuild
64
65# Not sure why this is not created automatically
66.deps:
67        touch .deps
Note: See TracBrowser for help on using the repository browser.