summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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 $@ $<