summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/arch/mips64/Makefile.inc36
-rw-r--r--src/lib/libcrypto/crypto/arch/mips64/Makefile.inc36
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
6SRCS+= aes_cbc.c
7CFLAGS+= -DAES_ASM
8SSLASM+= aes aes-mips aes-mips
9# bf
10SRCS+= bf_enc.c
11# bn
12SSLASM+= bn mips bn-mips
13SSLASM+= bn mips-mont mips-mont
14# des
15SRCS+= des_enc.c fcrypt_b.c
16# rc4
17SRCS+= rc4_enc.c rc4_skey.c
18## rc5
19#SRCS+= rc5_enc.c
20# sha
21SSLASM+= sha sha1-mips sha1-mips
22CFLAGS+= -DSHA1_ASM
23SSLASM+= sha sha512-mips sha256-mips
24CFLAGS+= -DSHA256_ASM
25SSLASM+= sha sha512-mips sha512-mips
26CFLAGS+= -DSHA512_ASM
27# whrlpool
28SRCS+= wp_block.c
29
30.for dir src dst in ${SSLASM}
31SRCS+= ${dst}.S
32GENERATED+=${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
6SRCS+= aes_cbc.c
7CFLAGS+= -DAES_ASM
8SSLASM+= aes aes-mips aes-mips
9# bf
10SRCS+= bf_enc.c
11# bn
12SSLASM+= bn mips bn-mips
13SSLASM+= bn mips-mont mips-mont
14# des
15SRCS+= des_enc.c fcrypt_b.c
16# rc4
17SRCS+= rc4_enc.c rc4_skey.c
18## rc5
19#SRCS+= rc5_enc.c
20# sha
21SSLASM+= sha sha1-mips sha1-mips
22CFLAGS+= -DSHA1_ASM
23SSLASM+= sha sha512-mips sha256-mips
24CFLAGS+= -DSHA256_ASM
25SSLASM+= sha sha512-mips sha512-mips
26CFLAGS+= -DSHA512_ASM
27# whrlpool
28SRCS+= wp_block.c
29
30.for dir src dst in ${SSLASM}
31SRCS+= ${dst}.S
32GENERATED+=${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