Software /
code /
prosody
Comparison
util-src/Makefile @ 463:a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 02:07:33 +0000 |
parent | 445:f68f39a62ecc |
child | 475:fe861de7a4fc |
comparison
equal
deleted
inserted
replaced
462:c6fd961b98f9 | 463:a2452d3bd828 |
---|---|
1 | 1 |
2 include ../config.unix | |
2 | 3 |
3 LUA_INCLUDE=/usr/include/lua5.1 | 4 LUA_SUFFIX?=5.1 |
4 LUA_LIB=lua5.1 | 5 LUA_INCDIR?=/usr/include/lua$(LUA_SUFFIX) |
6 LUA_LIB?=lua$(LUA_SUFFIX) | |
7 IDN_LIB?=idn | |
8 OPENSSL_LIB?=ssl | |
5 | 9 |
6 IDN_LIB=idn | |
7 OPENSSL_LIB=ssl | |
8 | 10 |
9 | 11 |
10 all: encodings.so hashes.so | 12 all: encodings.so hashes.so |
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 |