X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/09ccace4506d91517ea7ba56171b27eef14e49fe..d6f7bbfcd1c0c4befeb85b5a3ee8e2d8ecf1892d:/db/functions/Makefile diff --git a/db/functions/Makefile b/db/functions/Makefile index 2f2abe525..9158b4959 100644 --- a/db/functions/Makefile +++ b/db/functions/Makefile @@ -7,8 +7,22 @@ else LDFLAGS=-shared endif -libquadtile.so: quadtile.o - cc ${LDFLAGS} -o libquadtile.so quadtile.o +all: libmyosm.so libpgosm.so + +clean: + $(RM) *.so *.o + +libmyosm.so: quadtile.o maptile-mysql.o + cc ${LDFLAGS} -o libmyosm.so quadtile.o maptile-mysql.o + +libpgosm.so: maptile-pgsql.o + cc ${LDFLAGS} -o libpgosm.so maptile-pgsql.o quadtile.o: quadtile.c ${QTDIR}/quad_tile.h cc `mysql_config --include` -I${QTDIR} -fPIC -O3 -c -o quadtile.o quadtile.c + +maptile-mysql.o: maptile.c + cc `mysql_config --include` -fPIC -O3 -DUSE_MYSQL -c -o maptile-mysql.o maptile.c + +maptile-pgsql.o: maptile.c + cc -I `pg_config --includedir-server` -O3 -fPIC -DUSE_PGSQL -c -o maptile-pgsql.o maptile.c