X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/26fb51c86e178a1c5bbe313c4688c623646173f8..77a00dfb03e2cf2b22447451f818188e02c7b897:/db/functions/Makefile diff --git a/db/functions/Makefile b/db/functions/Makefile index ce216e765..7652862fa 100644 --- a/db/functions/Makefile +++ b/db/functions/Makefile @@ -1,10 +1,17 @@ QTDIR=../../lib/quad_tile -libquadtile.so: quadtile.o - cc -shared -o libquadtile.so quadtile.o +OS=$(shell uname -s) +ifeq (${OS},Darwin) + LDFLAGS=-bundle +else + LDFLAGS=-shared +endif -libquadtile.dylib: quadtile.o - libtool -dynamic quadtile.o -o libquadtile.dylib +libmyosm.so: quadtile.o maptile.o + cc ${LDFLAGS} -o libmyosm.so quadtile.o maptile.o quadtile.o: quadtile.c ${QTDIR}/quad_tile.h cc `mysql_config --include` -I${QTDIR} -fPIC -O3 -c -o quadtile.o quadtile.c + +maptile.o: maptile.c + cc `mysql_config --include` -fPIC -O3 -c -o maptile.o maptile.c