util-src/Makefile

Thu, 04 Dec 2008 20:16:30 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 04 Dec 2008 20:16:30 +0500
changeset 541
3521e0851c9e
parent 513
cadc9d6db7d8
child 534
684cd8aedc1a
permissions
-rw-r--r--

Change modules to use the new add_feature module API method.
This also fixes the bug causing disco features being added to every disco reply for every host.


include ../config.unix

LUA_SUFFIX?=5.1
LUA_INCDIR?=/usr/include/lua$(LUA_SUFFIX)
LUA_LIB?=lua$(LUA_SUFFIX)
IDN_LIB?=idn
OPENSSL_LIB?=crypto



all: encodings.so hashes.so

install: encodings.so hashes.so
	install -s *.so ../util/
	

clean:
	rm -f *.so
	rm -f ../util/*.so

encodings.so: encodings.c
	gcc $(CFLAGS) encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so

hashes.so: hashes.c
	gcc $(CFLAGS) hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so
	

mercurial