ia64/xen-unstable

view tools/vnet/Makefile @ 7778:0b4596caf761

nloopbacks default is now 8. So vifnum of greater than 7 requires
an adjustment to nloopbacks. Warning comment updated.

Signed-off-by: Nivedita Singhvi (niv@us.ibm.com)
author kaf24@firebug.cl.cam.ac.uk
date Fri Nov 11 10:46:36 2005 +0100 (2005-11-11)
parents 06d84bf87159
children 71b0f00f6344
line source
1 # -*- mode: Makefile; -*-
3 ifndef VNET_ROOT
4 export VNET_ROOT = $(shell pwd)
5 include $(VNET_ROOT)/Make.env
6 endif
8 .PHONY: all compile install dist clean pristine
9 .PHONY: gc-all gc-install gc-clean
11 SUBDIRS:=
12 SUBDIRS+= examples
13 SUBDIRS+= gc
14 SUBDIRS+= libxutil
15 SUBDIRS+= vnetd
16 SUBDIRS+= vnet-module
18 all: compile
20 gc.tar.gz:
21 wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$@
23 gc: gc.tar.gz
24 tar xfz gc.tar.gz
25 ln -sf gc?.? gc
27 $(GC_LIB_A): gc
28 (cd gc && ./configure --prefix=$(GC_DIR) )
29 make -C gc
30 DESTDIR="" make -C gc install
32 gc-all: $(GC_LIB_A)
34 gc-install:
36 gc-clean:
37 -@$(RM) -r gc?.? gc
39 submak = $(MAKE) -C $(patsubst %-$(1),%,$(@)) $(1)
40 subtgt = $(patsubst %,%-$(1),$(SUBDIRS))
42 %-all:
43 $(call submak,all)
45 %-clean:
46 -$(call submak,clean)
48 %-install:
49 $(call submak,install)
51 compile: $(call subtgt,all)
53 install: DESTDIR=
54 install: dist
56 dist: compile $(call subtgt,install)
58 clean: $(call subtgt,clean)
59 -@$(RM) -r build
61 pristine: clean
62 -@$(RM) gc.tar.gz