From 0d0ef5c79805e6a7dc95f82c1cb67be09422b9ed Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Sun, 20 Jan 2008 13:14:00 +0000 Subject: Converts the iptables build infrastructure to autotools. - Can build both static and dynamic at the same time - iptables-static will be a multi-binary, semi-static (link against libc but w/o dynamic plugins) - Always build IPv6 modules - consider INSTALL Signed-off-by: Jan Engelhardt --- Rules.make | 58 ---------------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 Rules.make (limited to 'Rules.make') diff --git a/Rules.make b/Rules.make deleted file mode 100644 index 17ea017..0000000 --- a/Rules.make +++ /dev/null @@ -1,58 +0,0 @@ -#! /usr/bin/make - -all: $(SHARED_LIBS) $(SHARED_SE_LIBS) $(EXTRAS) - -experimental: $(EXTRAS_EXP) - -# Have to handle extensions which no longer exist. -clean: $(EXTRA_CLEANS) - rm -f $(SHARED_LIBS) $(SHARED_SE_LIBS) $(EXTRAS) $(EXTRAS_EXP) $(SHARED_LIBS:%.so=%_sh.o) $(SHARED_SE_LIBS:%.so=%_sh.o) - rm -f extensions/initext.c extensions/initext6.c - @find . -name '*.[ao]' -o -name '*.so' | xargs rm -f - -install: all $(EXTRA_INSTALLS) - @if [ -f /usr/local/bin/iptables -a "$(BINDIR)" = "/usr/local/sbin" ];\ - then echo 'Erasing iptables from old location (now /usr/local/sbin).';\ - rm -f /usr/local/bin/iptables;\ - fi - -install-experimental: $(EXTRA_INSTALLS_EXP) - -TAGS: - @rm -f $@ - find . -name '*.[ch]' | xargs etags -a - -dep: $(DEPFILES) $(EXTRA_DEPENDS) - @echo Dependencies will be generated on next make. - rm -f $(DEPFILES) $(EXTRA_DEPENDS) .makefirst - -$(SHARED_LIBS:%.so=%.d): %.d: %.c - @-$(CC) -M -MG $(CFLAGS) $< | \ - sed -e 's@^.*\.o:@$*.d $*_sh.o:@' > $@ - -$(SHARED_LIBS): %.so : %_sh.o - $(CC) -shared $(EXT_LDFLAGS) -o $@ $< - -$(SHARED_SE_LIBS:%.so=%.d): %.d: %.c - @-$(CC) -M -MG $(CFLAGS) $< | \ - sed -e 's@^.*\.o:@$*.d $*_sh.o:@' > $@ - -$(SHARED_SE_LIBS): %.so : %_sh.o - $(LD) -shared $(EXT_LDFLAGS) -o $@ $< $(LDLIBS) - -%_sh.o : %.c - $(CC) $(SH_CFLAGS) -o $@ -c $< - -.makefirst: - @echo Making dependencies: please wait... - @touch .makefirst - -# This is useful for when dependencies completely screwed -%.h:: - @echo "Unable to resolve dependency on $@. Try 'make clean'." - @-rm -f $(DEPFILES) $(EXTRA_DEPENDS) .makefirst - @[ -d $(KERNEL_DIR)/include/linux/netfilter_ipv4 ] || echo -e '\n\n Please try `make KERNEL_DIR=path-to-correct-kernel'\'.'\n\n' - @exit 1 - --include $(DEPFILES) $(EXTRA_DEPENDS) --include .makefirst -- cgit v1.2.3