X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bed9cd00ed166ce346da4b8a9b654ddf86e64e70..d359cd70f1527b372b71c2f927e3f45fb0fcf509:/db/functions/Makefile?ds=sidebyside diff --git a/db/functions/Makefile b/db/functions/Makefile index 1bdddce71..231496d40 100644 --- a/db/functions/Makefile +++ b/db/functions/Makefile @@ -1,7 +1,5 @@ QTDIR=../../lib/quad_tile -PGSQLINC=/usr/include/postgresql/8.3/server/ - OS=$(shell uname -s) ifeq (${OS},Darwin) LDFLAGS=-bundle @@ -9,22 +7,19 @@ else LDFLAGS=-shared endif -all: libmyosm.so libpgosm.so +all: 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 +libpgosm.so: quadtile-pgsql.o maptile-pgsql.o xid_to_int4-pgsql.o + cc ${LDFLAGS} -o libpgosm.so quadtile-pgsql.o maptile-pgsql.o xid_to_int4-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 +quadtile-pgsql.o: quadtile.c ${QTDIR}/quad_tile.h + cc -I `pg_config --includedir` -I `pg_config --includedir-server` -I${QTDIR} -fPIC -O3 -DUSE_PGSQL -c -o quadtile-pgsql.o quadtile.c maptile-pgsql.o: maptile.c - cc -I${PGSQLINC} -O3 -fPIC -DUSE_PGSQL -c -o maptile-pgsql.o maptile.c \ No newline at end of file + cc -I `pg_config --includedir` -I `pg_config --includedir-server` -fPIC -O3 -DUSE_PGSQL -c -o maptile-pgsql.o maptile.c + +xid_to_int4-pgsql.o: xid_to_int4.c + cc -I `pg_config --includedir` -I `pg_config --includedir-server` -fPIC -O3 -DUSE_PGSQL -c -o xid_to_int4-pgsql.o xid_to_int4.c