ia64/xen-unstable

view tools/vtpm_manager/Rules.mk @ 6946:e703abaf6e3d

Add behaviour to the remove methods to remove the transaction's path itself. This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.
author emellor@ewan
date Sun Sep 18 14:42:13 2005 +0100 (2005-09-18)
parents 3233e7ecfa9f
children c0796e18b6a4 f8e7af29daa1
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 += -DUSE_FIXED_SRK_AUTH
62 # TPM Hardware Device or TPM Simulator
63 #CFLAGS += -DTPM_HWDEV
65 # Include
66 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/crypto
67 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/util
68 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/tcs