Comparison

util-src/Makefile @ 418:004c278154dc

Add rough Makefile for util-src/
author Matthew Wild <mwild1@gmail.com>
date Wed, 26 Nov 2008 02:21:18 +0000
child 442:722f63c70a77
comparison
equal deleted inserted replaced
417:d60e63379284 418:004c278154dc
1
2 LUA_INCLUDE=/usr/include/lua5.1
3 LUA_LIB=lua5.1
4
5 IDN_LIB=idn
6 OPENSSL_LIB=ssl
7
8
9 all: encodings.so hashes.so
10
11 install: encodings.so hashes.so
12 strip *.so
13 cp *.so ../util/
14
15
16 clean:
17 rm *.so
18
19 encodings.so: encodings.c
20 gcc -shared encodings.c -I$(LUA_INCLUDE) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so
21
22 hashes.so: hashes.c
23 gcc -shared hashes.c -I$(LUA_INCLUDE) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so
24