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=rsa.c sha1.c sha2.c padding.c rsa_utility.c | 5 SRCS=rsa.c sha1.c sha2.c padding.c rsa_utility.c sha_utility.c |
6 OBJS=$(SRCS:.c=.o) | 6 OBJS=$(SRCS:.c=.o) |
7 | 7 |
8 all: libcrypto.a | 8 all: libcrypto.a |
9 | 9 |
10 libcrypto.a: $(OBJS) | 10 libcrypto.a: $(OBJS) |
11 ar rs libcrypto.a $(OBJS) | 11 ar rs libcrypto.a $(OBJS) |
12 | 12 |
13 padding.c: genpadding.sh | 13 padding.c: genpadding.sh |
14 ./genpadding.sh >$@ | 14 ./genpadding.sh >$@ |
15 | 15 |
16 .c.o: $(OBJS) | 16 .c.o: $(OBJS) |
17 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ | 17 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ |
18 | 18 |
19 clean: | 19 clean: |
20 rm -f $(OBJS) libcrypto.a | 20 rm -f $(OBJS) libcrypto.a |
OLD | NEW |