[netfilter-cvslog] r3325 - trunk/nfsim

rusty at netfilter.org rusty at netfilter.org
Mon Dec 13 02:43:19 CET 2004


Author: rusty at netfilter.org
Date: 2004-12-13 02:43:19 +0100 (Mon, 13 Dec 2004)
New Revision: 3325

Added:
   trunk/nfsim/Makefile.in
Log:
<peejix> ./configure: line 31: Makefile.in: No such file or directory

Oops.



Added: trunk/nfsim/Makefile.in
===================================================================
--- trunk/nfsim/Makefile.in	2004-12-12 23:32:16 UTC (rev 3324)
+++ trunk/nfsim/Makefile.in	2004-12-13 01:43:19 UTC (rev 3325)
@@ -0,0 +1,115 @@
+GCOVFLAGS = %GCOVFLAGS%
+TYPE=%TYPE%
+
+CC = gcc
+
+CFLAGS   = -DVERSION=\"%VERSION%\" -Wstrict-prototypes -Wunused -Wall -g -Wa,-W
+CPPFLAGS = -I. -I$(shell pwd)/core -I$(shell pwd)/kernelenv/include \
+	   -I$(shell pwd)/netfilter/include
+
+#MAKEFLAGS += --no-print-directory
+
+
+#CPPFLAGS+=-nostdinc
+
+
+SUBDIRS=netfilter
+
+export
+
+OBJS:=  kernelenv/kernelenv.o
+
+# OBJS which need help functions extracted
+HELP_OBJS:=
+
+all:	simulator core/fakesockopt.so.1.0
+
+include core/Makefile
+include tools/Makefile
+
+
+# link order is important here - the core object and $(TYPE) must be linked
+# before the netfilter object to allow correct ordering of init functions.
+
+# link the netfilter object last
+OBJS += netfilter/netfilter.o
+
+simulator: kernelenv/include/linux/config.h$(HELP_OBJS) $(OBJS) 
+	$(CC) $(GCOVFLAGS) $(CFLAGS) $(LDFLAGS) -lreadline -lcurses -o $@ \
+		$(HELP_OBJS) $(OBJS)
+
+kernelenv/include/linux/config.h: .config
+	awk \
+	'BEGIN { FS="=" } /^[A-Z0-9_]+=(.*)/ { print "#define "$$1" "$$2; }' \
+		< $< > $@
+
+netfilter/netfilter.o: netfilter/ kernelenv/include/linux/config.h
+	cd $(@D) && $(MAKE)
+
+core/fakesockopt.so.1.0: core/fakesockopt.o core/utils.o
+	$(CC) $(CFLAGS) -shared -Wl,-soname,fakesockopt.so.1 -nostdlib -ldl \
+		-o $@ $^
+	ln -sf core/fakesockopt.so.1.0 ./
+
+docs:
+	cd doc && $(MAKE) $@
+
+gcov:
+	set -e; for f in `find netfilter/ -name '*.c'`; do (cd `dirname $$f` && gcov `basename $$f`); done
+
+gcov-clean:
+	find . \( -name '*.da' -o -name '*.bb' -o -name '*.bbg' -o -name '*.gcov' \) -exec rm \{\} \;
+importclean: distclean
+
+.PHONY:	clean
+clean: gcov-clean
+	cd doc && $(MAKE) $@
+	find . -name '*.o' -exec rm \{\} \;
+	rm -f kernelenv/include/linux/config.h
+	rm -f simulator core/fakesockopt.so.1.0 fakesockopt.so.1.0
+
+.PHONY:	distclean
+distclean: clean
+	cd doc && $(MAKE) $@
+	rm -rf netfilter/$(TYPE)
+	rm -rf netfilter/core/* netfilter/include/linux/*
+	rm -f .config
+	rm -f tags
+	rm -f nfsim-*.tar.gz
+	rm -f Makefile
+
+.PHONY:	tags
+tags:
+	find ./ -name '*.[ch]' -print | xargs ctags --links=no
+
+.PHONY:	TAGS
+TAGS:
+	find ./ -name '*.[ch]' -print | xargs etags
+
+# 'restorelinks' required for cvs checkout
+.PHONY: savelinks restorelinks
+savelinks:
+	(cd kernelenv/include && find . -lname '*/kernelenv.h') > .links
+
+restorelinks:
+	(cd kernelenv/include && \
+		while read i; do ln -s ../kernelenv.h $$i; done) < .links
+
+
+$(HELP_OBJS): %.o:%.c
+	doc/gen-help $<
+	$(COMPILE.c) -o $@ $<; ret=$$?; rm -f `basename $< .c`-help*; exit $$ret
+
+.PHONY: snapshot
+snapshot: clean distclean 
+	(cd ../ && tar --exclude .svn --exclude nfsim/nfsim-*.tar.gz \
+	        --exclude '.*.sw[op]' \
+		-czvf nfsim/nfsim-$(shell date +%Y%m%d).tar.gz nfsim)
+
+install: simulator
+	cp simulator /usr/local/bin/nfsim$(VERSION)
+	cp fakesockopt.so.1.0 /usr/local/lib
+
+# 2.4 Makefiles want this
+TOPDIR=$(shell pwd)
+




More information about the netfilter-cvslog mailing list