X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..3971c5453093263d4989e19e9e6bb7f3ebe834ed:/db/functions/Makefile diff --git a/db/functions/Makefile b/db/functions/Makefile index dac1889dc..9388e2d23 100644 --- a/db/functions/Makefile +++ b/db/functions/Makefile @@ -1,7 +1,8 @@ +BUNDLE ?= bundle PG_CONFIG ?= pg_config DESTDIR ?= . -QTDIR=../../lib/quad_tile +QTDIR=$(shell ${BUNDLE} show quad_tile | tail -n 1)/ext/quad_tile OS=$(shell uname -s) ifeq (${OS},Darwin) @@ -15,7 +16,7 @@ all: ${DESTDIR}/libpgosm.so clean: $(RM) ${DESTDIR}/*.so ${DESTDIR}/*.o -${DESTDIR}/libpgosm.so: ${DESTDIR}/quadtile.o ${DESTDIR}/maptile.o ${DESTDIR}/xid_to_int4.o +${DESTDIR}/libpgosm.so: ${DESTDIR}/quadtile.o cc ${LDFLAGS} -o $@ $^ ${DESTDIR}/%.o: %.c