Major changes:
[ipfw.git] / Makefile
1 # $Id$
2 #
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.
6 #
7 # To build on system with non standard Kernel sources or userland files,
8 # you should run this with
9 #
10 #      make KERNELPATH=/path/to/linux-2.x.y.z USRDIR=/path/to/usr
11 #
12 # We assume that $(USRDIR) contains include/ and lib/ used to build userland.
13
14 DATE ?= $(shell date +%Y%m%d)
15 SNAPSHOT_NAME=ipfw_linux-$(DATE)
16
17 _all: all
18
19 all clean distclean:
20         echo target is $(@)
21         (cd ipfw && $(MAKE) $(@) )
22         (cd dummynet && $(MAKE) $(@) )
23
24 snapshot:
25         -ln -s `pwd` /tmp/$(SNAPSHOT_NAME)
26         (cd /tmp; tar cvzhf $(SNAPSHOT_NAME).tgz --exclude .svn \
27                 --exclude README.openwrt --exclude tags --exclude NOTES \
28                 $(SNAPSHOT_NAME) )
29         -rm  /tmp/$(SNAPSHOT_NAME)
30
31 install: