debuggers.hg

view tools/vtpm_manager/Rules.mk @ 16715:c5deb251b9dc

Update version to 3.2.0-rc4
author Keir Fraser <keir.fraser@citrix.com>
date Sat Dec 29 17:57:37 2007 +0000 (2007-12-29)
parents a02622437e07
children bd78714b8594
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 # Xen tools installation directory
9 TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
11 # General compiler flags
12 CFLAGS = -Werror -g3 -I.
14 # For generating dependencies
15 CFLAGS += -Wp,-MD,.$(@F).d
17 DEP_FILES = .*.d
19 # Generic project files
20 HDRS = $(wildcard *.h)
21 SRCS = $(wildcard *.c)
22 OBJS = $(patsubst %.c,%.o,$(SRCS))
24 # Generic (non-header) dependencies
25 $(SRCS): Makefile $(XEN_ROOT)/tools/Rules.mk $(XEN_ROOT)/tools/vtpm_manager/Rules.mk
27 $(OBJS): $(SRCS)
29 -include $(DEP_FILES)
31 # Make sure these are just rules
32 .PHONY : all build install clean
34 #
35 # Project-specific definitions
36 #
38 # Need UNIX98 spec for pthread rwlocks
39 CFLAGS += -D_GNU_SOURCE
41 # Logging Level. See utils/tools.h for usage
42 CFLAGS += -DLOGGING_MODULES="(BITMASK(VTPM_LOG_TCS)|BITMASK(VTPM_LOG_VTSP)|BITMASK(VTPM_LOG_VTPM))"
44 # Silent Mode
45 #CFLAGS += -DLOGGING_MODULES=0x0
46 #CFLAGS += -DLOGGING_MODULES=0xff
48 # Use frontend/backend pairs between manager & DMs?
49 #CFLAGS += -DVTPM_MULTI_VM
51 # vtpm_manager listens on fifo's rather than backend
52 #CFLAGS += -DDUMMY_BACKEND
54 # TCS talks to fifo's rather than /dev/tpm. TPM Emulator assumed on fifos
55 #CFLAGS += -DDUMMY_TPM
57 # Do not have manager launch DMs.
58 #CFLAGS += -DMANUAL_DM_LAUNCH
60 # Fixed OwnerAuth
61 #CFLAGS += -DWELL_KNOWN_OWNER_AUTH
63 # Include
64 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/crypto
65 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/util
66 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/tcs
67 CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/manager