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 CC ?= gcc | 5 CC ?= gcc |
6 CFLAGS = -Wall -DNDEBUG | 6 CFLAGS = -Wall -DNDEBUG |
7 INCLUDES ?= -I../include/ | 7 INCLUDES ?= -I../include/ |
8 TOP ?= ../ | 8 TOP ?= ../ |
9 | 9 |
10 LIBS = $(TOP)/utils/firmware_image.o $(TOP)/crypto/libcrypto.a \ | 10 LIBS = $(TOP)/utils/kernel_image.o $(TOP)/utils/firmware_image.o \ |
11 » $(TOP)/common/libcommon.a $(TOP)/utils/file_keys.o -lrt | 11 » $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a \ |
| 12 » $(TOP)/utils/file_keys.o -lrt |
12 | 13 |
13 tests: firmware_image_tests sha_tests sha_benchmark rsa_verify_benchmark \ | 14 tests: firmware_image_tests kernel_image_tests sha_tests sha_benchmark \ |
14 » rsa_padding_test | 15 » rsa_verify_benchmark rsa_padding_test |
15 | 16 |
16 sha_tests: sha_tests.c | 17 sha_tests: sha_tests.c |
17 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) | 18 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) |
18 | 19 |
19 firmware_image_tests: firmware_image_tests.c | 20 firmware_image_tests: firmware_image_tests.c $(LIBS) |
| 21 » $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) |
| 22 |
| 23 kernel_image_tests: kernel_image_tests.c $(LIBS) |
20 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) | 24 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) |
21 | 25 |
22 sha_benchmark: sha_benchmark.c timer_utils.c | 26 sha_benchmark: sha_benchmark.c timer_utils.c |
23 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) | 27 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) |
24 | 28 |
25 rsa_padding_test: rsa_padding_test.c | 29 rsa_padding_test: rsa_padding_test.c |
26 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) | 30 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) |
27 | 31 |
28 rsa_verify_benchmark: rsa_verify_benchmark.c timer_utils.c | 32 rsa_verify_benchmark: rsa_verify_benchmark.c timer_utils.c |
29 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) | 33 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) |
30 | 34 |
31 clean: | 35 clean: |
32 rm -f sha_tests sha_benchmark rsa_verify_benchmark \ | 36 rm -f sha_tests sha_benchmark rsa_verify_benchmark \ |
33 » firmware_image_tests rsa_padding_test | 37 » firmware_image_tests kernel_image_tests rsa_padding_test |
OLD | NEW |