aboutsummaryrefslogtreecommitdiff
path: root/crypto/whrlpool/build.info
blob: c48971885865cdf5a28806ddff1345697611fbd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
LIBS=../../libcrypto

$WPASM=wp_block.c
IF[{- !$disabled{asm} -}]
  IF[{- $config{processor} ne "386" -}]
    $WPASM_x86=wp_block.c wp-mmx.s
    $WPDEF_x86=WHIRLPOOL_ASM
  ENDIF
  $WPASM_x86_64=wp-x86_64.s
  $WPDEF_x86_64=WHIRLPOOL_ASM

  # Now that we have defined all the arch specific variables, use the
  # appropriate one, and define the appropriate macros
  IF[$WPASM_{- $target{asm_arch} -}]
    $WPASM=$WPASM_{- $target{asm_arch} -}
    $WPDEF=$WPDEF_{- $target{asm_arch} -}
  ENDIF
ENDIF

# Implementations are now spread across several libraries, so the defines
# need to be applied to all affected libraries and modules.
DEFINE[../../providers/libimplementations.a]=$WPDEF

SOURCE[../../libcrypto]=wp_dgst.c $WPASM
DEFINE[../../libcrypto]=$WPDEF

# When all deprecated symbols are removed, libcrypto doesn't export the
# WHIRLPOOL functions, so we must include them directly in liblegacy.a
IF[{- $disabled{"deprecated"}
      && (defined $config{"api"} && $config{"api"} >= 30000) -}]
  SOURCE[../../providers/liblegacy.a]=wp_dgst.c $WPASM
  DEFINE[../../providers/liblegacy.a]=$WPDEF
ENDIF

GENERATE[wp-mmx.s]=asm/wp-mmx.pl
DEPEND[wp-mmx.s]=../perlasm/x86asm.pl

GENERATE[wp-x86_64.s]=asm/wp-x86_64.pl