dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / lib / libcrypto / arch / arm / Makefile.inc
blob76e158660ab9811a50cff9da5a7a7cc1b67de575
1 # $oPenBSD: Makefile.inc,v 1.2 2014/05/02 18:21:39 miod Exp $
3 # arm-specific libcrypto build rules
5 # aes
6 SRCS+= aes_cbc.c 
7 CFLAGS+= -DAES_ASM
8 SSLASM+= aes aes-armv4
9 # bf
10 SRCS+= bf_enc.c
11 # bn
12 SRCS+= bn_asm.c
13 CFLAGS+= -DOPENSSL_BN_ASM_MONT
14 SSLASM+= bn armv4-mont
15 CFLAGS+= -DOPENSSL_BN_ASM_GF2m
16 SSLASM+= bn armv4-gf2m
17 # camellia
18 SRCS+= camellia.c cmll_cbc.c cmll_misc.c
19 # des
20 SRCS+= des_enc.c fcrypt_b.c
21 # # ec
22 # CFLAGS+= -DECP_NISTZ256_ASM
23 # SRCS+=        ecp_nistz256.c
24 # SSLASM+= ec ecp_nistz256-armv4
25 # modes
26 CFLAGS+= -DGHASH_ASM
27 SSLASM+= modes ghash-armv4
28 # rc4
29 SRCS+= rc4_enc.c rc4_skey.c
30 ## rc5
31 #SRCS+= rc5_enc.c 
32 # sha
33 CFLAGS+= -DSHA1_ASM
34 SSLASM+= sha sha1-armv4-large
35 CFLAGS+= -DSHA256_ASM
36 SSLASM+= sha sha256-armv4
37 CFLAGS+= -DSHA512_ASM
38 SSLASM+= sha sha512-armv4
39 # whrlpool
40 SRCS+= wp_block.c
42 .for dir f in ${SSLASM}
43 SRCS+=  ${f}.S
44 GENERATED+=${f}.S
45 ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl
46         /usr/bin/perl \
47                 ${LCRYPTO_SRC}/${dir}/asm/${f}.pl void ${.TARGET} > ${.TARGET}
48 .endfor
50 CFLAGS+= -DOPENSSL_CPUID_OBJ
51 SRCS+=  armv4cpuid.S armcap.c