From: Richard Fairhurst Date: Sun, 7 Oct 2007 11:15:09 +0000 (+0000) Subject: OS X-compatible makefile supplied by agnat X-Git-Tag: live~8076 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/09ccace4506d91517ea7ba56171b27eef14e49fe?hp=3bf13d9c43dfe2996ddfe0bd15916623e63be1a1 OS X-compatible makefile supplied by agnat --- diff --git a/db/functions/Makefile b/db/functions/Makefile index ce216e765..2f2abe525 100644 --- a/db/functions/Makefile +++ b/db/functions/Makefile @@ -1,10 +1,14 @@ 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 +libquadtile.so: quadtile.o + cc ${LDFLAGS} -o libquadtile.so quadtile.o quadtile.o: quadtile.c ${QTDIR}/quad_tile.h cc `mysql_config --include` -I${QTDIR} -fPIC -O3 -c -o quadtile.o quadtile.c