1# $OpenBSD: Makefile.inc,v 1.3 2014/11/17 20:31:22 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 14CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV3W 15# camellia 16SRCS+= camellia.c cmll_cbc.c cmll_misc.c 17# des 18SRCS+= des_enc.c fcrypt_b.c 19# rc4 20SRCS+= rc4_enc.c rc4_skey.c 21## rc5 22#SRCS+= rc5_enc.c 23# sha 24SSLASM+= sha sha1-mips sha1-mips 25CFLAGS+= -DSHA1_ASM 26SSLASM+= sha sha512-mips sha256-mips 27CFLAGS+= -DSHA256_ASM 28SSLASM+= sha sha512-mips sha512-mips 29CFLAGS+= -DSHA512_ASM 30# whrlpool 31SRCS+= wp_block.c 32 33.for dir src dst in ${SSLASM} 34SRCS+= ${dst}.S 35GENERATED+=${dst}.S 36${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 37 /usr/bin/env CC=${CC} /usr/bin/perl \ 38 ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 64 ${.TARGET} > ${.TARGET} 39.endfor 40