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 HOSTTOP := $(shell pwd) | 5 HOSTTOP := $(shell pwd) |
6 TESTDIR = $(HOSTTOP)/linktest | 6 TESTDIR = $(HOSTTOP)/linktest |
7 BUILD_ROOT := ${BUILD}/$(shell basename ${HOSTTOP}) | 7 BUILD_ROOT := ${BUILD}/$(shell basename ${HOSTTOP}) |
8 | 8 |
9 INCLUDES += \ | 9 INCLUDES += \ |
10 -I$(HOSTTOP)/include \ | 10 -I$(HOSTTOP)/include \ |
11 -I$(FWDIR)/lib/include \ | 11 -I$(FWDIR)/lib/include \ |
12 -I$(FWDIR)/lib/cgptlib/include \ | 12 -I$(FWDIR)/lib/cgptlib/include \ |
13 -I$(FWDIR)/lib/cryptolib/include | 13 -I$(FWDIR)/lib/cryptolib/include |
14 | 14 |
15 # find ./lib -iname '*.c' | sort | 15 # find ./lib -iname '*.c' | sort |
16 ALL_SRCS = \ | 16 ALL_SRCS = \ |
| 17 ./lib/file_keys.c \ |
17 ./lib/host_common.c \ | 18 ./lib/host_common.c \ |
18 ./lib/host_key.c \ | 19 ./lib/host_key.c \ |
19 ./lib/host_keyblock.c \ | 20 ./lib/host_keyblock.c \ |
20 ./lib/host_misc.c \ | 21 ./lib/host_misc.c \ |
21 » ./lib/host_signature.c | 22 » ./lib/host_signature.c \ |
22 | 23 » ./lib/signature_digest.c |
23 | 24 |
24 test : $(HOSTLIB) | 25 test : $(HOSTLIB) |
25 $(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out $(TESTDIR)/main.c \ | 26 $(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out $(TESTDIR)/main.c \ |
26 $(HOSTLIB) $(FWLIB) -lcrypto | 27 $(HOSTLIB) $(FWLIB) -lcrypto |
27 | 28 |
28 include ../common.mk | 29 include ../common.mk |
29 | 30 |
30 $(HOSTLIB) : $(ALL_OBJS) | 31 $(HOSTLIB) : $(ALL_OBJS) |
31 rm -f $@ | 32 rm -f $@ |
32 ar qc $@ $^ | 33 ar qc $@ $^ |
OLD | NEW |