diff options
-rw-r--r-- | src/lib/libcrypto/arch/mips64/Makefile.inc | 36 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto/arch/mips64/Makefile.inc | 36 |
2 files changed, 72 insertions, 0 deletions
diff --git a/src/lib/libcrypto/arch/mips64/Makefile.inc b/src/lib/libcrypto/arch/mips64/Makefile.inc new file mode 100644 index 0000000000..eacac79e63 --- /dev/null +++ b/src/lib/libcrypto/arch/mips64/Makefile.inc | |||
@@ -0,0 +1,36 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/05/01 20:15:06 miod Exp $ | ||
2 | |||
3 | # mips64-specific libcrypto build rules | ||
4 | |||
5 | # aes | ||
6 | SRCS+= aes_cbc.c | ||
7 | CFLAGS+= -DAES_ASM | ||
8 | SSLASM+= aes aes-mips aes-mips | ||
9 | # bf | ||
10 | SRCS+= bf_enc.c | ||
11 | # bn | ||
12 | SSLASM+= bn mips bn-mips | ||
13 | SSLASM+= bn mips-mont mips-mont | ||
14 | # des | ||
15 | SRCS+= des_enc.c fcrypt_b.c | ||
16 | # rc4 | ||
17 | SRCS+= rc4_enc.c rc4_skey.c | ||
18 | ## rc5 | ||
19 | #SRCS+= rc5_enc.c | ||
20 | # sha | ||
21 | SSLASM+= sha sha1-mips sha1-mips | ||
22 | CFLAGS+= -DSHA1_ASM | ||
23 | SSLASM+= sha sha512-mips sha256-mips | ||
24 | CFLAGS+= -DSHA256_ASM | ||
25 | SSLASM+= sha sha512-mips sha512-mips | ||
26 | CFLAGS+= -DSHA512_ASM | ||
27 | # whrlpool | ||
28 | SRCS+= wp_block.c | ||
29 | |||
30 | .for dir src dst in ${SSLASM} | ||
31 | SRCS+= ${dst}.S | ||
32 | GENERATED+=${dst}.S | ||
33 | ${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl | ||
34 | /usr/bin/env CC=${CC} /usr/bin/perl \ | ||
35 | ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 64 ${.TARGET} > ${.TARGET} | ||
36 | .endfor | ||
diff --git a/src/lib/libcrypto/crypto/arch/mips64/Makefile.inc b/src/lib/libcrypto/crypto/arch/mips64/Makefile.inc new file mode 100644 index 0000000000..eacac79e63 --- /dev/null +++ b/src/lib/libcrypto/crypto/arch/mips64/Makefile.inc | |||
@@ -0,0 +1,36 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/05/01 20:15:06 miod Exp $ | ||
2 | |||
3 | # mips64-specific libcrypto build rules | ||
4 | |||
5 | # aes | ||
6 | SRCS+= aes_cbc.c | ||
7 | CFLAGS+= -DAES_ASM | ||
8 | SSLASM+= aes aes-mips aes-mips | ||
9 | # bf | ||
10 | SRCS+= bf_enc.c | ||
11 | # bn | ||
12 | SSLASM+= bn mips bn-mips | ||
13 | SSLASM+= bn mips-mont mips-mont | ||
14 | # des | ||
15 | SRCS+= des_enc.c fcrypt_b.c | ||
16 | # rc4 | ||
17 | SRCS+= rc4_enc.c rc4_skey.c | ||
18 | ## rc5 | ||
19 | #SRCS+= rc5_enc.c | ||
20 | # sha | ||
21 | SSLASM+= sha sha1-mips sha1-mips | ||
22 | CFLAGS+= -DSHA1_ASM | ||
23 | SSLASM+= sha sha512-mips sha256-mips | ||
24 | CFLAGS+= -DSHA256_ASM | ||
25 | SSLASM+= sha sha512-mips sha512-mips | ||
26 | CFLAGS+= -DSHA512_ASM | ||
27 | # whrlpool | ||
28 | SRCS+= wp_block.c | ||
29 | |||
30 | .for dir src dst in ${SSLASM} | ||
31 | SRCS+= ${dst}.S | ||
32 | GENERATED+=${dst}.S | ||
33 | ${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl | ||
34 | /usr/bin/env CC=${CC} /usr/bin/perl \ | ||
35 | ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 64 ${.TARGET} > ${.TARGET} | ||
36 | .endfor | ||