1# $OpenBSD: Makefile.inc,v 1.10 2019/05/11 13:05:25 tb Exp $ 2 3# hppa-specific libcrypto build rules 4 5# aes 6SRCS+= aes_core.c aes_cbc.c 7CFLAGS+= -DAES_ASM 8SSLASM+= aes aes-parisc aes-parisc 9# bf 10SRCS+= bf_enc.c 11# bn 12SRCS+= bn_asm.c 13SSLASM+= bn parisc-mont parisc-mont 14CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV2W 15# camellia 16SRCS+= camellia.c cmll_cbc.c cmll_misc.c 17# des 18SRCS+= des_enc.c fcrypt_b.c 19# modes 20CFLAGS+= -DGHASH_ASM 21SSLASM+= modes ghash-parisc ghash-parisc 22# rc4 23.if 0 # about 35% slower than C code 24SSLASM+= rc4 rc4-parisc rc4-parisc 25.else 26SRCS+= rc4_enc.c rc4_skey.c 27.endif 28# sha 29CFLAGS+= -DSHA1_ASM 30SSLASM+= sha sha1-parisc sha1-parisc 31CFLAGS+= -DSHA256_ASM 32SSLASM+= sha sha512-parisc sha256-parisc 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/perl \ 41 ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 32 ${.TARGET} > ${.TARGET} 42.endfor 43 44CFLAGS+= -DOPENSSL_CPUID_OBJ 45SRCS+= pariscid.S 46GENERATED+=pariscid.S 47pariscid.S: ${LCRYPTO_SRC}/pariscid.pl 48 /usr/bin/perl \ 49 ${LCRYPTO_SRC}/pariscid.pl 32 > ${.TARGET} 50