1e1051a39Sopenharmony_ciLIBS=../../libcrypto
2e1051a39Sopenharmony_ci
3e1051a39Sopenharmony_ci$MD5ASM=
4e1051a39Sopenharmony_ciIF[{- !$disabled{asm} -}]
5e1051a39Sopenharmony_ci  $MD5ASM_x86=md5-586.S
6e1051a39Sopenharmony_ci  $MD5ASM_x86_64=md5-x86_64.s
7e1051a39Sopenharmony_ci  $MD5ASM_sparcv9=md5-sparcv9.S
8e1051a39Sopenharmony_ci
9e1051a39Sopenharmony_ci  # Now that we have defined all the arch specific variables, use the
10e1051a39Sopenharmony_ci  # appropriate one, and define the appropriate macros
11e1051a39Sopenharmony_ci  IF[$MD5ASM_{- $target{asm_arch} -}]
12e1051a39Sopenharmony_ci    $MD5ASM=$MD5ASM_{- $target{asm_arch} -}
13e1051a39Sopenharmony_ci    $MD5DEF=MD5_ASM
14e1051a39Sopenharmony_ci  ENDIF
15e1051a39Sopenharmony_ciENDIF
16e1051a39Sopenharmony_ci
17e1051a39Sopenharmony_ci$COMMON=md5_dgst.c md5_one.c md5_sha1.c $MD5ASM
18e1051a39Sopenharmony_ciSOURCE[../../libcrypto]=$COMMON
19e1051a39Sopenharmony_ci
20e1051a39Sopenharmony_ci# A no-deprecated no-shared build ends up with double function definitions
21e1051a39Sopenharmony_ci# without conditioning this on dso. The issue is MD5 which is needed in the
22e1051a39Sopenharmony_ci# legacy provider for one of the spliced algorithms, however it resides in the
23e1051a39Sopenharmony_ci# default provider.  A no-deprecated build removes the external definition from
24e1051a39Sopenharmony_ci# libcrypto and this means that the code needs to be in liblegacy.  However,
25e1051a39Sopenharmony_ci# when building without 'dso', liblegacy is included in libcrypto.
26e1051a39Sopenharmony_ciIF[{- !$disabled{module} && !$disabled{shared} -}]
27e1051a39Sopenharmony_ci  SOURCE[../../providers/liblegacy.a]=$COMMON
28e1051a39Sopenharmony_ciENDIF
29e1051a39Sopenharmony_ci
30e1051a39Sopenharmony_ci# Implementations are now spread across several libraries, so the defines
31e1051a39Sopenharmony_ci# need to be applied to all affected libraries and modules.
32e1051a39Sopenharmony_ciDEFINE[../../libcrypto]=$MD5DEF
33e1051a39Sopenharmony_ciDEFINE[../../providers/liblegacy.a]=$MD5DEF
34e1051a39Sopenharmony_ci
35e1051a39Sopenharmony_ciGENERATE[md5-586.S]=asm/md5-586.pl
36e1051a39Sopenharmony_ci
37e1051a39Sopenharmony_ciGENERATE[md5-x86_64.s]=asm/md5-x86_64.pl
38e1051a39Sopenharmony_ci
39e1051a39Sopenharmony_ciGENERATE[md5-sparcv9.S]=asm/md5-sparcv9.pl
40e1051a39Sopenharmony_ciINCLUDE[md5-sparcv9.o]=..
41