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 TOP ?= ../ | 5 TOP ?= ../ |
6 SRCS = rsa.c sha1.c sha2.c padding.c rsa_utility.c sha_utility.c | 6 SRCS = rsa.c sha1.c sha2.c padding.c rsa_utility.c sha_utility.c |
7 OBJS = $(SRCS:.c=.o) | 7 OBJS = $(SRCS:.c=.o) |
8 CFLAGS += -DUNROLL_LOOPS -DHAVE_ENDIAN_H -DHAVE_LITTLE_ENDIAN | 8 CFLAGS += -DUNROLL_LOOPS -DHAVE_ENDIAN_H -DHAVE_LITTLE_ENDIAN -DNDEBUG |
9 INCLUDES += -I./include/ -I$(TOP)/common/include/ | 9 INCLUDES += -I./include/ -I$(TOP)/common/include/ |
10 | 10 |
11 all: libcrypto.a | 11 all: libcrypto.a |
12 | 12 |
13 libcrypto.a: $(OBJS) | 13 libcrypto.a: $(OBJS) |
14 ar rs libcrypto.a $(OBJS) | 14 ar rs libcrypto.a $(OBJS) |
15 | 15 |
16 padding.c: $(TOP)/scripts/genpadding.sh | 16 padding.c: $(TOP)/scripts/genpadding.sh |
17 $(TOP)/scripts/genpadding.sh >$@ | 17 $(TOP)/scripts/genpadding.sh >$@ |
18 | 18 |
19 .c.o: $(OBJS) | 19 .c.o: $(OBJS) |
20 $(CC) $(CFLAGS) -ansi $(INCLUDES) -c $< -o $@ | 20 $(CC) $(CFLAGS) -ansi $(INCLUDES) -c $< -o $@ |
21 | 21 |
22 clean: | 22 clean: |
23 rm -f $(OBJS) libcrypto.a | 23 rm -f $(OBJS) libcrypto.a |
OLD | NEW |