2016-03-09 08:05:43 +00:00
|
|
|
IF[{- !$disabled{"engine"} -}]
|
2019-06-16 20:39:19 +00:00
|
|
|
$PADLOCKASM=
|
|
|
|
IF[{- !$disabled{asm} -}]
|
|
|
|
$PADLOCKASM_x86=e_padlock-x86.s
|
|
|
|
$PADLOCKASM_x86_64=e_padlock-x86_64.s
|
|
|
|
|
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate one, and define the appropriate macros
|
|
|
|
IF[$PADLOCKASM_{- $target{asm_arch} -}]
|
|
|
|
$PADLOCKASM=$PADLOCKASM_{- $target{asm_arch} -}
|
|
|
|
$PADLOCKDEF=PADLOCK_ASM
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
2016-03-09 08:05:43 +00:00
|
|
|
IF[{- $disabled{"dynamic-engine"} -}]
|
|
|
|
LIBS=../libcrypto
|
2019-03-01 12:18:11 +00:00
|
|
|
IF[{- !$disabled{padlockeng} -}]
|
2019-06-16 20:39:19 +00:00
|
|
|
SOURCE[../libcrypto]=e_padlock.c $PADLOCKASM
|
|
|
|
DEFINE[../libcrypto]=$PADLOCKDEF
|
2019-03-01 12:18:11 +00:00
|
|
|
ENDIF
|
2016-03-09 08:05:43 +00:00
|
|
|
IF[{- !$disabled{capieng} -}]
|
|
|
|
SOURCE[../libcrypto]=e_capi.c
|
|
|
|
ENDIF
|
2017-05-20 01:27:58 +00:00
|
|
|
IF[{- !$disabled{afalgeng} -}]
|
2017-06-07 19:12:03 +00:00
|
|
|
SOURCE[../libcrypto]=e_afalg.c
|
2017-05-20 01:27:58 +00:00
|
|
|
ENDIF
|
2018-11-06 12:57:03 +00:00
|
|
|
IF[{- !$disabled{"devcryptoeng"} -}]
|
|
|
|
SOURCE[../libcrypto]=e_devcrypto.c
|
|
|
|
ENDIF
|
2016-03-09 08:05:43 +00:00
|
|
|
ELSE
|
2019-03-01 12:18:11 +00:00
|
|
|
IF[{- !$disabled{padlockeng} -}]
|
|
|
|
MODULES{engine}=padlock
|
2019-06-16 20:39:19 +00:00
|
|
|
SOURCE[padlock]=e_padlock.c $PADLOCKASM
|
|
|
|
DEFINE[padlock]=$PADLOCKDEF
|
2019-03-01 12:18:11 +00:00
|
|
|
DEPEND[padlock]=../libcrypto
|
|
|
|
INCLUDE[padlock]=../include
|
|
|
|
IF[{- defined $target{shared_defflag} -}]
|
2019-03-31 13:14:00 +00:00
|
|
|
SOURCE[padlock]=padlock.ld
|
2019-03-01 12:18:11 +00:00
|
|
|
GENERATE[padlock.ld]=../util/engines.num
|
|
|
|
ENDIF
|
2018-10-04 15:40:33 +00:00
|
|
|
ENDIF
|
2016-03-09 08:05:43 +00:00
|
|
|
IF[{- !$disabled{capieng} -}]
|
2019-01-30 23:06:50 +00:00
|
|
|
MODULES{engine}=capi
|
2016-03-09 08:05:43 +00:00
|
|
|
SOURCE[capi]=e_capi.c
|
|
|
|
DEPEND[capi]=../libcrypto
|
2016-06-29 20:59:50 +00:00
|
|
|
INCLUDE[capi]=../include
|
2018-10-04 15:40:33 +00:00
|
|
|
IF[{- defined $target{shared_defflag} -}]
|
2019-03-31 13:14:00 +00:00
|
|
|
SOURCE[capi]=capi.ld
|
2018-10-04 15:40:33 +00:00
|
|
|
GENERATE[capi.ld]=../util/engines.num
|
|
|
|
ENDIF
|
2016-03-09 08:05:43 +00:00
|
|
|
ENDIF
|
2017-05-20 01:27:58 +00:00
|
|
|
IF[{- !$disabled{afalgeng} -}]
|
2019-01-30 23:06:50 +00:00
|
|
|
MODULES{engine}=afalg
|
2017-06-07 19:12:03 +00:00
|
|
|
SOURCE[afalg]=e_afalg.c
|
2017-05-20 01:27:58 +00:00
|
|
|
DEPEND[afalg]=../libcrypto
|
|
|
|
INCLUDE[afalg]= ../include
|
2018-10-04 15:40:33 +00:00
|
|
|
IF[{- defined $target{shared_defflag} -}]
|
2019-03-31 13:14:00 +00:00
|
|
|
SOURCE[afalg]=afalg.ld
|
2018-10-04 15:40:33 +00:00
|
|
|
GENERATE[afalg.ld]=../util/engines.num
|
|
|
|
ENDIF
|
2017-05-20 01:27:58 +00:00
|
|
|
ENDIF
|
2018-11-06 12:57:03 +00:00
|
|
|
IF[{- !$disabled{"devcryptoeng"} -}]
|
2019-02-12 20:02:51 +00:00
|
|
|
MODULES{engine}=devcrypto
|
2018-11-06 12:57:03 +00:00
|
|
|
SOURCE[devcrypto]=e_devcrypto.c
|
|
|
|
DEPEND[devcrypto]=../libcrypto
|
|
|
|
INCLUDE[devcrypto]=../include
|
|
|
|
IF[{- defined $target{shared_defflag} -}]
|
2019-03-31 13:14:00 +00:00
|
|
|
SOURCE[devcrypto]=devcrypto.ld
|
2018-11-06 12:57:03 +00:00
|
|
|
GENERATE[devcrypto.ld]=../util/engines.num
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
2016-08-17 08:45:03 +00:00
|
|
|
|
2019-01-30 23:06:50 +00:00
|
|
|
MODULES{noinst,engine}=ossltest dasync
|
2016-03-09 08:05:43 +00:00
|
|
|
SOURCE[dasync]=e_dasync.c
|
|
|
|
DEPEND[dasync]=../libcrypto
|
2016-06-29 20:59:50 +00:00
|
|
|
INCLUDE[dasync]=../include
|
2018-10-04 15:40:33 +00:00
|
|
|
IF[{- defined $target{shared_defflag} -}]
|
2019-03-31 13:14:00 +00:00
|
|
|
SOURCE[dasync]=dasync.ld
|
2018-10-04 15:40:33 +00:00
|
|
|
GENERATE[dasync.ld]=../util/engines.num
|
|
|
|
ENDIF
|
2016-03-09 08:05:43 +00:00
|
|
|
SOURCE[ossltest]=e_ossltest.c
|
|
|
|
DEPEND[ossltest]=../libcrypto
|
2016-06-29 20:59:50 +00:00
|
|
|
INCLUDE[ossltest]=../include
|
2018-10-04 15:40:33 +00:00
|
|
|
IF[{- defined $target{shared_defflag} -}]
|
2019-03-31 13:14:00 +00:00
|
|
|
SOURCE[ossltest]=ossltest.ld
|
2018-10-04 15:40:33 +00:00
|
|
|
GENERATE[ossltest.ld]=../util/engines.num
|
|
|
|
ENDIF
|
2016-03-09 08:05:43 +00:00
|
|
|
ENDIF
|
2019-03-05 17:38:16 +00:00
|
|
|
GENERATE[e_padlock-x86.s]=asm/e_padlock-x86.pl \
|
|
|
|
$(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR)
|
|
|
|
GENERATE[e_padlock-x86_64.s]=asm/e_padlock-x86_64.pl $(PERLASM_SCHEME)
|
2016-03-09 08:05:43 +00:00
|
|
|
ENDIF
|