diff options
author | miod <> | 2014-05-06 19:55:06 +0000 |
---|---|---|
committer | miod <> | 2014-05-06 19:55:06 +0000 |
commit | a017339f4bfe6d30dc0dcc877349d89ed75f58f5 (patch) | |
tree | 6121c32efdbb3738e22f699949f9455ed35f0a09 /src/lib | |
parent | a03b1c0a06cb27f9494abdfe35eb92a152e17386 (diff) | |
download | openbsd-a017339f4bfe6d30dc0dcc877349d89ed75f58f5.tar.gz openbsd-a017339f4bfe6d30dc0dcc877349d89ed75f58f5.tar.bz2 openbsd-a017339f4bfe6d30dc0dcc877349d89ed75f58f5.zip |
Sort CFLAGS, SRC and SSLASM stanzas by the directories they apply to, to make
these files similar in layout to the other md Makefile.inc; no functional
change.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/arch/amd64/Makefile.inc | 84 | ||||
-rw-r--r-- | src/lib/libcrypto/arch/i386/Makefile.inc | 67 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto/arch/amd64/Makefile.inc | 84 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto/arch/i386/Makefile.inc | 67 |
4 files changed, 166 insertions, 136 deletions
diff --git a/src/lib/libcrypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/arch/amd64/Makefile.inc index a408186a03..24f16d0a81 100644 --- a/src/lib/libcrypto/arch/amd64/Makefile.inc +++ b/src/lib/libcrypto/arch/amd64/Makefile.inc | |||
@@ -1,42 +1,57 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/04/17 18:11:47 miod Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.2 2014/05/06 19:55:06 miod Exp $ |
2 | 2 | ||
3 | # amd64-specific libcrypto build rules | 3 | # amd64-specific libcrypto build rules |
4 | 4 | ||
5 | SRCS+= bf_enc.c des_enc.c fcrypt_b.c | 5 | # aes |
6 | SRCS+= x86_64-gcc.c | ||
7 | |||
8 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | ||
9 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
10 | CFLAGS+= -DOPENSSL_BN_ASM_MONT5 | ||
11 | CFLAGS+= -DOPENSSL_CPUID_OBJ | ||
12 | CFLAGS+= -DOPENSSL_IA32_SSE2 | ||
13 | |||
14 | CFLAGS+= -DAES_ASM | 6 | CFLAGS+= -DAES_ASM |
7 | SSLASM+= aes aes-x86_64 | ||
15 | CFLAGS+= -DBSAES_ASM | 8 | CFLAGS+= -DBSAES_ASM |
16 | CFLAGS+= -DGHASH_ASM | 9 | SSLASM+= aes bsaes-x86_64 |
10 | CFLAGS+= -DVPAES_ASM | ||
11 | SSLASM+= aes vpaes-x86_64 | ||
12 | SSLASM+= aes aesni-x86_64 | ||
13 | SSLASM+= aes aesni-sha1-x86_64 | ||
14 | # bf | ||
15 | SRCS+= bf_enc.c | ||
16 | # bn | ||
17 | CFLAGS+= -DOPENSSL_IA32_SSE2 | ||
18 | SSLASM+= bn modexp512-x86_64 | ||
19 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
20 | SSLASM+= bn x86_64-mont | ||
21 | CFLAGS+= -DOPENSSL_BN_ASM_MONT5 | ||
22 | SSLASM+= bn x86_64-mont5 | ||
23 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | ||
24 | SSLASM+= bn x86_64-gf2m | ||
25 | # des | ||
26 | SRCS+= des_enc.c fcrypt_b.c | ||
27 | # md5 | ||
17 | CFLAGS+= -DMD5_ASM | 28 | CFLAGS+= -DMD5_ASM |
29 | SSLASM+= md5 md5-x86_64 | ||
30 | # modes | ||
31 | CFLAGS+= -DGHASH_ASM | ||
32 | SSLASM+= modes ghash-x86_64 | ||
33 | # rc4 | ||
34 | SSLASM+= rc4 rc4-x86_64 | ||
35 | SSLASM+= rc4 rc4-md5-x86_64 | ||
36 | # ripemd | ||
37 | # sha | ||
18 | CFLAGS+= -DSHA1_ASM | 38 | CFLAGS+= -DSHA1_ASM |
39 | SSLASM+= sha sha1-x86_64 | ||
19 | CFLAGS+= -DSHA256_ASM | 40 | CFLAGS+= -DSHA256_ASM |
41 | SRCS+= sha256-x86_64.S | ||
42 | GENERATED+= sha256-x86_64.S | ||
43 | sha256-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
44 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
45 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
20 | CFLAGS+= -DSHA512_ASM | 46 | CFLAGS+= -DSHA512_ASM |
21 | CFLAGS+= -DVPAES_ASM | 47 | SRCS+= sha512-x86_64.S |
48 | GENERATED+= sha512-x86_64.S | ||
49 | sha512-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
50 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
51 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
52 | # whrlpool | ||
22 | CFLAGS+= -DWHIRLPOOL_ASM | 53 | CFLAGS+= -DWHIRLPOOL_ASM |
23 | 54 | SSLASM+= whrlpool wp-x86_64 | |
24 | SSLASM=\ | ||
25 | aes aes-x86_64 \ | ||
26 | aes aesni-x86_64 \ | ||
27 | aes aesni-sha1-x86_64 \ | ||
28 | aes bsaes-x86_64 \ | ||
29 | aes vpaes-x86_64 \ | ||
30 | bn x86_64-mont \ | ||
31 | bn x86_64-mont5 \ | ||
32 | bn x86_64-gf2m \ | ||
33 | bn modexp512-x86_64 \ | ||
34 | md5 md5-x86_64 \ | ||
35 | modes ghash-x86_64 \ | ||
36 | rc4 rc4-x86_64 \ | ||
37 | rc4 rc4-md5-x86_64 \ | ||
38 | sha sha1-x86_64 \ | ||
39 | whrlpool wp-x86_64 | ||
40 | 55 | ||
41 | .for dir f in ${SSLASM} | 56 | .for dir f in ${SSLASM} |
42 | SRCS+= ${f}.S | 57 | SRCS+= ${f}.S |
@@ -46,15 +61,10 @@ ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl | |||
46 | /usr/bin/perl ./asm/${f}.pl openbsd-elf) > ${.TARGET} | 61 | /usr/bin/perl ./asm/${f}.pl openbsd-elf) > ${.TARGET} |
47 | .endfor | 62 | .endfor |
48 | 63 | ||
49 | SRCS+= x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S | 64 | CFLAGS+= -DOPENSSL_CPUID_OBJ |
50 | GENERATED+=x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S | 65 | SRCS+= x86_64cpuid.S x86_64-gcc.c |
66 | GENERATED+=x86_64cpuid.S | ||
51 | 67 | ||
52 | x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl | 68 | x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl |
53 | (cd ${LCRYPTO_SRC}/${dir} ; \ | 69 | (cd ${LCRYPTO_SRC}/${dir} ; \ |
54 | /usr/bin/perl ./x86_64cpuid.pl) > ${.TARGET} | 70 | /usr/bin/perl ./x86_64cpuid.pl) > ${.TARGET} |
55 | sha256-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
56 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
57 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
58 | sha512-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
59 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
60 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
diff --git a/src/lib/libcrypto/arch/i386/Makefile.inc b/src/lib/libcrypto/arch/i386/Makefile.inc index 13f20d249d..a4b8c46ef3 100644 --- a/src/lib/libcrypto/arch/i386/Makefile.inc +++ b/src/lib/libcrypto/arch/i386/Makefile.inc | |||
@@ -1,45 +1,49 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/04/17 18:11:47 miod Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.2 2014/05/06 19:55:06 miod Exp $ |
2 | 2 | ||
3 | # i386-specific libcrypto build rules | 3 | # i386-specific libcrypto build rules |
4 | 4 | ||
5 | SRCS+= wp_block.c | 5 | # aes |
6 | CFLAGS+= -DAES_ASM | ||
7 | SSLASM+= aes aes-586 | ||
8 | CFLAGS+= -DVPAES_ASM | ||
9 | SSLASM+= aes vpaes-x86 | ||
10 | SSLASM+= aes aesni-x86 | ||
11 | # bf | ||
6 | SRCS+= bf_cbc.c | 12 | SRCS+= bf_cbc.c |
7 | 13 | SSLASM+= bf bf-586 | |
8 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | 14 | # bn |
9 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
10 | CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS | ||
11 | CFLAGS+= -DOPENSSL_CPUID_OBJ | ||
12 | CFLAGS+= -DOPENSSL_IA32_SSE2 | 15 | CFLAGS+= -DOPENSSL_IA32_SSE2 |
13 | 16 | CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS | |
14 | CFLAGS+= -DAES_ASM | 17 | SSLASM+= bn bn-586 |
15 | CFLAGS+= -DGHASH_ASM | 18 | SSLASM+= bn co-586 |
19 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
20 | SSLASM+= bn x86-mont | ||
21 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | ||
22 | SSLASM+= bn x86-gf2m | ||
23 | # des | ||
24 | SSLASM+= des des-586 | ||
25 | # md5 | ||
16 | CFLAGS+= -DMD5_ASM | 26 | CFLAGS+= -DMD5_ASM |
27 | SSLASM+= md5 md5-586 | ||
28 | # modes | ||
29 | CFLAGS+= -DGHASH_ASM | ||
30 | SSLASM+= modes ghash-x86 | ||
31 | # rc4 | ||
32 | SSLASM+= rc4 rc4-586 | ||
33 | # ripemd | ||
17 | CFLAGS+= -DRMD160_ASM | 34 | CFLAGS+= -DRMD160_ASM |
35 | SSLASM+= ripemd rmd-586 | ||
36 | # sha | ||
18 | CFLAGS+= -DSHA1_ASM | 37 | CFLAGS+= -DSHA1_ASM |
38 | SSLASM+= sha sha1-586 | ||
19 | CFLAGS+= -DSHA256_ASM | 39 | CFLAGS+= -DSHA256_ASM |
40 | SSLASM+= sha sha256-586 | ||
20 | CFLAGS+= -DSHA512_ASM | 41 | CFLAGS+= -DSHA512_ASM |
21 | CFLAGS+= -DVPAES_ASM | 42 | SSLASM+= sha sha512-586 |
43 | # whrlpool | ||
44 | SRCS+= wp_block.c | ||
22 | CFLAGS+= -DWHIRLPOOL_ASM | 45 | CFLAGS+= -DWHIRLPOOL_ASM |
23 | 46 | SSLASM+= whrlpool wp-mmx | |
24 | SSLASM=\ | ||
25 | aes aes-586 \ | ||
26 | aes vpaes-x86 \ | ||
27 | aes aesni-x86 \ | ||
28 | bf bf-586 \ | ||
29 | bn bn-586 \ | ||
30 | bn co-586 \ | ||
31 | bn x86-mont \ | ||
32 | bn x86-gf2m \ | ||
33 | des crypt586 \ | ||
34 | des des-586 \ | ||
35 | md5 md5-586 \ | ||
36 | modes ghash-x86 \ | ||
37 | rc4 rc4-586 \ | ||
38 | ripemd rmd-586 \ | ||
39 | sha sha1-586 \ | ||
40 | sha sha256-586 \ | ||
41 | sha sha512-586 \ | ||
42 | whrlpool wp-mmx | ||
43 | 47 | ||
44 | .for dir f in ${SSLASM} | 48 | .for dir f in ${SSLASM} |
45 | SRCS+= ${f}.S | 49 | SRCS+= ${f}.S |
@@ -50,6 +54,7 @@ ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl | |||
50 | openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET} | 54 | openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET} |
51 | .endfor | 55 | .endfor |
52 | 56 | ||
57 | CFLAGS+= -DOPENSSL_CPUID_OBJ | ||
53 | SRCS+= x86cpuid.S | 58 | SRCS+= x86cpuid.S |
54 | GENERATED+=x86cpuid.S | 59 | GENERATED+=x86cpuid.S |
55 | 60 | ||
diff --git a/src/lib/libcrypto/crypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/crypto/arch/amd64/Makefile.inc index a408186a03..24f16d0a81 100644 --- a/src/lib/libcrypto/crypto/arch/amd64/Makefile.inc +++ b/src/lib/libcrypto/crypto/arch/amd64/Makefile.inc | |||
@@ -1,42 +1,57 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/04/17 18:11:47 miod Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.2 2014/05/06 19:55:06 miod Exp $ |
2 | 2 | ||
3 | # amd64-specific libcrypto build rules | 3 | # amd64-specific libcrypto build rules |
4 | 4 | ||
5 | SRCS+= bf_enc.c des_enc.c fcrypt_b.c | 5 | # aes |
6 | SRCS+= x86_64-gcc.c | ||
7 | |||
8 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | ||
9 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
10 | CFLAGS+= -DOPENSSL_BN_ASM_MONT5 | ||
11 | CFLAGS+= -DOPENSSL_CPUID_OBJ | ||
12 | CFLAGS+= -DOPENSSL_IA32_SSE2 | ||
13 | |||
14 | CFLAGS+= -DAES_ASM | 6 | CFLAGS+= -DAES_ASM |
7 | SSLASM+= aes aes-x86_64 | ||
15 | CFLAGS+= -DBSAES_ASM | 8 | CFLAGS+= -DBSAES_ASM |
16 | CFLAGS+= -DGHASH_ASM | 9 | SSLASM+= aes bsaes-x86_64 |
10 | CFLAGS+= -DVPAES_ASM | ||
11 | SSLASM+= aes vpaes-x86_64 | ||
12 | SSLASM+= aes aesni-x86_64 | ||
13 | SSLASM+= aes aesni-sha1-x86_64 | ||
14 | # bf | ||
15 | SRCS+= bf_enc.c | ||
16 | # bn | ||
17 | CFLAGS+= -DOPENSSL_IA32_SSE2 | ||
18 | SSLASM+= bn modexp512-x86_64 | ||
19 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
20 | SSLASM+= bn x86_64-mont | ||
21 | CFLAGS+= -DOPENSSL_BN_ASM_MONT5 | ||
22 | SSLASM+= bn x86_64-mont5 | ||
23 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | ||
24 | SSLASM+= bn x86_64-gf2m | ||
25 | # des | ||
26 | SRCS+= des_enc.c fcrypt_b.c | ||
27 | # md5 | ||
17 | CFLAGS+= -DMD5_ASM | 28 | CFLAGS+= -DMD5_ASM |
29 | SSLASM+= md5 md5-x86_64 | ||
30 | # modes | ||
31 | CFLAGS+= -DGHASH_ASM | ||
32 | SSLASM+= modes ghash-x86_64 | ||
33 | # rc4 | ||
34 | SSLASM+= rc4 rc4-x86_64 | ||
35 | SSLASM+= rc4 rc4-md5-x86_64 | ||
36 | # ripemd | ||
37 | # sha | ||
18 | CFLAGS+= -DSHA1_ASM | 38 | CFLAGS+= -DSHA1_ASM |
39 | SSLASM+= sha sha1-x86_64 | ||
19 | CFLAGS+= -DSHA256_ASM | 40 | CFLAGS+= -DSHA256_ASM |
41 | SRCS+= sha256-x86_64.S | ||
42 | GENERATED+= sha256-x86_64.S | ||
43 | sha256-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
44 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
45 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
20 | CFLAGS+= -DSHA512_ASM | 46 | CFLAGS+= -DSHA512_ASM |
21 | CFLAGS+= -DVPAES_ASM | 47 | SRCS+= sha512-x86_64.S |
48 | GENERATED+= sha512-x86_64.S | ||
49 | sha512-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
50 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
51 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
52 | # whrlpool | ||
22 | CFLAGS+= -DWHIRLPOOL_ASM | 53 | CFLAGS+= -DWHIRLPOOL_ASM |
23 | 54 | SSLASM+= whrlpool wp-x86_64 | |
24 | SSLASM=\ | ||
25 | aes aes-x86_64 \ | ||
26 | aes aesni-x86_64 \ | ||
27 | aes aesni-sha1-x86_64 \ | ||
28 | aes bsaes-x86_64 \ | ||
29 | aes vpaes-x86_64 \ | ||
30 | bn x86_64-mont \ | ||
31 | bn x86_64-mont5 \ | ||
32 | bn x86_64-gf2m \ | ||
33 | bn modexp512-x86_64 \ | ||
34 | md5 md5-x86_64 \ | ||
35 | modes ghash-x86_64 \ | ||
36 | rc4 rc4-x86_64 \ | ||
37 | rc4 rc4-md5-x86_64 \ | ||
38 | sha sha1-x86_64 \ | ||
39 | whrlpool wp-x86_64 | ||
40 | 55 | ||
41 | .for dir f in ${SSLASM} | 56 | .for dir f in ${SSLASM} |
42 | SRCS+= ${f}.S | 57 | SRCS+= ${f}.S |
@@ -46,15 +61,10 @@ ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl | |||
46 | /usr/bin/perl ./asm/${f}.pl openbsd-elf) > ${.TARGET} | 61 | /usr/bin/perl ./asm/${f}.pl openbsd-elf) > ${.TARGET} |
47 | .endfor | 62 | .endfor |
48 | 63 | ||
49 | SRCS+= x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S | 64 | CFLAGS+= -DOPENSSL_CPUID_OBJ |
50 | GENERATED+=x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S | 65 | SRCS+= x86_64cpuid.S x86_64-gcc.c |
66 | GENERATED+=x86_64cpuid.S | ||
51 | 67 | ||
52 | x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl | 68 | x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl |
53 | (cd ${LCRYPTO_SRC}/${dir} ; \ | 69 | (cd ${LCRYPTO_SRC}/${dir} ; \ |
54 | /usr/bin/perl ./x86_64cpuid.pl) > ${.TARGET} | 70 | /usr/bin/perl ./x86_64cpuid.pl) > ${.TARGET} |
55 | sha256-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
56 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
57 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
58 | sha512-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
59 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
60 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
diff --git a/src/lib/libcrypto/crypto/arch/i386/Makefile.inc b/src/lib/libcrypto/crypto/arch/i386/Makefile.inc index 13f20d249d..a4b8c46ef3 100644 --- a/src/lib/libcrypto/crypto/arch/i386/Makefile.inc +++ b/src/lib/libcrypto/crypto/arch/i386/Makefile.inc | |||
@@ -1,45 +1,49 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/04/17 18:11:47 miod Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.2 2014/05/06 19:55:06 miod Exp $ |
2 | 2 | ||
3 | # i386-specific libcrypto build rules | 3 | # i386-specific libcrypto build rules |
4 | 4 | ||
5 | SRCS+= wp_block.c | 5 | # aes |
6 | CFLAGS+= -DAES_ASM | ||
7 | SSLASM+= aes aes-586 | ||
8 | CFLAGS+= -DVPAES_ASM | ||
9 | SSLASM+= aes vpaes-x86 | ||
10 | SSLASM+= aes aesni-x86 | ||
11 | # bf | ||
6 | SRCS+= bf_cbc.c | 12 | SRCS+= bf_cbc.c |
7 | 13 | SSLASM+= bf bf-586 | |
8 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | 14 | # bn |
9 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
10 | CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS | ||
11 | CFLAGS+= -DOPENSSL_CPUID_OBJ | ||
12 | CFLAGS+= -DOPENSSL_IA32_SSE2 | 15 | CFLAGS+= -DOPENSSL_IA32_SSE2 |
13 | 16 | CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS | |
14 | CFLAGS+= -DAES_ASM | 17 | SSLASM+= bn bn-586 |
15 | CFLAGS+= -DGHASH_ASM | 18 | SSLASM+= bn co-586 |
19 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
20 | SSLASM+= bn x86-mont | ||
21 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | ||
22 | SSLASM+= bn x86-gf2m | ||
23 | # des | ||
24 | SSLASM+= des des-586 | ||
25 | # md5 | ||
16 | CFLAGS+= -DMD5_ASM | 26 | CFLAGS+= -DMD5_ASM |
27 | SSLASM+= md5 md5-586 | ||
28 | # modes | ||
29 | CFLAGS+= -DGHASH_ASM | ||
30 | SSLASM+= modes ghash-x86 | ||
31 | # rc4 | ||
32 | SSLASM+= rc4 rc4-586 | ||
33 | # ripemd | ||
17 | CFLAGS+= -DRMD160_ASM | 34 | CFLAGS+= -DRMD160_ASM |
35 | SSLASM+= ripemd rmd-586 | ||
36 | # sha | ||
18 | CFLAGS+= -DSHA1_ASM | 37 | CFLAGS+= -DSHA1_ASM |
38 | SSLASM+= sha sha1-586 | ||
19 | CFLAGS+= -DSHA256_ASM | 39 | CFLAGS+= -DSHA256_ASM |
40 | SSLASM+= sha sha256-586 | ||
20 | CFLAGS+= -DSHA512_ASM | 41 | CFLAGS+= -DSHA512_ASM |
21 | CFLAGS+= -DVPAES_ASM | 42 | SSLASM+= sha sha512-586 |
43 | # whrlpool | ||
44 | SRCS+= wp_block.c | ||
22 | CFLAGS+= -DWHIRLPOOL_ASM | 45 | CFLAGS+= -DWHIRLPOOL_ASM |
23 | 46 | SSLASM+= whrlpool wp-mmx | |
24 | SSLASM=\ | ||
25 | aes aes-586 \ | ||
26 | aes vpaes-x86 \ | ||
27 | aes aesni-x86 \ | ||
28 | bf bf-586 \ | ||
29 | bn bn-586 \ | ||
30 | bn co-586 \ | ||
31 | bn x86-mont \ | ||
32 | bn x86-gf2m \ | ||
33 | des crypt586 \ | ||
34 | des des-586 \ | ||
35 | md5 md5-586 \ | ||
36 | modes ghash-x86 \ | ||
37 | rc4 rc4-586 \ | ||
38 | ripemd rmd-586 \ | ||
39 | sha sha1-586 \ | ||
40 | sha sha256-586 \ | ||
41 | sha sha512-586 \ | ||
42 | whrlpool wp-mmx | ||
43 | 47 | ||
44 | .for dir f in ${SSLASM} | 48 | .for dir f in ${SSLASM} |
45 | SRCS+= ${f}.S | 49 | SRCS+= ${f}.S |
@@ -50,6 +54,7 @@ ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl | |||
50 | openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET} | 54 | openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET} |
51 | .endfor | 55 | .endfor |
52 | 56 | ||
57 | CFLAGS+= -DOPENSSL_CPUID_OBJ | ||
53 | SRCS+= x86cpuid.S | 58 | SRCS+= x86cpuid.S |
54 | GENERATED+=x86cpuid.S | 59 | GENERATED+=x86cpuid.S |
55 | 60 | ||