1e1051a39Sopenharmony_ciIF[{- !$disabled{"engine"} -}]
2e1051a39Sopenharmony_ci  $PADLOCKASM=
3e1051a39Sopenharmony_ci  IF[{- !$disabled{asm} -}]
4e1051a39Sopenharmony_ci    $PADLOCKASM_x86=e_padlock-x86.S
5e1051a39Sopenharmony_ci    $PADLOCKASM_x86_64=e_padlock-x86_64.s
6e1051a39Sopenharmony_ci
7e1051a39Sopenharmony_ci    # Now that we have defined all the arch specific variables, use the
8e1051a39Sopenharmony_ci    # appropriate one, and define the appropriate macros
9e1051a39Sopenharmony_ci    IF[$PADLOCKASM_{- $target{asm_arch} -}]
10e1051a39Sopenharmony_ci      $PADLOCKASM=$PADLOCKASM_{- $target{asm_arch} -}
11e1051a39Sopenharmony_ci      $PADLOCKDEF=PADLOCK_ASM
12e1051a39Sopenharmony_ci    ENDIF
13e1051a39Sopenharmony_ci  ENDIF
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ci  IF[{- $disabled{"dynamic-engine"} -}]
16e1051a39Sopenharmony_ci    LIBS=../libcrypto
17e1051a39Sopenharmony_ci    IF[{- !$disabled{padlockeng} -}]
18e1051a39Sopenharmony_ci      SOURCE[../libcrypto]=e_padlock.c $PADLOCKASM
19e1051a39Sopenharmony_ci      DEFINE[../libcrypto]=$PADLOCKDEF
20e1051a39Sopenharmony_ci    ENDIF
21e1051a39Sopenharmony_ci    IF[{- !$disabled{capieng} -}]
22e1051a39Sopenharmony_ci      SOURCE[../libcrypto]=e_capi.c
23e1051a39Sopenharmony_ci    ENDIF
24e1051a39Sopenharmony_ci    IF[{- !$disabled{afalgeng} -}]
25e1051a39Sopenharmony_ci      SOURCE[../libcrypto]=e_afalg.c
26e1051a39Sopenharmony_ci    ENDIF
27e1051a39Sopenharmony_ci    IF[{- !$disabled{"devcryptoeng"} -}]
28e1051a39Sopenharmony_ci      SOURCE[../libcrypto]=e_devcrypto.c
29e1051a39Sopenharmony_ci    ENDIF
30e1051a39Sopenharmony_ci  ELSE
31e1051a39Sopenharmony_ci    IF[{- !$disabled{padlockeng} -}]
32e1051a39Sopenharmony_ci      MODULES{engine}=padlock
33e1051a39Sopenharmony_ci      SOURCE[padlock]=e_padlock.c $PADLOCKASM
34e1051a39Sopenharmony_ci      DEFINE[padlock]=$PADLOCKDEF
35e1051a39Sopenharmony_ci      DEPEND[padlock]=../libcrypto
36e1051a39Sopenharmony_ci      INCLUDE[padlock]=../include
37e1051a39Sopenharmony_ci      IF[{- defined $target{shared_defflag} -}]
38e1051a39Sopenharmony_ci        SOURCE[padlock]=padlock.ld
39e1051a39Sopenharmony_ci        GENERATE[padlock.ld]=../util/engines.num
40e1051a39Sopenharmony_ci      ENDIF
41e1051a39Sopenharmony_ci    ENDIF
42e1051a39Sopenharmony_ci    IF[{- !$disabled{capieng} -}]
43e1051a39Sopenharmony_ci      MODULES{engine}=capi
44e1051a39Sopenharmony_ci      SOURCE[capi]=e_capi.c
45e1051a39Sopenharmony_ci      DEPEND[capi]=../libcrypto
46e1051a39Sopenharmony_ci      INCLUDE[capi]=../include
47e1051a39Sopenharmony_ci      IF[{- defined $target{shared_defflag} -}]
48e1051a39Sopenharmony_ci        SOURCE[capi]=capi.ld
49e1051a39Sopenharmony_ci        GENERATE[capi.ld]=../util/engines.num
50e1051a39Sopenharmony_ci      ENDIF
51e1051a39Sopenharmony_ci    ENDIF
52e1051a39Sopenharmony_ci    IF[{- !$disabled{afalgeng} -}]
53e1051a39Sopenharmony_ci      MODULES{engine}=afalg
54e1051a39Sopenharmony_ci      SOURCE[afalg]=e_afalg.c
55e1051a39Sopenharmony_ci      DEPEND[afalg]=../libcrypto
56e1051a39Sopenharmony_ci      INCLUDE[afalg]= ../include
57e1051a39Sopenharmony_ci      IF[{- defined $target{shared_defflag} -}]
58e1051a39Sopenharmony_ci        SOURCE[afalg]=afalg.ld
59e1051a39Sopenharmony_ci        GENERATE[afalg.ld]=../util/engines.num
60e1051a39Sopenharmony_ci      ENDIF
61e1051a39Sopenharmony_ci    ENDIF
62e1051a39Sopenharmony_ci    IF[{- !$disabled{"devcryptoeng"} -}]
63e1051a39Sopenharmony_ci      MODULES{engine}=devcrypto
64e1051a39Sopenharmony_ci      SOURCE[devcrypto]=e_devcrypto.c
65e1051a39Sopenharmony_ci      DEPEND[devcrypto]=../libcrypto
66e1051a39Sopenharmony_ci      INCLUDE[devcrypto]=../include
67e1051a39Sopenharmony_ci      IF[{- defined $target{shared_defflag} -}]
68e1051a39Sopenharmony_ci        SOURCE[devcrypto]=devcrypto.ld
69e1051a39Sopenharmony_ci        GENERATE[devcrypto.ld]=../util/engines.num
70e1051a39Sopenharmony_ci      ENDIF
71e1051a39Sopenharmony_ci    ENDIF
72e1051a39Sopenharmony_ci    IF[{- !$disabled{"loadereng"} -}]
73e1051a39Sopenharmony_ci      MODULES{engine}=loader_attic
74e1051a39Sopenharmony_ci      SOURCE[loader_attic]=e_loader_attic.c ../crypto/pem/pvkfmt.c
75e1051a39Sopenharmony_ci      DEFINE[loader_attic]=OPENSSL_NO_PROVIDER_CODE
76e1051a39Sopenharmony_ci      DEPEND[loader_attic]=../libcrypto
77e1051a39Sopenharmony_ci      INCLUDE[loader_attic]=../include
78e1051a39Sopenharmony_ci      IF[{- defined $target{shared_defflag} -}]
79e1051a39Sopenharmony_ci        SOURCE[loader_attic]=loader_attic.ld
80e1051a39Sopenharmony_ci        GENERATE[loader_attic.ld]=../util/engines.num
81e1051a39Sopenharmony_ci      ENDIF
82e1051a39Sopenharmony_ci    ENDIF
83e1051a39Sopenharmony_ci
84e1051a39Sopenharmony_ci    MODULES{noinst,engine}=ossltest dasync
85e1051a39Sopenharmony_ci    SOURCE[dasync]=e_dasync.c
86e1051a39Sopenharmony_ci    DEPEND[dasync]=../libcrypto
87e1051a39Sopenharmony_ci    INCLUDE[dasync]=../include
88e1051a39Sopenharmony_ci    IF[{- defined $target{shared_defflag} -}]
89e1051a39Sopenharmony_ci      SOURCE[dasync]=dasync.ld
90e1051a39Sopenharmony_ci      GENERATE[dasync.ld]=../util/engines.num
91e1051a39Sopenharmony_ci    ENDIF
92e1051a39Sopenharmony_ci
93e1051a39Sopenharmony_ci    SOURCE[ossltest]=e_ossltest.c
94e1051a39Sopenharmony_ci    DEPEND[ossltest]=../libcrypto
95e1051a39Sopenharmony_ci    INCLUDE[ossltest]=../include
96e1051a39Sopenharmony_ci    IF[{- defined $target{shared_defflag} -}]
97e1051a39Sopenharmony_ci      SOURCE[ossltest]=ossltest.ld
98e1051a39Sopenharmony_ci      GENERATE[ossltest.ld]=../util/engines.num
99e1051a39Sopenharmony_ci    ENDIF
100e1051a39Sopenharmony_ci  ENDIF
101e1051a39Sopenharmony_ci  GENERATE[e_padlock-x86.S]=asm/e_padlock-x86.pl
102e1051a39Sopenharmony_ci  GENERATE[e_padlock-x86_64.s]=asm/e_padlock-x86_64.pl
103e1051a39Sopenharmony_ciENDIF
104