]>
Commit | Line | Data |
---|---|---|
75d47db4 RL |
1 | # Note that these directories are filtered in Configure. Look for %skipdir |
2 | # there for further explanations. | |
878dc8dd | 3 | SUBDIRS=objects buffer bio stack lhash rand evp asn1 pem x509 conf \ |
37ed6210 | 4 | txt_db pkcs7 pkcs12 ui store property \ |
8c77d45a | 5 | md2 md4 md5 sha mdc2 hmac ripemd whrlpool poly1305 \ |
9654924f RL |
6 | siphash sm3 des aes rc2 rc4 rc5 idea aria bf cast camellia \ |
7 | seed sm4 chacha modes bn ec rsa dsa dh sm2 dso engine \ | |
e23cda00 | 8 | err comp ocsp cms ts srp cmac ct async ess crmf cmp |
9654924f | 9 | |
777a2882 | 10 | LIBS=../libcrypto |
989b2ad7 RL |
11 | |
12 | $UPLINKSRC= | |
13 | $UPLINKDEF= | |
14 | IF[{- !$disabled{uplink} -}] | |
15 | $UPLINKSRC_common=../ms/uplink.c | |
16 | $UPLINKSRC_x86=$UPLINKSRC_common uplink-x86.s | |
17 | $UPLINKSRC_x86_64=$UPLINKSRC_common uplink-x86_64.s | |
18 | $UPLINKSRC_ia64=$UPLINKSRC_common uplink-ia64.s | |
19 | ||
20 | IF[$UPLINKSRC_{- $target{uplink_arch} -}] | |
21 | $UPLINKSRC=$UPLINKSRC_{- $target{uplink_arch} -} | |
22 | $UPLINKDEF=OPENSSL_USE_APPLINK | |
23 | ENDIF | |
24 | ENDIF | |
25 | ||
6e1ba472 RL |
26 | $CPUIDASM=mem_clr.c |
27 | $CPUIDDEF= | |
28 | IF[{- !$disabled{asm} && $config{processor} ne '386' -}] | |
29 | $CPUIDASM_x86=x86cpuid.s | |
30 | ||
31 | $CPUIDASM_x86_64=x86_64cpuid.s | |
32 | ||
33 | $CPUIDASM_ia64=ia64cpuid.s | |
34 | ||
35 | $CPUIDASM_sparcv9=sparcv9cap.c sparccpuid.S | |
36 | ||
37 | $CPUIDASM_alpha=alphacpuid.s | |
38 | ||
39 | $CPUIDASM_s390x=s390xcap.c s390xcpuid.S | |
40 | ||
41 | $CPUIDASM_armv4=armcap.c armv4cpuid.S | |
42 | ||
43 | $CPUIDASM_aarch64=armcap.c arm64cpuid.S | |
44 | ||
45 | $CPUIDASM_parisc11=pariscid.s | |
46 | $CPUIDASM_parisc20_64=$CPUIDASM_parisc11 | |
47 | ||
48 | $CPUIDASM_ppc32=ppccpuid.s ppccap.c | |
49 | $CPUIDASM_ppc64=$CPUIDASM_ppc32 | |
50 | ||
51 | $CPUIDASM_c64xplus=c64xpluscpuid.s | |
52 | ||
53 | # Now that we have defined all the arch specific variables, use the | |
54 | # appropriate one, and define the appropriate macros | |
55 | IF[$CPUIDASM_{- $target{asm_arch} -}] | |
56 | $CPUIDASM=$CPUIDASM_{- $target{asm_arch} -} | |
57 | $CPUIDDEF=OPENSSL_CPUID_OBJ | |
58 | ENDIF | |
59 | ENDIF | |
60 | ||
4c2883a9 | 61 | # The Core |
a883c02f RL |
62 | $CORE_COMMON=provider_core.c provider_predefined.c \ |
63 | core_fetch.c core_algorithm.c core_namemap.c | |
4c2883a9 | 64 | |
07c244f0 | 65 | SOURCE[../libcrypto]=$CORE_COMMON provider_conf.c |
dec95d75 | 66 | SOURCE[../providers/libfips.a]=$CORE_COMMON |
3593266d | 67 | |
4c2883a9 | 68 | # Central utilities |
07c244f0 | 69 | $UTIL_COMMON=\ |
246a1f3d | 70 | cryptlib.c params.c params_from_text.c bsearch.c ex_data.c o_str.c \ |
da747958 | 71 | ctype.c threads_pthread.c threads_win.c threads_none.c initthread.c \ |
a9612d6c | 72 | context.c sparse_array.c asn1_dsa.c packet.c param_build.c $CPUIDASM |
6e1ba472 | 73 | $UTIL_DEFINE=$CPUIDDEF |
9efa0ae0 | 74 | |
07c244f0 | 75 | SOURCE[../libcrypto]=$UTIL_COMMON \ |
037439c4 | 76 | mem.c mem_sec.c mem_dbg.c \ |
b60cba3c | 77 | cversion.c info.c cpt_err.c ebcdic.c uid.c o_time.c o_dir.c \ |
07c244f0 | 78 | o_fopen.c getenv.c o_init.c o_fips.c init.c trace.c provider.c \ |
a9612d6c | 79 | $UPLINKSRC |
dec95d75 | 80 | SOURCE[../providers/libfips.a]=$UTIL_COMMON |
07c244f0 | 81 | |
64fd90fb SL |
82 | # Implementations are now spread across several libraries, so the defines |
83 | # need to be applied to all affected libraries and modules. | |
84 | DEFINE[../libcrypto]=$UTIL_DEFINE $UPLINKDEF | |
85 | DEFINE[../providers/libfips.a]=$UTIL_DEFINE | |
86 | DEFINE[../providers/fips]=$UTIL_DEFINE | |
87 | DEFINE[../providers/libimplementations.a]=$UTIL_DEFINE | |
9efa0ae0 | 88 | |
387bbce4 | 89 | DEPEND[info.o]=buildinf.h |
777a2882 | 90 | DEPEND[cversion.o]=buildinf.h |
58d6be5b | 91 | GENERATE[buildinf.h]=../util/mkbuildinf.pl "$(CC) $(LIB_CFLAGS) $(CPPFLAGS_Q)" "$(PLATFORM)" |
1c0e7dad | 92 | DEPEND[buildinf.h]=../configdata.pm |
567a9e6f | 93 | |
a1c8befd RL |
94 | GENERATE[uplink-x86.s]=../ms/uplink-x86.pl |
95 | GENERATE[uplink-x86_64.s]=../ms/uplink-x86_64.pl | |
96 | GENERATE[uplink-ia64.s]=../ms/uplink-ia64.pl | |
e84193e4 | 97 | |
a1c8befd | 98 | GENERATE[x86cpuid.s]=x86cpuid.pl |
0a4edb93 | 99 | DEPEND[x86cpuid.s]=perlasm/x86asm.pl |
567a9e6f | 100 | |
a1c8befd | 101 | GENERATE[x86_64cpuid.s]=x86_64cpuid.pl |
567a9e6f | 102 | |
0a4edb93 | 103 | GENERATE[ia64cpuid.s]=ia64cpuid.S |
a1c8befd RL |
104 | GENERATE[ppccpuid.s]=ppccpuid.pl |
105 | GENERATE[pariscid.s]=pariscid.pl | |
0a4edb93 | 106 | GENERATE[alphacpuid.s]=alphacpuid.pl |
a1c8befd | 107 | GENERATE[arm64cpuid.S]=arm64cpuid.pl |
ee619197 | 108 | INCLUDE[arm64cpuid.o]=. |
a1c8befd | 109 | GENERATE[armv4cpuid.S]=armv4cpuid.pl |
ee619197 | 110 | INCLUDE[armv4cpuid.o]=. |
a1c8befd | 111 | GENERATE[s390xcpuid.S]=s390xcpuid.pl |
96530eea | 112 | INCLUDE[s390xcpuid.o]=. |
84af71a9 RL |
113 | |
114 | IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}] | |
115 | SHARED_SOURCE[../libcrypto]=dllmain.c | |
116 | ENDIF |