From 09ccace4506d91517ea7ba56171b27eef14e49fe Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Sun, 7 Oct 2007 11:15:09 +0000 Subject: [PATCH] OS X-compatible makefile supplied by agnat --- db/functions/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.39.5