summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--userspace/arptables/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/userspace/arptables/Makefile b/userspace/arptables/Makefile
index ee15c05..46bc1eb 100644
--- a/userspace/arptables/Makefile
+++ b/userspace/arptables/Makefile
@@ -20,6 +20,10 @@ RELEASE_DIR:=/tmp
COPT_FLAGS:=-O2
CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include/ -Iinclude/ -DARPTABLES_VERSION=\"$(ARPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DARPTC_DEBUG
+ifeq ($(KERNEL_2_4),y)
+CFLAGS+=-DKERNEL_2_4
+endif
+
EXTRAS+=iptables iptables.o
EXTRA_INSTALLS+=$(DESTDIR)$(BINDIR)/iptables $(DESTDIR)$(MANDIR)/man8/iptables.8
@@ -70,6 +74,8 @@ release:
$(KERNEL_DIR)/include/linux/netfilter_arp.h include/linux/
install -m 0644 -o root -g root \
$(KERNEL_DIR)/include/linux/netfilter_arp/*.h \
- include/linux/netfilter_arp/
+ include/linux/netfilter_arp/
+ install -m 0644 -o root -g root \
+ include/netfilter_arp.h include/linux/netfilter_arp.h
make clean
cd ..;tar -c $(DIR) | gzip >$(DIR).tar.gz