Software /
code /
prosody
Comparison
util-src/Makefile @ 586:b828d7d47973
Add posix support library, and adjust makefiles for it
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 06 Dec 2008 23:20:59 +0000 |
parent | 537:c157c1412bda |
child | 663:69fe30ffc8c3 |
comparison
equal
deleted
inserted
replaced
585:033817e12ddb | 586:b828d7d47973 |
---|---|
7 IDN_LIB?=idn | 7 IDN_LIB?=idn |
8 OPENSSL_LIB?=crypto | 8 OPENSSL_LIB?=crypto |
9 | 9 |
10 | 10 |
11 | 11 |
12 all: encodings.so hashes.so | 12 all: encodings.so hashes.so pposix.so |
13 | 13 |
14 install: encodings.so hashes.so | 14 install: encodings.so hashes.so pposix.so |
15 install *.so ../util/ | 15 install *.so ../util/ |
16 | 16 |
17 | 17 |
18 clean: | 18 clean: |
19 rm -f *.so | 19 rm -f *.so |
27 | 27 |
28 hashes.o: hashes.c | 28 hashes.o: hashes.c |
29 gcc $(CFLAGS) -I$(LUA_INCDIR) -c -o hashes.o hashes.c | 29 gcc $(CFLAGS) -I$(LUA_INCDIR) -c -o hashes.o hashes.c |
30 hashes.so: hashes.o | 30 hashes.so: hashes.o |
31 export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(LFLAGS) -o hashes.so hashes.o -L/usr/local/lib -llua$(LUA_SUFFIX) -lcrypto -lssl | 31 export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(LFLAGS) -o hashes.so hashes.o -L/usr/local/lib -llua$(LUA_SUFFIX) -lcrypto -lssl |
32 | |
33 pposix.o: pposix.c | |
34 gcc $(CFLAGS) -I$(LUA_INCDIR) -c -o pposix.o pposix.c | |
35 pposix.so: pposix.o | |
36 export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc $(LFLAGS) -o pposix.so pposix.o -L/usr/local/lib -llua$(LUA_SUFFIX) | |
32 | 37 |