IF[{- !$disabled{"engine"} -}]
  IF[{- $disabled{"dynamic-engine"} -}]
    LIBS=../libcrypto
    SOURCE[../libcrypto]=\
            e_padlock.c {- $target{padlock_asm_src} -}
    IF[{- !$disabled{capieng} -}]
      SOURCE[../libcrypto]=e_capi.c
    ENDIF
    IF[{- !$disabled{skfeng} -}]
      SOURCE[../libcrypto]=e_skf.c
    ENDIF
    IF[{- !$disabled{sdfeng} -}]
      SOURCE[../libcrypto]=e_sdf.c
    ENDIF
    IF[{- !$disabled{gmieng} -}]
      SOURCE[../libcrypto]=e_gmi.c {- $target{gmi_asm_src} -}
    ENDIF
  ELSE
    ENGINES=padlock
    SOURCE[padlock]=e_padlock.c {- $target{padlock_asm_src} -}
    DEPEND[padlock]=../libcrypto
    INCLUDE[padlock]=../include
    IF[{- !$disabled{capieng} -}]
      ENGINES=capi
      SOURCE[capi]=e_capi.c
      DEPEND[capi]=../libcrypto
      INCLUDE[capi]=../include
    ENDIF
    IF[{- !$disabled{skfeng} -}]
      ENGINES=skf
      SOURCE[skf]=e_skf.c
      DEPEND[skf]=../libcrypto
      INCLUDE[skf]=../include
    ENDIF
    IF[{- !$disabled{sdfeng} -}]
      ENGINES=sdf
      SOURCE[sdf]=e_sdf.c
      DEPEND[sdf]=../libcrypto
      INCLUDE[sdf]=../include
    ENDIF
    IF[{- !$disabled{gmieng} -}]
      ENGINES=gmi
      SOURCE[gmi]=e_gmi.c {- $target{gmi_asm_src} -}
      DEPEND[gmi]=../libcrypto
      INCLUDE[gmi]=../include
    ENDIF

    ENGINES_NO_INST=ossltest skf_dummy sdf_dummy
    SOURCE[dasync]=e_dasync.c
    DEPEND[dasync]=../libcrypto
    INCLUDE[dasync]=../include
    SOURCE[ossltest]=e_ossltest.c
    DEPEND[ossltest]=../libcrypto
    INCLUDE[ossltest]=../include
    SOURCE[skf_dummy]=skf_dummy.c
    DEPEND[skf_dummy]=../libcrypto
    INCLUDE[skf_dummy]=../include
    SOURCE[sdf_dummy]=sdf_dummy.c
    DEPEND[sdf_dummy]=../libcrypto
    INCLUDE[sdf_dummy]=../include
  ENDIF

  GENERATE[e_padlock-x86.s]=asm/e_padlock-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(PROCESSOR)
  GENERATE[e_padlock-x86_64.s]=asm/e_padlock-x86_64.pl $(PERLASM_SCHEME)
  IF[{- !$disabled{gmieng} -}]
    GENERATE[e_gmi-x86.s]=asm/e_gmi-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(PROCESSOR)
    GENERATE[e_gmi-x86_64.s]=asm/e_gmi-x86_64.pl $(PERLASM_SCHEME)
  ENDIF
ENDIF
