OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 INCLUDES += -I./include \ |
| 6 -I$(FWDIR)/lib/include \ |
| 7 -I$(FWDIR)/lib/cgptlib/include \ |
| 8 -I$(FWDIR)/lib/cryptolib/include \ |
| 9 -I$(FWDIR)/lib/tpm_lite/include \ |
| 10 -I$(HOSTDIR)/include |
| 11 BUILD_ROOT = ${BUILD}/tests/tpm_lite |
| 12 |
| 13 TEST_NAMES = tpmtest_clear \ |
| 14 tpmtest_earlyextend \ |
| 15 tpmtest_earlynvram \ |
| 16 tpmtest_earlynvram2 \ |
| 17 tpmtest_enable \ |
| 18 tpmtest_fastenable \ |
| 19 tpmtest_globallock \ |
| 20 tpmtest_lock \ |
| 21 tpmtest_readonly \ |
| 22 tpmtest_redefine \ |
| 23 tpmtest_spaceperm \ |
| 24 tpmtest_writelimit \ |
| 25 |
| 26 TEST_BINS = $(addprefix ${BUILD_ROOT}/,$(TEST_NAMES)) |
| 27 |
| 28 ALL_DEPS = $(addsuffix .d,${TEST_BINS}) |
| 29 CFLAGS += -MMD -MF $@.d |
| 30 |
| 31 LIBS := ${TEST_LIB} $(HOSTLIB) $(FWLIB) |
| 32 |
| 33 all: $(TEST_BINS) |
| 34 |
| 35 ${BUILD_ROOT}/%.o : %.c |
| 36 $(CC) $(CFLAGS) $(INCLUDES) -MMD -MF $@.d -c -o $@ $< |
| 37 |
| 38 ${BUILD_ROOT}/tpmtest_%: %.c ${LIBS} |
| 39 $(CC) $(CFLAGS) $(INCLUDES) $< ${LIBS} -o $@ -lcrypto -lrt $(LDFLAGS) |
| 40 |
| 41 -include ${ALL_DEPS} |
OLD | NEW |