OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Always use VBOOT_DEBUG for tests. (Multiple -DVAR for the same VAR are OK.) | 5 # Always use VBOOT_DEBUG for tests. (Multiple -DVAR for the same VAR are OK.) |
6 CFLAGS += -DVBOOT_DEBUG | 6 CFLAGS += -DVBOOT_DEBUG |
7 | 7 |
8 INCLUDES += -I./include \ | 8 INCLUDES += -I./include \ |
9 -I$(FWDIR)/lib/include \ | 9 -I$(FWDIR)/lib/include \ |
10 -I$(FWDIR)/lib/cgptlib/include \ | 10 -I$(FWDIR)/lib/cgptlib/include \ |
(...skipping 13 matching lines...) Expand all Loading... |
24 tpmtest_testsetup \ | 24 tpmtest_testsetup \ |
25 tpmtest_timing \ | 25 tpmtest_timing \ |
26 tpmtest_writelimit \ | 26 tpmtest_writelimit \ |
27 | 27 |
28 TEST_BINS = $(addprefix ${BUILD_ROOT}/,$(TEST_NAMES)) | 28 TEST_BINS = $(addprefix ${BUILD_ROOT}/,$(TEST_NAMES)) |
29 SHARED_TEST_OBJ = $(BUILD_ROOT)/tlcl_tests.o | 29 SHARED_TEST_OBJ = $(BUILD_ROOT)/tlcl_tests.o |
30 | 30 |
31 ALL_DEPS = $(addsuffix .d,${TEST_BINS}) | 31 ALL_DEPS = $(addsuffix .d,${TEST_BINS}) |
32 CFLAGS += -MMD -MF $@.d | 32 CFLAGS += -MMD -MF $@.d |
33 | 33 |
34 LIBS := ${TEST_LIB} $(HOSTLIB) $(FWLIB) | 34 LIBS := ${TEST_LIB} $(HOSTLIB) |
35 | 35 |
36 all: $(TEST_BINS) | 36 all: $(TEST_BINS) |
37 | 37 |
38 ${BUILD_ROOT}/%.o : %.c | 38 ${BUILD_ROOT}/%.o : %.c |
39 $(CC) $(CFLAGS) $(INCLUDES) -MMD -MF $@.d -c -o $@ $< | 39 $(CC) $(CFLAGS) $(INCLUDES) -MMD -MF $@.d -c -o $@ $< |
40 | 40 |
41 ${BUILD_ROOT}/tpmtest_%: %.c ${LIBS} ${SHARED_TEST_OBJ} | 41 ${BUILD_ROOT}/tpmtest_%: %.c ${LIBS} ${SHARED_TEST_OBJ} |
42 $(CC) $(CFLAGS) $(INCLUDES) $< ${SHARED_TEST_OBJ} \ | 42 $(CC) $(CFLAGS) $(INCLUDES) $< ${SHARED_TEST_OBJ} \ |
43 ${LIBS} -o $@ -lcrypto -lrt $(LDFLAGS) | 43 ${LIBS} -o $@ -lcrypto -lrt $(LDFLAGS) |
44 | 44 |
45 -include ${ALL_DEPS} | 45 -include ${ALL_DEPS} |
OLD | NEW |