1 # $OpenBSD: Makefile.inc,v 1.9 2015/03/18 05:26:10 miod Exp $
3 # hppa-specific libcrypto build rules
6 SRCS+= aes_core.c aes_cbc.c
8 SSLASM+= aes aes-parisc aes-parisc
13 SSLASM+= bn parisc-mont parisc-mont
14 CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV2W
16 SRCS+= camellia.c cmll_cbc.c cmll_misc.c
18 SRCS+= des_enc.c fcrypt_b.c
21 SSLASM+= modes ghash-parisc ghash-parisc
23 .if 0 # about 35% slower than C code
24 SSLASM+= rc4 rc4-parisc rc4-parisc
26 SRCS+= rc4_enc.c rc4_skey.c
32 SSLASM+= sha sha1-parisc sha1-parisc
34 SSLASM+= sha sha512-parisc sha256-parisc
38 .for dir src dst in ${SSLASM}
41 ${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl
43 ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 32 ${.TARGET} > ${.TARGET}
46 CFLAGS+= -DOPENSSL_CPUID_OBJ
49 pariscid.S: ${LCRYPTO_SRC}/pariscid.pl
51 ${LCRYPTO_SRC}/pariscid.pl 32 > ${.TARGET}