source: trunk/packages/xen-common/xen-common/tools/vtpm_manager/Rules.mk @ 95

Last change on this file since 95 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 1.6 KB
Line 
1# Base definitions and rules (XEN_ROOT must be defined in including Makefile)
2include $(XEN_ROOT)/tools/Rules.mk
3
4#
5# Tool definitions
6#
7
8# Xen tools installation directory
9TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
10
11# General compiler flags
12CFLAGS  = -Werror -g3 -I.
13
14# For generating dependencies
15CFLAGS  += -Wp,-MD,.$(@F).d
16
17DEP_FILES       = .*.d
18
19# Generic project files
20HDRS    = $(wildcard *.h)
21SRCS    = $(wildcard *.c)
22OBJS    = $(patsubst %.c,%.o,$(SRCS))
23
24# Generic (non-header) dependencies
25$(SRCS): Makefile $(XEN_ROOT)/tools/Rules.mk $(XEN_ROOT)/tools/vtpm_manager/Rules.mk
26
27$(OBJS): $(SRCS)
28
29-include $(DEP_FILES)
30
31# Make sure these are just rules
32.PHONY : all build install clean
33
34#
35# Project-specific definitions
36#
37
38# Need UNIX98 spec for pthread rwlocks
39CFLAGS += -D_GNU_SOURCE
40
41# Logging Level. See utils/tools.h for usage
42CFLAGS += -DLOGGING_MODULES="(BITMASK(VTPM_LOG_TCS)|BITMASK(VTPM_LOG_VTSP)|BITMASK(VTPM_LOG_VTPM))"
43
44# Silent Mode
45#CFLAGS += -DLOGGING_MODULES=0x0
46#CFLAGS += -DLOGGING_MODULES=0xff
47
48# Use frontend/backend pairs between manager & DMs?
49#CFLAGS += -DVTPM_MULTI_VM
50
51# vtpm_manager listens on fifo's rather than backend
52#CFLAGS += -DDUMMY_BACKEND
53
54# TCS talks to fifo's rather than /dev/tpm. TPM Emulator assumed on fifos
55#CFLAGS += -DDUMMY_TPM
56
57# Do not have manager launch DMs.
58#CFLAGS += -DMANUAL_DM_LAUNCH
59
60# Fixed OwnerAuth
61#CFLAGS += -DWELL_KNOWN_OWNER_AUTH
62
63# Include
64CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/crypto
65CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/util
66CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/tcs
67CFLAGS += -I$(XEN_ROOT)/tools/vtpm_manager/manager
Note: See TracBrowser for help on using the repository browser.