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 LIBTLCL = ../tlcl/libtlcl.a | 5 LIBTLCL = ../tlcl/libtlcl.a |
6 | 6 |
7 USE_TPM_EMULATOR ?= 0 | 7 USE_TPM_EMULATOR ?= 0 |
8 | 8 |
9 ifeq ($(USE_TPM_EMULATOR),1) | 9 ifeq ($(USE_TPM_EMULATOR),1) |
10 ifeq ($(LOCAL_COMPILATION),1) | 10 ifeq ($(LOCAL_COMPILATION),1) |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 CC ?= cc | 24 CC ?= cc |
25 CFLAGS += -Werror -Wall -DUSE_TPM_EMULATOR=$(USE_TPM_EMULATOR) | 25 CFLAGS += -Werror -Wall -DUSE_TPM_EMULATOR=$(USE_TPM_EMULATOR) |
26 #CFLAGS += -pedantic -ansi | 26 #CFLAGS += -pedantic -ansi |
27 | 27 |
28 TESTS = tpmtest_clear \ | 28 TESTS = tpmtest_clear \ |
29 tpmtest_earlyextend \ | 29 tpmtest_earlyextend \ |
30 tpmtest_earlynvram \ | 30 tpmtest_earlynvram \ |
31 tpmtest_earlynvram2 \ | 31 tpmtest_earlynvram2 \ |
32 tpmtest_enable \ | 32 tpmtest_enable \ |
| 33 tpmtest_fastenable \ |
33 tpmtest_globallock \ | 34 tpmtest_globallock \ |
34 tpmtest_lock \ | 35 tpmtest_lock \ |
35 tpmtest_readonly \ | 36 tpmtest_readonly \ |
36 tpmtest_redefine \ | 37 tpmtest_redefine \ |
37 tpmtest_spaceperm \ | 38 tpmtest_spaceperm \ |
38 tpmtest_writelimit \ | 39 tpmtest_writelimit \ |
39 | 40 |
40 all: $(TESTS) | 41 all: $(TESTS) |
41 | 42 |
42 $(TESTS): tpmtest_%: %.o $(LIBS) | 43 $(TESTS): tpmtest_%: %.o $(LIBS) |
43 $(CC) $(LDFLAGS) -g $< -o $@ $(LIBS) | 44 $(CC) $(LDFLAGS) -g $< -o $@ $(LIBS) |
44 | 45 |
45 .c.o: | 46 .c.o: |
46 $(CC) $(CFLAGS) -g -c $< -I../tlcl/ | 47 $(CC) $(CFLAGS) -g -c $< -I../tlcl/ |
47 | 48 |
48 clean: | 49 clean: |
49 rm -f $(TESTS) *.o *~ | 50 rm -f $(TESTS) *.o *~ |
OLD | NEW |