ia64/xen-unstable

view tools/vtpm_manager/Rules.mk @ 6979:f8e7af29daa1

merge?
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 20 09:43:46 2005 +0000 (2005-09-20)
parents 3233e7ecfa9f c0796e18b6a4
children 06d84bf87159
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