# $Id$
+#
# Top level makefile for building ipfw kernel and userspace.
# You can run it manually or also under the Planetlab build.
# Planetlab wants also the 'install' target.
+#
+# To build on system with non standard Kernel sources or userland files,
+# you should run this with
+#
+# make KERNELPATH=/path/to/linux-2.x.y.z USRDIR=/path/to/usr
+#
+# We assume that $(USRDIR) contains include/ and lib/ used to build userland.
+
+DATE ?= $(shell date +%Y%m%d)
+SNAPSHOT_NAME=ipfw_mod-$(DATE)
_all: all
all clean distclean:
echo target is $(@)
(cd ipfw && $(MAKE) $(@) )
- (cd dummynet && $(MAKE) $(@) )
+ (cd dummynet2 && $(MAKE) $(@) )
+
+snapshot:
+ (cd ..; tar cvzhf /tmp/$(SNAPSHOT_NAME).tgz --exclude .svn \
+ --exclude README.openwrt --exclude tags --exclude NOTES \
+ ipfw_mod )
install: