mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-08-15 22:18:22 +00:00
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
builddir = .
|
|
top_dir:=$(shell /usr/sbin/apxs -q exp_installbuilddir)
|
|
top_dir:=$(shell /usr/bin/dirname ${top_dir})
|
|
|
|
top_srcdir = ${top_dir}
|
|
top_builddir = ${top_dir}
|
|
|
|
include ${top_builddir}/build/special.mk
|
|
|
|
CXX := g++
|
|
|
|
APXS = apxs
|
|
APACHECTL = apachectl
|
|
EXTRA_CFLAGS = -I$(builddir)
|
|
|
|
EXTRA_CPPFLAGS += -g -O2 -Wall
|
|
EXTRA_LDFLAGS += $(shell pkg-config --libs libagg)
|
|
|
|
all: local-shared-build renderd
|
|
|
|
clean:
|
|
rm -f *.o *.lo *.slo *.la .libs/*
|
|
rm -f renderd
|
|
|
|
RENDER_CPPFLAGS += -g -O2 -Wall
|
|
RENDER_CPPFLAGS += -I/usr/local/include/mapnik
|
|
RENDER_CPPFLAGS += $(shell pkg-config --cflags freetype2)
|
|
RENDER_CPPFLAGS += $(shell Magick++-config --cxxflags --cppflags)
|
|
RENDER_CPPFLAGS += $(shell pkg-config --cflags libagg)
|
|
|
|
RENDER_LDFLAGS += -g
|
|
RENDER_LDFLAGS += -lmapnik -L/usr/local/lib64
|
|
RENDER_LDFLAGS += $(shell pkg-config --libs freetype2)
|
|
RENDER_LDFLAGS += $(shell Magick++-config --ldflags --libs)
|
|
RENDER_LDFLAGS += $(shell pkg-config --libs libagg)
|
|
|
|
renderd: daemon.c gen_tile.cpp
|
|
$(CXX) -o $@ $^ $(RENDER_LDFLAGS) $(RENDER_CPPFLAGS)
|
|
|
|
|
|
MYSQL_CFLAGS += -g -O2 -Wall
|
|
MYSQL_CFLAGS += $(shell mysql_config --cflags)
|
|
|
|
MYSQL_LDFLAGS += $(shell mysql_config --libs)
|
|
|
|
mysql2file: mysql2file.c
|
|
$(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
|
|
|
|
# Not sure why this is not created automatically
|
|
.deps:
|
|
touch .deps
|