X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fwhrlpool%2Fbuild.info;h=f67bf41b5e63f699ad6a2d58a23f00683b63ba28;hp=6044d7ba983878950450790d60d663e6dd72be51;hb=681c7e905dcc16ed8a0253580a303df4b60c3440;hpb=8c3bc594e0c74926bfefb84b8bae8a2fac82e465 diff --git a/crypto/whrlpool/build.info b/crypto/whrlpool/build.info index 6044d7ba98..f67bf41b5e 100644 --- a/crypto/whrlpool/build.info +++ b/crypto/whrlpool/build.info @@ -1,9 +1,27 @@ LIBS=../../libcrypto -SOURCE[../../libcrypto]=wp_dgst.c {- $target{wp_asm_src} -} + +$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 + +SOURCE[../../libcrypto]=wp_dgst.c $WPASM +DEFINE[../../libcrypto]=$WPDEF GENERATE[wp-mmx.s]=asm/wp-mmx.pl \ - $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(CPPFLAGS) $(LIB_CPPFLAGS) \ - $(PROCESSOR) + $(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR) DEPEND[wp-mmx.s]=../perlasm/x86asm.pl GENERATE[wp-x86_64.s]=asm/wp-x86_64.pl $(PERLASM_SCHEME)