Software /
code /
prosody
Comparison
util-src/Makefile @ 475:fe861de7a4fc
Forced merge.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Sat, 29 Nov 2008 11:24:59 +0100 |
parent | 472:ee45599c0b5d |
parent | 463:a2452d3bd828 |
child | 491:25042b0d2626 |
comparison
equal
deleted
inserted
replaced
474:666e22848890 | 475:fe861de7a4fc |
---|---|
1 | |
2 include ../config.unix | |
3 | |
4 LUA_SUFFIX?=5.1 | |
5 LUA_INCDIR?=/usr/include/lua$(LUA_SUFFIX) | |
6 LUA_LIB?=lua$(LUA_SUFFIX) | |
7 IDN_LIB?=idn | |
8 OPENSSL_LIB?=ssl | |
1 | 9 |
2 | 10 |
3 LUA_INCLUDE=/usr/include/lua51 | |
4 LUA_LIB=lua5.1 | |
5 | |
6 IDN_LIB=idn | |
7 OPENSSL_LIB=ssl | |
8 | 11 |
9 all: encodings.so hashes.so | 12 all: encodings.so hashes.so |
10 | |
11 | 13 |
12 install: encodings.so hashes.so | 14 install: encodings.so hashes.so |
13 strip *.so | 15 strip *.so |
14 cp *.so ../util/ | 16 cp *.so ../util/ |
15 | 17 |
16 | 18 |
17 clean: | 19 clean: |
18 rm *.so | 20 rm -f *.so |
21 rm -f ../util/*.so | |
19 | 22 |
20 encodings.so: encodings.c | 23 encodings.so: encodings.c |
21 gcc -shared encodings.c -I$(LUA_INCLUDE) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so | 24 gcc -shared encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so |
22 | 25 |
23 hashes.so: hashes.c | 26 hashes.so: hashes.c |
24 gcc -shared hashes.c -I$(LUA_INCLUDE) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so | 27 gcc -shared hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so |
25 | 28 |