summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-05 15:41:12 +0200
committersven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-05 15:41:12 +0200
commita6f0e711a929a2be52d983dbfa8fda8b4b59dd73 (patch)
tree3de2d0f814f00455f25263aaf4efaf5e27852d53 /Makefile
parentd22cd0195d4d27efc01deba705351a46d9893628 (diff)
downloadNPTv6-a6f0e711a929a2be52d983dbfa8fda8b4b59dd73.tar
NPTv6-a6f0e711a929a2be52d983dbfa8fda8b4b59dd73.zip
added cvs props, started readme, renamed --nospoof to --nocheck
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@2 3484d885-4da6-438d-b19d-107d078dd756
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a3f5a2c..88d4740 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,12 @@ KVERSION := $(shell uname -r)
KPATH := /lib/modules/$(KVERSION)/build
IPTABLES_VERSION := $(shell ip6tables --version|sed 's/^.*\([[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\).*/\1/')
IPTABLES_VERSION_CODE := $(shell echo $$(( $$(echo $(IPTABLES_VERSION)|sed 's/^.*\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*/\1 * 65536 + \2 * 256 + \3/') )))
+ifeq ($(DEBUG),1)
+EXTRA_CFLAGS := -DMAP66_DEBUG
+endif
all: libip6t_MAP66.so
- $(MAKE) -C $(KPATH) M=$(PWD) modules
+ $(MAKE) -C $(KPATH) V=1 M=$(PWD) modules
libip6t_MAP66.so: libip6t_MAP66.o
gcc -shared -o $@ $<