X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cfbdd3f7e1c688e2c875ded9fd847fcc1c3a4caf..8c5638d6968be3286414f04b8dee2261ada84e76:/db/functions/Makefile?ds=sidebyside diff --git a/db/functions/Makefile b/db/functions/Makefile index 6544db1ff..7652862fa 100644 --- a/db/functions/Makefile +++ b/db/functions/Makefile @@ -1,4 +1,17 @@ QTDIR=../../lib/quad_tile -libquadtile.so: quadtile.c ${QTDIR}/quad_tile.h - cc `mysql_config --include` -I${QTDIR} -fPIC -O3 -shared -o libquadtile.so quadtile.c +OS=$(shell uname -s) +ifeq (${OS},Darwin) + LDFLAGS=-bundle +else + LDFLAGS=-shared +endif + +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