ia64/xen-unstable

view tools/vnet/Makefile @ 7238:971e7c7411b3

Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception. Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Thu Oct 06 10:13:11 2005 +0100 (2005-10-06)
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