{- use File::Spec::Functions qw/:DEFAULT rel2abs/; -}
IF[{- !$config{dynamic_engines} -}]
 LIBS=../libcrypto
 SOURCE[../libcrypto]=\
        e_padlock.c {- $target{padlock_asm_src} -} \
        e_capi.c \
        e_dasync.c
ELSE
 ENGINES=padlock capi dasync ossltest
 SOURCE[padlock]=e_padlock.c {- $target{padlock_asm_src} -}
 DEPEND[padlock]=../libcrypto
 INCLUDE[padlock]={- rel2abs(catdir($builddir,"../include")) -} ../include
 SOURCE[capi]=e_capi.c
 DEPEND[capi]=../libcrypto
 INCLUDE[capi]={- rel2abs(catdir($builddir,"../include")) -} ../include
 SOURCE[dasync]=e_dasync.c
 DEPEND[dasync]=../libcrypto
 INCLUDE[dasync]={- rel2abs(catdir($builddir,"../include")) -} ../include
 SOURCE[ossltest]=e_ossltest.c
 DEPEND[ossltest]=../libcrypto
 INCLUDE[ossltest]={- rel2abs(catdir($builddir,"../include")) -} ../include
ENDIF

BEGINRAW[Makefile]
{- $builddir -}/e_padlock-x86.s:	{- $sourcedir -}/asm/e_padlock-x86.pl
	CC="$(CC)" $(PERL) {- $sourcedir -}/asm/e_padlock-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
{- $builddir -}/e_padlock-x86_64.s:	{- $sourcedir -}/asm/e_padlock-x86_64.pl
	CC="$(CC)" $(PERL) {- $sourcedir -}/asm/e_padlock-x86_64.pl $(PERLASM_SCHEME) > $@
ENDRAW[Makefile]
