diff options
author | Tobias Markmann <tm@ayena.de> | 2008-12-03 20:32:03 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2008-12-03 20:32:03 +0100 |
commit | d2d44b512ba429551e7ce843d64c25be745a8dd5 (patch) | |
tree | 18884a15755b3e40044b18e3e2319c2a27f233e7 /util-src/Makefile | |
parent | f202e250096c9ede75321adc20ac4dec56294ca2 (diff) | |
download | prosody-d2d44b512ba429551e7ce843d64c25be745a8dd5.tar.gz prosody-d2d44b512ba429551e7ce843d64c25be745a8dd5.zip |
Making makefile work under OS X finally. Yeah OS X's gcc is a little bit strange.
Diffstat (limited to 'util-src/Makefile')
-rw-r--r-- | util-src/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/util-src/Makefile b/util-src/Makefile index fdb689dd..5dcd65d2 100644 --- a/util-src/Makefile +++ b/util-src/Makefile @@ -12,16 +12,21 @@ OPENSSL_LIB?=crypto all: encodings.so hashes.so install: encodings.so hashes.so - install -s *.so ../util/ + install *.so ../util/ clean: rm -f *.so rm -f ../util/*.so -encodings.so: encodings.c - gcc $(CFLAGS) encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so +encodings.o: encodings.c + gcc $(CFLAGS) -I$(LUA_INCDIR) -c -o encodings.o encodings.c +encodings.so: encodings.o + export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(LFLAGS) -o encodings.so encodings.o -L/usr/local/lib -lcrypto -lidn + -hashes.so: hashes.c - gcc $(CFLAGS) hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so +hashes.o: hashes.c + gcc $(CFLAGS) -I$(LUA_INCDIR) -c -o hashes.o hashes.c +hashes.so: hashes.o + export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(LFLAGS) -o hashes.so hashes.o -L/usr/local/lib -lcrypto -lssl |