From 2ffea443223a943efff0f642c37824b63b7e3e30 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 16 Jun 2019 21:54:35 +0200 Subject: Move rmd160_asm_src file information to build.info files Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9166) --- crypto/ripemd/build.info | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'crypto/ripemd') diff --git a/crypto/ripemd/build.info b/crypto/ripemd/build.info index a4a894e2d1..e2db293228 100644 --- a/crypto/ripemd/build.info +++ b/crypto/ripemd/build.info @@ -1,6 +1,19 @@ LIBS=../../libcrypto -SOURCE[../../libcrypto]=\ - rmd_dgst.c rmd_one.c {- $target{rmd160_asm_src} -} + +$RMD160ASM= +IF[{- !$disabled{asm} -}] + $RMD160ASM_x86=rmd-586.s + + # Now that we have defined all the arch specific variables, use the + # appropriate one, and define the appropriate macros + IF[$RMD160ASM_{- $target{asm_arch} -}] + $RMD160ASM=$RMD160ASM_{- $target{asm_arch} -} + $RMD160DEF=RMD160_ASM + ENDIF +ENDIF + +SOURCE[../../libcrypto]=rmd_dgst.c rmd_one.c $RMD160ASM +DEFINE[../../libcrypto]=$RMD160DEF GENERATE[rmd-586.s]=asm/rmd-586.pl \ $(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) -- cgit v1.2.3