1 | # Base definitions and rules (XEN_ROOT must be defined in including Makefile) |
---|
2 | include $(XEN_ROOT)/tools/Rules.mk |
---|
3 | |
---|
4 | # |
---|
5 | # Tool definitions |
---|
6 | # |
---|
7 | |
---|
8 | # Xen tools installation directory |
---|
9 | TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin |
---|
10 | |
---|
11 | # General compiler flags |
---|
12 | CFLAGS = -Werror -g3 -I. |
---|
13 | |
---|
14 | # For generating dependencies |
---|
15 | CFLAGS += -Wp,-MD,.$(@F).d |
---|
16 | |
---|
17 | DEP_FILES = .*.d |
---|
18 | |
---|
19 | # Generic project files |
---|
20 | HDRS = $(wildcard *.h) |
---|
21 | SRCS = $(wildcard *.c) |
---|
22 | OBJS = $(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 |
---|
39 | CFLAGS += -D_GNU_SOURCE |
---|
40 | |
---|
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))" |
---|
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 |
---|
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 |
---|