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