summaryrefslogtreecommitdiffstats
path: root/crypto/rc5
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-06-16 21:57:13 +0200
committerRichard Levitte <levitte@openssl.org>2019-06-17 16:08:52 +0200
commit6fe56d84702cbaccf758c4faf6af28f2797ff1d8 (patch)
treed4702090672929879831a25ac879f57dd1dd0b5d /crypto/rc5
parent2ffea443223a943efff0f642c37824b63b7e3e30 (diff)
Move rc5_asm_src file information to build.info files
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9166)
Diffstat (limited to 'crypto/rc5')
-rw-r--r--crypto/rc5/build.info15
1 files changed, 14 insertions, 1 deletions
diff --git a/crypto/rc5/build.info b/crypto/rc5/build.info
index 928a62cd85..5780f3c5f9 100644
--- a/crypto/rc5/build.info
+++ b/crypto/rc5/build.info
@@ -1,6 +1,19 @@
LIBS=../../libcrypto
+
+$RC5ASM=rc5_enc.c
+IF[{- !$disabled{asm} -}]
+ $RC5ASM_x86=rc5-586.s
+
+ # Now that we have defined all the arch specific variables, use the
+ # appropriate one, and define the appropriate macros
+ IF[$RC5ASM_{- $target{asm_arch} -}]
+ $RC5ASM=$RC5ASM_{- $target{asm_arch} -}
+ $RC5DEF=RC5_ASM
+ ENDIF
+ENDIF
+
SOURCE[../../libcrypto]=\
- rc5_skey.c rc5_ecb.c {- $target{rc5_asm_src} -} rc5cfb64.c rc5ofb64.c
+ rc5_skey.c rc5_ecb.c $RC5ASM rc5cfb64.c rc5ofb64.c
GENERATE[rc5-586.s]=asm/rc5-586.pl \
$(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS)