ia64/xen-unstable

view tools/vtpm_manager/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 19f1f4fa7745
line source
1 # Base definitions and rules (XEN_ROOT must be defined in including Makefile)
2 include $(XEN_ROOT)/tools/Rules.mk
4 #
5 # Tool definitions
6 #
8 # Installation program and options
9 INSTALL = install
10 INSTALL_PROG = $(INSTALL) -m0755
11 INSTALL_DIR = $(INSTALL) -d -m0755
13 # Xen tools installation directory
14 TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
16 # General compiler flags
17 CFLAGS = -Wall -Werror -g3 -I.
19 # For generating dependencies
20 CFLAGS += -Wp,-MD,.$(@F).d
22 DEP_FILES = .*.d
24 # Generic project files
25 HDRS = $(wildcard *.h)
26 SRCS = $(wildcard *.c)
27 OBJS = $(patsubst %.c,%.o,$(SRCS))
29 # Generic (non-header) dependencies
30 $(SRCS): Makefile $(XEN_ROOT)/tools/Rules.mk $(XEN_ROOT)/tools/vtpm_manager/Rules.mk
32 $(OBJS): $(SRCS)
34 -include $(DEP_FILES)
36 # Make sure these are just rules
37 .PHONY : all build install clean
39 #
40 # Project-specific definitions
41 #
43 # Logging Level. See utils/tools.h for usage
44 CFLAGS += -DLOGGING_MODULES="(BITMASK(VTPM_LOG_TCS)|BITMASK(VTPM_LOG_VTSP)|BITMASK(VTPM_LOG_VTPM)|BITMASK(VTPM_LOG_VTPM_DEEP))"
46 # Silent Mode
47 #CFLAGS += -DLOGGING_MODULES=0x0
48 #CFLAGS += -DLOGGING_MODULES=0xff
50 # Use frontend/backend pairs between manager & DMs?
51 #CFLAGS += -DVTPM_MULTI_VM
53 # vtpm_manager listens on /tmp/in.fifo and /tmp/out.fifo rather than backend
54 #CFLAGS += -DDUMMY_BACKEND
56 # Do not have manager launch DMs.
57 #CFLAGS += -DMANUAL_DM_LAUNCH
59 # Fixed SRK
60 CFLAGS += -DWELL_KNOWN_SRK_AUTH
61 #CFLAGS += -DWELL_KNOWN_OWNER_AUTH
63 # TPM Hardware Device or TPM Simulator
64 #CFLAGS += -DTPM_HWDEV
66 # Include
67 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/crypto
68 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/util
69 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/tcs