1# $OpenBSD: Makefile.inc,v 1.14 2023/01/31 06:17:10 jsing 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 12SSLASM+= bn parisc-mont parisc-mont 13CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV2W 14# camellia 15SRCS+= camellia.c cmll_cbc.c cmll_misc.c 16# des 17SRCS+= des_enc.c fcrypt_b.c 18# modes 19CFLAGS+= -DGHASH_ASM 20SSLASM+= modes ghash-parisc ghash-parisc 21# rc4 22.if 0 # about 35% slower than C code 23SSLASM+= rc4 rc4-parisc rc4-parisc 24.else 25SRCS+= rc4_enc.c rc4_skey.c 26.endif 27# sha 28CFLAGS+= -DSHA1_ASM 29SSLASM+= sha sha1-parisc sha1-parisc 30CFLAGS+= -DSHA256_ASM 31SSLASM+= sha sha512-parisc sha256-parisc 32# whrlpool 33SRCS+= wp_block.c 34 35.for dir src dst in ${SSLASM} 36SRCS+= ${dst}.S 37GENERATED+=${dst}.S 38${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 39 /usr/bin/perl \ 40 ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 32 ${.TARGET} > ${.TARGET} 41.endfor 42