Software /
code /
prosody
Comparison
util-src/Makefile @ 2319:8dca45e17438
util-src/Makefile: Clean up makefile (re-commit because MattJ shouldn't commit anything at 3AM)
author | Brian Cully <bjc@junctionnetworks.com> |
---|---|
date | Fri, 04 Dec 2009 12:14:14 +0000 |
parent | 2022:9cbf4e8cb0ed |
child | 3334:73f078caf99d |
comparison
equal
deleted
inserted
replaced
2318:a831de056de3 | 2319:8dca45e17438 |
---|---|
7 IDN_LIB?=idn | 7 IDN_LIB?=idn |
8 OPENSSL_LIB?=crypto | 8 OPENSSL_LIB?=crypto |
9 CC?=gcc | 9 CC?=gcc |
10 LD?=gcc | 10 LD?=gcc |
11 | 11 |
12 .SUFFIXES: .c .o .so | |
13 | |
14 .c.o: | |
15 $(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o $@ $< | |
16 | |
17 .o.so: | |
18 MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; | |
19 $(LD) $(LDFLAGS) -o $@ $< -L$(LUA_LIBDIR) -llua$(LUA_SUFFIX) -lidn -lcrypto | |
12 | 20 |
13 all: encodings.so hashes.so pposix.so signal.so | 21 all: encodings.so hashes.so pposix.so signal.so |
14 | 22 |
15 install: encodings.so hashes.so pposix.so signal.so | 23 install: encodings.so hashes.so pposix.so signal.so |
16 install *.so ../util/ | 24 install *.so ../util/ |
17 | |
18 | 25 |
19 clean: | 26 clean: |
20 rm -f *.o | 27 rm -f *.o |
21 rm -f *.so | 28 rm -f *.so |
22 rm -f ../util/*.so | 29 rm -f ../util/*.so |
23 | |
24 encodings.o: encodings.c | |
25 $(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o encodings.o encodings.c | |
26 encodings.so: encodings.o | |
27 MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; | |
28 $(LD) $(LFLAGS) -o encodings.so encodings.o -L$(LUA_LIBDIR) -llua$(LUA_SUFFIX) -lidn | |
29 | |
30 | |
31 hashes.o: hashes.c | |
32 $(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o hashes.o hashes.c | |
33 hashes.so: hashes.o | |
34 MACOSX_DEPLOYMENT_TARGET="10.3"; | |
35 export MACOSX_DEPLOYMENT_TARGET; | |
36 $(LD) $(LFLAGS) -o hashes.so hashes.o -L$(LUA_LIBDIR) -llua$(LUA_SUFFIX) -lcrypto | |
37 | |
38 pposix.o: pposix.c | |
39 $(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o pposix.o pposix.c | |
40 pposix.so: pposix.o | |
41 MACOSX_DEPLOYMENT_TARGET="10.3"; | |
42 export MACOSX_DEPLOYMENT_TARGET; | |
43 $(LD) $(LFLAGS) -o pposix.so pposix.o -L$(LUA_LIBDIR) -llua$(LUA_SUFFIX) | |
44 | |
45 lsignal.o: lsignal.c | |
46 $(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o lsignal.o lsignal.c | |
47 signal.so: lsignal.o | |
48 MACOSX_DEPLOYMENT_TARGET="10.3"; | |
49 export MACOSX_DEPLOYMENT_TARGET; | |
50 $(LD) $(LFLAGS) -o signal.so lsignal.o -L$(LUA_LIBDIR) -llua$(LUA_SUFFIX) | |
51 |