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 SRCS=sha_tests.c verify_data.c digest_utility.c signature_digest.c | 5 SRCS=sha_tests.c verify_data.c signature_digest.c |
6 OBJS=$(SRCS:.c=.o) | 6 OBJS=$(SRCS:.c=.o) |
7 LIBS=$(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a | 7 LIBS=$(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a |
8 | 8 |
9 tests: sha_tests verify_data signature_digest | 9 tests: sha_tests verify_data signature_digest |
10 | 10 |
11 sha_tests: sha_tests.c | 11 sha_tests: sha_tests.c |
12 $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ $(LIBS) | 12 $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ $(LIBS) |
13 | 13 |
14 verify_data: verify_data.c digest_utility.o | 14 verify_data: verify_data.c digest_utility.o |
15 » $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ digest_utility.o $(LIBS) | 15 » $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ $(LIBS) |
16 | 16 |
17 signature_digest:» signature_digest.c digest_utility.o | 17 signature_digest:» signature_digest.c |
18 » $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ digest_utility.o $(LIBS) | 18 » $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ $(LIBS) |
19 | |
20 digest_utility.o:» digest_utility.c | |
21 » $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ | |
22 clean: | 19 clean: |
23 rm -f $(OBJS) sha_tests verify_data signature_digest | 20 rm -f $(OBJS) sha_tests verify_data signature_digest |
OLD | NEW |