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

Last change on this file since 13240 was 12950, checked in by twain, 11 years ago

mod_tile: New apache directives and options for multiple tile sets

File size: 1.8 KB
Line 
1builddir     = .
2top_dir:=$(shell /usr/sbin/apxs -q exp_installbuilddir)
3top_dir:=$(shell /usr/bin/dirname ${top_dir})
4
5top_srcdir   = ${top_dir}
6top_builddir = ${top_dir}
7
8include ${top_builddir}/build/special.mk
9
10CXX := g++
11CXXFLAGS += -Wall
12
13APXS      = apxs
14APACHECTL = apachectl
15EXTRA_CFLAGS = -I$(builddir)
16
17EXTRA_CPPFLAGS += -g -O2 -Wall
18EXTRA_LDFLAGS += $(shell pkg-config --libs libagg)
19
20all: local-shared-build renderd speedtest render_list render_old convert_meta
21
22install: 
23        cp -u renderd.conf /etc/renderd.conf
24
25clean:
26        rm -f *.o *.lo *.slo *.la .libs/*
27        rm -f renderd render_list speedtest render_old convert_meta
28
29RENDER_CPPFLAGS += -g -O2 -Wall
30RENDER_CPPFLAGS += -I/usr/local/include/mapnik
31RENDER_CPPFLAGS += $(shell pkg-config --cflags freetype2)
32#RENDER_CPPFLAGS += $(shell Magick++-config --cxxflags --cppflags)
33RENDER_CPPFLAGS += $(shell pkg-config --cflags libagg)
34
35RENDER_LDFLAGS += -g
36RENDER_LDFLAGS += -lmapnik -L/usr/local/lib64
37RENDER_LDFLAGS += $(shell pkg-config --libs freetype2)
38#RENDER_LDFLAGS += $(shell Magick++-config --ldflags --libs)
39RENDER_LDFLAGS += $(shell pkg-config --libs libagg)
40
41renderd: store.c daemon.c gen_tile.cpp dir_utils.c protocol.h render_config.h dir_utils.h store.h
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
49
50convert_meta: render_config.h protocol.h dir_utils.c dir_utils.h store.c
51
52MYSQL_CFLAGS += -g -O2 -Wall
53MYSQL_CFLAGS += $(shell mysql_config --cflags)
54
55MYSQL_LDFLAGS += $(shell mysql_config --libs)
56
57mysql2file: mysql2file.c
58        $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
59
60# Not sure why this is not created automatically
61.deps:
62        touch .deps
Note: See TracBrowser for help on using the repository browser.