X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=f8638383720c4aaa31c2a235aca3481a364ae805;hb=fd71c20d7328b71ac47493f9f27925de690980ed;hp=69b6481a81ee60c6b7cdd026fa3c858c97c85523;hpb=1c3dc9f45532c25adc21f297422f0f5a7420b8ca;p=ipfw.git diff --git a/Makefile b/Makefile index 69b6481..f863838 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_mod-$(DATE) _all: all @@ -10,4 +21,9 @@ all clean distclean: (cd ipfw && $(MAKE) $(@) ) (cd dummynet && $(MAKE) $(@) ) +snapshot: + (cd ..; tar cvzhf /tmp/$(SNAPSHOT_NAME).tgz --exclude .svn \ + --exclude README.openwrt --exclude tags --exclude NOTES \ + ipfw_mod ) + install: