]> git.openstreetmap.org Git - rails.git/blob - db/functions/Makefile
Remove unnecessary include from redaction model test
[rails.git] / db / functions / Makefile
1 PG_CONFIG ?= pg_config
2 DESTDIR ?= .
3
4 QTDIR=$(shell bundle show quad_tile | tail -n 1)/ext/quad_tile
5
6 OS=$(shell uname -s)
7 ifeq (${OS},Darwin)
8     LDFLAGS=-bundle
9 else
10     LDFLAGS=-shared
11 endif
12
13 all: ${DESTDIR}/libpgosm.so
14
15 clean:
16         $(RM) ${DESTDIR}/*.so ${DESTDIR}/*.o
17
18 ${DESTDIR}/libpgosm.so: ${DESTDIR}/quadtile.o ${DESTDIR}/maptile.o ${DESTDIR}/xid_to_int4.o
19         cc ${LDFLAGS} -o $@ $^
20
21 ${DESTDIR}/%.o: %.c
22         cc -I `${PG_CONFIG} --includedir` -I `${PG_CONFIG} --includedir-server` -I${QTDIR} -fPIC -O3 -DUSE_PGSQL -c -o $@ $<
23
24 ${DESTDIR}/quadtile.o: ${QTDIR}/quad_tile.h