Comparison

util-src/Makefile @ 534:684cd8aedc1a

Making makefile work under OS X finally. Yeah OS X's gcc is a little bit strange.
author Tobias Markmann <tm@ayena.de>
date Wed, 03 Dec 2008 20:32:03 +0100
parent 513:cadc9d6db7d8
child 536:dfe06eab47c0
comparison
equal deleted inserted replaced
533:a29c27c32a34 534:684cd8aedc1a
10 10
11 11
12 all: encodings.so hashes.so 12 all: encodings.so hashes.so
13 13
14 install: encodings.so hashes.so 14 install: encodings.so hashes.so
15 install -s *.so ../util/ 15 install *.so ../util/
16 16
17 17
18 clean: 18 clean:
19 rm -f *.so 19 rm -f *.so
20 rm -f ../util/*.so 20 rm -f ../util/*.so
21 21
22 encodings.so: encodings.c 22 encodings.o: encodings.c
23 gcc $(CFLAGS) encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so 23 gcc $(CFLAGS) -I$(LUA_INCDIR) -c -o encodings.o encodings.c
24 encodings.so: encodings.o
25 export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(LFLAGS) -o encodings.so encodings.o -L/usr/local/lib -lcrypto -lidn
26
24 27
25 hashes.so: hashes.c 28 hashes.o: hashes.c
26 gcc $(CFLAGS) hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so 29 gcc $(CFLAGS) -I$(LUA_INCDIR) -c -o hashes.o hashes.c
30 hashes.so: hashes.o
31 export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(LFLAGS) -o hashes.so hashes.o -L/usr/local/lib -lcrypto -lssl
27 32