ia64/xen-unstable

view tools/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 18f765da2725
line source
1 XEN_ROOT = ../
2 include $(XEN_ROOT)/tools/Rules.mk
4 SUBDIRS :=
5 SUBDIRS += libxc
6 SUBDIRS += xenstore
7 SUBDIRS += misc
8 SUBDIRS += examples
9 SUBDIRS += xentrace
10 SUBDIRS += xcutils
11 SUBDIRS += firmware
12 SUBDIRS += security
13 SUBDIRS += console
14 ifeq ($(VTPM_TOOLS),y)
15 SUBDIRS += vtpm_manager
16 SUBDIRS += vtpm
17 endif
18 SUBDIRS += xenstat
20 .PHONY: all install clean check check_clean ioemu eioemuinstall ioemuclean
22 # These don't cross-compile
23 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
24 SUBDIRS += python
25 #SUBDIRS += pygrub
26 endif
28 .PHONY: all install clean check check_clean ioemu eioemuinstall ioemuclean
30 all: check
31 @set -e; for subdir in $(SUBDIRS); do \
32 $(MAKE) -C $$subdir $@; \
33 done
34 $(MAKE) ioemu
36 install: check
37 @set -e; for subdir in $(SUBDIRS); do \
38 $(MAKE) -C $$subdir $@; \
39 done
40 $(MAKE) ioemuinstall
42 clean: check_clean
43 @set -e; for subdir in $(SUBDIRS); do \
44 $(MAKE) -C $$subdir $@; \
45 done
46 $(MAKE) ioemuclean
48 check:
49 $(MAKE) -C check
51 check_clean:
52 $(MAKE) -C check clean
54 ifndef XEN_NO_IOEMU
55 ioemu ioemuinstall ioemuclean:
56 [ -f ioemu/config-host.h ] || \
57 (cd ioemu; ./configure --prefix=usr)
58 $(MAKE) -C ioemu $(patsubst ioemu%,%,$@)
59 else
60 ioemu ioemuinstall ioemuclean:
61 endif