From 8e07bd78ade5e2b4636d410a897119e111ea3e6c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 19 Dec 2000 03:11:00 +0000 Subject: Libc5 can't do IPv6. --- Makefile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index dd28ae5f..c5981310 100644 --- a/Makefile +++ b/Makefile @@ -4,22 +4,32 @@ TOPLEVEL_INCLUDED=YES ifndef KERNEL_DIR KERNEL_DIR=/usr/src/linux endif -NETFILTER_VERSION:=1.1.2 -OLD_NETFILTER_VERSION:=1.1.1 +NETFILTER_VERSION:=1.1.3 +OLD_NETFILTER_VERSION:=1.1.2 LIBDIR:=/usr/local/lib BINDIR:=/usr/local/bin MANDIR:=/usr/local/man INCDIR:=/usr/local/include +# Need libc6 for this. Should covert to autoconf. +ifneq ($(shell ldd --version | fgrep 2.2),) +DO_IPV6=1 +endif + COPT_FLAGS:=-O2 -DNDEBUG CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -Iinclude/ -I$(KERNEL_DIR)/include -DNETFILTER_VERSION=\"$(NETFILTER_VERSION)\" #-g #-pg DEPFILES = $(SHARED_LIBS:%.so=%.d) SH_CFLAGS:=$(CFLAGS) -fPIC -EXTRAS+=iptables iptables.o iptables-save iptables-restore # ip6tables ip6tables.o -EXTRA_INSTALLS+=$(DESTDIR)$(BINDIR)/iptables $(DESTDIR)$(MANDIR)/man8/iptables.8 $(DESTDIR)$(BINDIR)/iptables-save $(DESTDIR)$(BINDIR)/iptables-restore # $(DESTDIR)$(BINDIR)/ip6tables +EXTRAS+=iptables iptables.o iptables-save iptables-restore +EXTRA_INSTALLS+=$(DESTDIR)$(BINDIR)/iptables $(DESTDIR)$(MANDIR)/man8/iptables.8 $(DESTDIR)$(BINDIR)/iptables-save $(DESTDIR)$(BINDIR)/iptables-restore + +ifdef DO_IPV6 +EXTRAS+=ip6tables ip6tables.o +EXTRA_INSTALLS+=$(DESTDIR)$(BINDIR)/ip6tables +endif # Sparc64 hack ifeq ($(shell uname -m),sparc64) -- cgit v1.2.3