summaryrefslogtreecommitdiff
path: root/lua/Makefile
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2011-02-10 15:27:54 -0800
committerSam Roberts <vieuxtech@gmail.com>2011-02-10 15:27:54 -0800
commit5b91379094fe4a155761c77caf7e12c4029184f3 (patch)
treed26b7928c3ead3e64fd53c6c0a2d9fadcb47c34c /lua/Makefile
parent2616cffc35c19bde082ce2ea550470b981f27e9a (diff)
downloadlibnet-5b91379094fe4a155761c77caf7e12c4029184f3.tar.gz
Support local customizations in local.mak
Diffstat (limited to 'lua/Makefile')
-rw-r--r--lua/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/lua/Makefile b/lua/Makefile
index bf09334..96fbf48 100644
--- a/lua/Makefile
+++ b/lua/Makefile
@@ -1,8 +1,10 @@
.PHONY: default build test
+-include local.mak
+
default: build
-BINDING=net.so pcap.so nfq.so
+BINDING+=net.so pcap.so nfq.so
UNAME=$(shell uname)
@@ -10,7 +12,7 @@ include $(UNAME).mak
build: $(BINDING)
-prefix=/usr/local
+prefix=/usr
SODIR = $(DESTDIR)$(prefix)/lib/lua/5.1/
@@ -48,10 +50,10 @@ net.so: CDEFS=$(DNETDEFS) $(LNETDEFS)
pcap.so: pcap.c
pcap.so: LDLIBS+=-lpcap
-nfq.so: nfq.c
+nfq.so: nfq.c nflua.h
nfq.so: LDLIBS+=-lnetfilter_queue
-nfct.so: nfct.c
+nfct.so: nfct.c nflua.h
nfct.so: LDLIBS+=-lnetfilter_conntrack
TNET=$(wildcard test-*.lua)