Fix for handling latin1 encoded hostnames in SASL
[prosody.git] / util-src / Makefile
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?=crypto
9
10
11
12 all: encodings.so hashes.so
13
14 install: encodings.so hashes.so
15         install -s *.so ../util/
16         
17
18 clean:
19         rm -f *.so
20         rm -f ../util/*.so
21
22 encodings.so: encodings.c
23         gcc $(CFLAGS) encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so
24
25 hashes.so: hashes.c
26         gcc $(CFLAGS) hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so
27