Merge commit 'dfc115332c94a2f62058ac7f2bce7631fbd20b3d'
[unleashed/tickless.git] / lib / libcrypto / arch / hppa / Makefile.inc
blob0e18de20746bf9f4e361b582d82ea0673e816cf7
1 # $OpenBSD: Makefile.inc,v 1.9 2015/03/18 05:26:10 miod Exp $
3 # hppa-specific libcrypto build rules
5 # aes
6 SRCS+= aes_core.c aes_cbc.c 
7 CFLAGS+= -DAES_ASM
8 SSLASM+= aes aes-parisc aes-parisc
9 # bf
10 SRCS+= bf_enc.c
11 # bn
12 SRCS+= bn_asm.c
13 SSLASM+= bn parisc-mont parisc-mont
14 CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV2W
15 # camellia
16 SRCS+= camellia.c cmll_cbc.c cmll_misc.c
17 # des
18 SRCS+= des_enc.c fcrypt_b.c
19 # modes
20 CFLAGS+= -DGHASH_ASM
21 SSLASM+= modes ghash-parisc ghash-parisc
22 # rc4
23 .if 0   # about 35% slower than C code
24 SSLASM+= rc4 rc4-parisc rc4-parisc
25 .else
26 SRCS+= rc4_enc.c rc4_skey.c
27 .endif
28 ## rc5
29 #SRCS+= rc5_enc.c 
30 # sha
31 CFLAGS+= -DSHA1_ASM
32 SSLASM+= sha sha1-parisc sha1-parisc
33 CFLAGS+= -DSHA256_ASM
34 SSLASM+= sha sha512-parisc sha256-parisc
35 # whrlpool
36 SRCS+= wp_block.c
38 .for dir src dst in ${SSLASM}
39 SRCS+=  ${dst}.S
40 GENERATED+=${dst}.S
41 ${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl
42         /usr/bin/perl \
43                 ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 32 ${.TARGET} > ${.TARGET}
44 .endfor
46 CFLAGS+= -DOPENSSL_CPUID_OBJ
47 SRCS+=  pariscid.S
48 GENERATED+=pariscid.S
49 pariscid.S: ${LCRYPTO_SRC}/pariscid.pl
50         /usr/bin/perl \
51                 ${LCRYPTO_SRC}/pariscid.pl 32 > ${.TARGET}