diff options
author | rusty <rusty> | 2000-12-19 03:11:00 +0000 |
---|---|---|
committer | rusty <rusty> | 2000-12-19 03:11:00 +0000 |
commit | 917547328c7bca27c7c096e60755b5b2dfdfcf8b (patch) | |
tree | 3d355470c0ced5b0a282b8bd11fc77d69c793773 /Makefile | |
parent | ddccca904732bb9a82c9b878398d8e00088fc047 (diff) |
Libc5 can't do IPv6.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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) |