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