1# $OpenBSD: Makefile.inc,v 1.5 2019/05/11 13:05:25 tb 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 12.if ${MACHINE} == "sgi" # because of R4000 support 13SRCS+= bn_asm.c 14.else 15SSLASM+= bn mips bn-mips 16CFLAGS+= -DBN_DIV3W 17.endif 18SSLASM+= bn mips-mont mips-mont 19CFLAGS+= -DOPENSSL_BN_ASM_MONT 20# camellia 21SRCS+= camellia.c cmll_cbc.c cmll_misc.c 22# des 23SRCS+= des_enc.c fcrypt_b.c 24# rc4 25SRCS+= rc4_enc.c rc4_skey.c 26# sha 27SSLASM+= sha sha1-mips sha1-mips 28CFLAGS+= -DSHA1_ASM 29SSLASM+= sha sha512-mips sha256-mips 30CFLAGS+= -DSHA256_ASM 31SSLASM+= sha sha512-mips sha512-mips 32CFLAGS+= -DSHA512_ASM 33# whrlpool 34SRCS+= wp_block.c 35 36.for dir src dst in ${SSLASM} 37SRCS+= ${dst}.S 38GENERATED+=${dst}.S 39${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 40 /usr/bin/env CC=${CC} /usr/bin/perl \ 41 ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 64 ${.TARGET} > ${.TARGET} 42.endfor 43