blob: ee93e41fbbb177416d2c9fbaf30e2ec859f56f13 [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001all: libcrypto.a
2
3clean:
Dmitry Shmidt01904cf2013-12-05 11:08:35 -08004 rm -f *~ *.o *.d *.gcno *.gcda *.gcov libcrypto.a
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07005
6install:
7 @echo Nothing to be made.
8
9
10include ../lib.rules
11
Dmitry Shmidt98660862014-03-11 17:26:21 -070012CFLAGS += -DCONFIG_CRYPTO_INTERNAL
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070013CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
14CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER
15#CFLAGS += -DALL_DH_GROUPS
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080016CFLAGS += -DCONFIG_SHA256
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070017CFLAGS += -DCONFIG_SHA384
18CFLAGS += -DCONFIG_HMAC_SHA384_KDF
19CFLAGS += -DCONFIG_INTERNAL_SHA384
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070020
21LIB_OBJS= \
22 aes-cbc.o \
Dmitry Shmidt9bce59c2012-09-11 15:06:38 -070023 aes-ccm.o \
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070024 aes-ctr.o \
25 aes-eax.o \
26 aes-encblock.o \
Dmitry Shmidt9bce59c2012-09-11 15:06:38 -070027 aes-gcm.o \
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070028 aes-internal.o \
29 aes-internal-dec.o \
30 aes-internal-enc.o \
31 aes-omac1.o \
Dmitry Shmidtfb45fd52015-01-05 13:08:17 -080032 aes-siv.o \
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070033 aes-unwrap.o \
34 aes-wrap.o \
35 des-internal.o \
36 dh_group5.o \
37 dh_groups.o \
38 md4-internal.o \
39 md5.o \
40 md5-internal.o \
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070041 milenage.o \
42 ms_funcs.o \
43 rc4.o \
44 sha1.o \
45 sha1-internal.o \
46 sha1-pbkdf2.o \
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070047 sha1-prf.o \
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070048 sha1-tlsprf.o \
49 sha1-tprf.o \
50 sha256.o \
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070051 sha256-prf.o \
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080052 sha256-tlsprf.o \
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -080053 sha256-internal.o \
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070054 sha384.o \
55 sha384-prf.o \
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -080056 sha384-internal.o \
57 sha512-internal.o
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070058
59LIB_OBJS += crypto_internal.o
60LIB_OBJS += crypto_internal-cipher.o
61LIB_OBJS += crypto_internal-modexp.o
62LIB_OBJS += crypto_internal-rsa.o
63LIB_OBJS += tls_internal.o
64LIB_OBJS += fips_prf_internal.o
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080065LIB_OBJS += random.o
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070066
67
68libcrypto.a: $(LIB_OBJS)
69 $(AR) crT $@ $?
70
71-include $(OBJS:%.o=%.d)