OS X-compatible makefile supplied by agnat
[rails.git] / db / functions / Makefile
1 QTDIR=../../lib/quad_tile
2
3 OS=$(shell uname -s)
4 ifeq (${OS},Darwin)
5     LDFLAGS=-bundle
6 else
7     LDFLAGS=-shared
8 endif
9
10 libquadtile.so: quadtile.o
11         cc ${LDFLAGS} -o libquadtile.so quadtile.o
12
13 quadtile.o: quadtile.c ${QTDIR}/quad_tile.h
14         cc `mysql_config --include` -I${QTDIR} -fPIC -O3 -c -o quadtile.o quadtile.c