ia64/xen-unstable

view tools/vnet/Makefile @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
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