summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-09-14 21:15:43 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-09-14 21:15:43 +0000
commitc5c12f7a61128b4ae8a6756fdf5cfa2b2d35e207 (patch)
treead4eacf80902b8d9048d562ea12a4f6f7c9b308d /Makefile
parent608e6c29c11c6f6888571bd5054f6501e5961d81 (diff)
add KERNEL_2_4
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ee15c05..46bc1eb 100644
--- a/Makefile
+++ b/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