X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=51a00a9ebb5ace2b2e39366961fc3f2cc08f82df;hb=7f9fafbbf8a2c3d7a4b9aab56d63d9ee6f4bed82;hp=a35b722798391d872ffd4ad4cd3c354a4b9d333d;hpb=5f337135c613b2ee3cb24ade7617ecaae0a74681;p=ipfw.git diff --git a/Makefile b/Makefile index a35b722..51a00a9 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +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) +SNAPSHOT_NAME=ipfw_mod-$(DATE) _all: all @@ -12,12 +20,11 @@ all clean distclean: echo target is $(@) (cd ipfw && $(MAKE) $(@) ) (cd dummynet && $(MAKE) $(@) ) + (cd dummynet2 && $(MAKE) $(@) ) snapshot: - -ln -s `pwd` /tmp/$(SNAPSHOT_NAME) - (cd /tmp; tar cvzhf $(SNAPSHOT_NAME).tgz --exclude .svn \ + (cd ..; tar cvzhf /tmp/$(SNAPSHOT_NAME).tgz --exclude .svn \ --exclude README.openwrt --exclude tags --exclude NOTES \ - $(SNAPSHOT_NAME) ) - -rm /tmp/$(SNAPSHOT_NAME) + ipfw_mod ) install: