ia64/xen-unstable

annotate tools/Rules.mk @ 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 82e48750542c
rev   line source
kaf24@3549 1 # -*- mode: Makefile; -*-
kaf24@3549 2
kaf24@4252 3 include $(XEN_ROOT)/Config.mk
kaf24@4252 4
kaf24@3549 5 XEN_XC = $(XEN_ROOT)/tools/python/xen/lowlevel/xc
kaf24@3549 6 XEN_LIBXC = $(XEN_ROOT)/tools/libxc
kaf24@5965 7 XEN_XENSTORE = $(XEN_ROOT)/tools/xenstore
josht@6334 8 XEN_LIBXENSTAT = $(XEN_ROOT)/tools/xenstat/libxenstat/src
kaf24@3549 9
kaf24@3951 10 ifeq ($(XEN_TARGET_ARCH),x86_32)
kaf24@3549 11 CFLAGS += -m32 -march=i686
kaf24@5694 12 LDFLAGS += -m32
kaf24@3549 13 endif
kaf24@3549 14
kaf24@3951 15 ifeq ($(XEN_TARGET_ARCH),x86_64)
kaf24@3549 16 CFLAGS += -m64
kaf24@5694 17 LDFLAGS += -m64
kaf24@3549 18 endif
kaf24@3903 19
katzj@4544 20 X11_LDPATH = -L/usr/X11R6/$(LIBDIR)
katzj@4544 21
kaf24@3903 22 %.opic: %.c
kaf24@3903 23 $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
kaf24@3903 24
kaf24@3903 25 %.o: %.c
kaf24@3903 26 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
kaf24@4451 27
kaf24@4451 28 %.o: %.cc
kaf24@4451 29 $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<