X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=2410b3d90540451a00502924ec46b43e1773cf72;hb=1a406635eb894da69f2435c4d3ae7517e3c5cd70;hp=69b6481a81ee60c6b7cdd026fa3c858c97c85523;hpb=1c3dc9f45532c25adc21f297422f0f5a7420b8ca;p=ipfw.git diff --git a/Makefile b/Makefile index 69b6481..2410b3d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,18 @@ # $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_linux-$(DATE) _all: all @@ -10,4 +21,11 @@ all clean distclean: (cd ipfw && $(MAKE) $(@) ) (cd dummynet && $(MAKE) $(@) ) +snapshot: + -ln -s `pwd` /tmp/$(SNAPSHOT_NAME) + (cd /tmp; tar cvzhf $(SNAPSHOT_NAME).tgz --exclude .svn \ + --exclude README.openwrt --exclude tags --exclude NOTES \ + $(SNAPSHOT_NAME) ) + -rm /tmp/$(SNAPSHOT_NAME) + install: