Fix no-stdio and no-autoalginit
authorMatt Caswell <matt@openssl.org>
Thu, 14 Apr 2016 12:44:15 +0000 (13:44 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 14 Apr 2016 15:41:03 +0000 (16:41 +0100)
no-stdio does not work with the apps. Since the tests also need the apps
it doesn't support that either. Therefore we disable building of both.

no-autoalginit is not compatible with the apps because it requires explicit
loading of the algorithms, and the apps don't do that. Therefore we disable
building the apps for this option. Similarly the tests depend on the apps
so we also disable the tests. Finally the whole point about no-autoalginit
is to avoid excessive executable sizes when doing static linking. Therefore
we disable "shared" if this option is selected.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
Configure
apps/build.info
test/build.info

index 85e1cd9e21ae031d2ca94de78b8affc7ef2b1023..28231abbad6e2b14b8342f5cc319de21c58d6d13 100644 (file)
@@ -226,6 +226,7 @@ build_tests_nodep : $(TESTPROGS)
 test tests : configdata.pm, -
              build_apps_nodep, build_engines_nodep, build_tests_nodep, -
              depend
+        @ ! {- output_off() if $disabled{tests}; "" -}
         SET DEFAULT [.test]{- move("test") -}
         DEFINE SRCTOP {- sourcedir() -}
         DEFINE BLDTOP {- builddir() -}
@@ -235,6 +236,9 @@ test tests : configdata.pm, -
         DEASSIGN BLDTOP
         DEASSIGN SRCTOP
         SET DEFAULT [-]{- move("..") -}
+        @ ! {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
+        @ WRITE SYS$OUTPUT "Tests are not supported with your chosen Configure options"
+        @ ! {- output_on() if !$disabled{tests}; "" -}
 
 list-tests :
         @ TOP=$(SRCDIR) PERL=$(PERL) $(PERL) {- catfile($config{sourcedir},"test", "run_tests.pl") -} list
index 9054f6a863d66f76d876beaf5c688ca35f5d8923..e0ad21b683872c8610a373c8a4fa87521eda56cf 100644 (file)
@@ -217,12 +217,16 @@ build_tests_nodep: $(TESTPROGS)
 
 test tests: build_tests_nodep build_apps_nodep build_engines_nodep \
             depend link-utils
+       @ : {- output_off() if $disabled{tests}; "" -}
        ( cd test; \
          SRCTOP=../$(SRCDIR) \
          BLDTOP=../$(BLDDIR) \
          EXE_EXT={- $exeext -} \
          OPENSSL_ENGINES=../$(BLDDIR)/engines \
            $(PERL) ../$(SRCDIR)/test/run_tests.pl $(TESTS) )
+       @ : {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
+       @echo "Tests are not supported with your chosen Configure options"
+       @ : {- output_on() if !$disabled{tests}; "" -}
 
 list-tests:
        @TOP=$(SRCDIR) PERL=$(PERL) $(PERL) $(SRCDIR)/test/run_tests.pl list
index 6a450b14de5a350726b6afb08d730092bf419b2b..0c043a098efb2630e2bb91077cfdd6194f8db116 100644 (file)
@@ -139,10 +139,14 @@ build_tests: configdata.pm build_tests_nodep depend
 build_tests_nodep: $(TESTPROGS)
 
 test tests: build_tests_nodep build_apps_nodep build_engines_nodep depend
+       @rem {- output_off() if $disabled{tests}; "" -}
        set SRCTOP=$(SRCDIR)
        set BLDTOP=$(BLDDIR)
        set PERL=$(PERL)
        $(PERL) $(SRCDIR)\test\run_tests.pl $(TESTS)
+       @rem {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
+       @echo "Tests are not supported with your chosen Configure options"
+       @rem {- output_on() if !$disabled{tests}; "" -}
 
 list-tests:
        @set TOP=$(SRCDIR)
index 90d08464aad59b8451a496b433008fe603a24600..8192f9e7d2649f62442e71d543563abb0ebc2fd0 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -400,6 +400,12 @@ my @disable_cascades = (
     "pic"               => [ "shared" ],
     "shared"            => [ "dynamic-engine" ],
     "engine"            => [ "afalgeng" ],
+
+    # no-autoalginit is only useful when building non-shared
+    "autoalginit"       => [ "shared", "apps" ],
+
+    "stdio"             => [ "apps" ],
+    "apps"              => [ "tests" ],
     "comp"             => [ "zlib" ],
     sub { !$disabled{"unit-test"} } => [ "heartbeats" ],
     );
index d8ad19702ca52043d0c8f059699344f16a49bc56..3baba66feb1c10e1c017bcd8cdbf6d084f89c3fe 100644 (file)
@@ -1,19 +1,21 @@
 {- use File::Spec::Functions qw/catdir rel2abs/; -}
-PROGRAMS=openssl
-SOURCE[openssl]=\
-        openssl.c \
-        asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c dhparam.c \
-        dsa.c dsaparam.c ec.c ecparam.c enc.c engine.c errstr.c gendsa.c \
-        genpkey.c genrsa.c nseq.c ocsp.c passwd.c pkcs12.c pkcs7.c pkcs8.c \
-        pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c rsa.c rsautl.c \
-        s_client.c s_server.c s_time.c sess_id.c smime.c speed.c spkac.c \
-        srp.c ts.c verify.c version.c x509.c rehash.c \
-        apps.c opt.c s_cb.c s_socket.c \
-        app_rand.c \
-        {- $target{apps_aux_src} -}
-INCLUDE[openssl]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[openssl]=../libssl
+IF[{- !$disabled{apps} -}]
+  PROGRAMS=openssl
+  SOURCE[openssl]=\
+          openssl.c \
+          asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c dhparam.c \
+          dsa.c dsaparam.c ec.c ecparam.c enc.c engine.c errstr.c gendsa.c \
+          genpkey.c genrsa.c nseq.c ocsp.c passwd.c pkcs12.c pkcs7.c pkcs8.c \
+          pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c rsa.c rsautl.c \
+          s_client.c s_server.c s_time.c sess_id.c smime.c speed.c spkac.c \
+          srp.c ts.c verify.c version.c x509.c rehash.c \
+          apps.c opt.c s_cb.c s_socket.c \
+          app_rand.c \
+          {- $target{apps_aux_src} -}
+  INCLUDE[openssl]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[openssl]=../libssl
 
-SCRIPTS=CA.pl tsget
-SOURCE[CA.pl]=CA.pl.in
-SOURCE[tsget]=tsget.in
+  SCRIPTS=CA.pl tsget
+  SOURCE[CA.pl]=CA.pl.in
+  SOURCE[tsget]=tsget.in
+ENDIF
index 3dcddb62238abf6a6eea35cf77f1451e91c5f6c6..4fd4d99ece212a123ec95adbc78d4ef00fcd62fe 100644 (file)
 {- use File::Spec::Functions qw/catdir rel2abs/; -}
-PROGRAMS=\
-        aborttest \
-        nptest bntest \
-        ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
-        md2test md4test md5test \
-        hmactest wp_test \
-        rc2test rc4test rc5test \
-        destest sha1test sha256t sha512t \
-        mdc2test rmdtest \
-        randtest dhtest enginetest casttest \
-        bftest ssltest_old dsatest exptest rsa_test \
-        evp_test evp_extra_test igetest v3nametest \
-        danetest heartbeat_test p5_crpt2_test \
-        constant_time_test verify_extra_test clienthellotest \
-        packettest asynctest secmemtest srptest memleaktest \
-        dtlsv1listentest ct_test threadstest afalgtest d2i_test \
-        ssl_test_ctx_test ssl_test
-
-SOURCE[aborttest]=aborttest.c
-INCLUDE[aborttest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[aborttest]=../libcrypto
-
-SOURCE[nptest]=nptest.c
-INCLUDE[nptest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[nptest]=../libcrypto
-
-SOURCE[bntest]=bntest.c
-INCLUDE[bntest]={- rel2abs(catdir($builddir,"../crypto/include")) -} {- rel2abs(catdir($builddir,"../include")) -} .. ../crypto/include ../include
-DEPEND[bntest]=../libcrypto
-
-SOURCE[ectest]=ectest.c
-INCLUDE[ectest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[ectest]=../libcrypto
-
-SOURCE[ecdsatest]=ecdsatest.c
-INCLUDE[ecdsatest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[ecdsatest]=../libcrypto
-
-SOURCE[ecdhtest]=ecdhtest.c
-INCLUDE[ecdhtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[ecdhtest]=../libcrypto
-
-SOURCE[gmdifftest]=gmdifftest.c
-INCLUDE[gmdifftest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[gmdifftest]=../libcrypto
-
-SOURCE[pbelutest]=pbelutest.c
-INCLUDE[pbelutest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[pbelutest]=../libcrypto
-
-SOURCE[ideatest]=ideatest.c
-INCLUDE[ideatest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[ideatest]=../libcrypto
-
-SOURCE[md2test]=md2test.c
-INCLUDE[md2test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[md2test]=../libcrypto
-
-SOURCE[md4test]=md4test.c
-INCLUDE[md4test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[md4test]=../libcrypto
-
-SOURCE[md5test]=md5test.c
-INCLUDE[md5test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[md5test]=../libcrypto
-
-SOURCE[hmactest]=hmactest.c
-INCLUDE[hmactest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[hmactest]=../libcrypto
-
-SOURCE[wp_test]=wp_test.c
-INCLUDE[wp_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[wp_test]=../libcrypto
-
-SOURCE[rc2test]=rc2test.c
-INCLUDE[rc2test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[rc2test]=../libcrypto
-
-SOURCE[rc4test]=rc4test.c
-INCLUDE[rc4test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[rc4test]=../libcrypto
-
-SOURCE[rc5test]=rc5test.c
-INCLUDE[rc5test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[rc5test]=../libcrypto
-
-SOURCE[destest]=destest.c
-INCLUDE[destest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[destest]=../libcrypto
-
-SOURCE[sha1test]=sha1test.c
-INCLUDE[sha1test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[sha1test]=../libcrypto
-
-SOURCE[sha256t]=sha256t.c
-INCLUDE[sha256t]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[sha256t]=../libcrypto
-
-SOURCE[sha512t]=sha512t.c
-INCLUDE[sha512t]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[sha512t]=../libcrypto
-
-SOURCE[mdc2test]=mdc2test.c
-INCLUDE[mdc2test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[mdc2test]=../libcrypto
-
-SOURCE[rmdtest]=rmdtest.c
-INCLUDE[rmdtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[rmdtest]=../libcrypto
-
-SOURCE[randtest]=randtest.c
-INCLUDE[randtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[randtest]=../libcrypto
+IF[{- !$disabled{tests} -}]
+  PROGRAMS=\
+          aborttest \
+          nptest bntest \
+          ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
+          md2test md4test md5test \
+          hmactest wp_test \
+          rc2test rc4test rc5test \
+          destest sha1test sha256t sha512t \
+          mdc2test rmdtest \
+          randtest dhtest enginetest casttest \
+          bftest ssltest_old dsatest exptest rsa_test \
+          evp_test evp_extra_test igetest v3nametest \
+          danetest heartbeat_test p5_crpt2_test \
+          constant_time_test verify_extra_test clienthellotest \
+          packettest asynctest secmemtest srptest memleaktest \
+          dtlsv1listentest ct_test threadstest afalgtest d2i_test \
+          ssl_test_ctx_test ssl_test
+
+  SOURCE[aborttest]=aborttest.c
+  INCLUDE[aborttest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[aborttest]=../libcrypto
+
+  SOURCE[nptest]=nptest.c
+  INCLUDE[nptest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[nptest]=../libcrypto
+
+  SOURCE[bntest]=bntest.c
+  INCLUDE[bntest]={- rel2abs(catdir($builddir,"../crypto/include")) -} {- rel2abs(catdir($builddir,"../include")) -} .. ../crypto/include ../include
+  DEPEND[bntest]=../libcrypto
+
+  SOURCE[ectest]=ectest.c
+  INCLUDE[ectest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[ectest]=../libcrypto
+
+  SOURCE[ecdsatest]=ecdsatest.c
+  INCLUDE[ecdsatest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[ecdsatest]=../libcrypto
+
+  SOURCE[ecdhtest]=ecdhtest.c
+  INCLUDE[ecdhtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[ecdhtest]=../libcrypto
+
+  SOURCE[gmdifftest]=gmdifftest.c
+  INCLUDE[gmdifftest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[gmdifftest]=../libcrypto
+
+  SOURCE[pbelutest]=pbelutest.c
+  INCLUDE[pbelutest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[pbelutest]=../libcrypto
+
+  SOURCE[ideatest]=ideatest.c
+  INCLUDE[ideatest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[ideatest]=../libcrypto
+
+  SOURCE[md2test]=md2test.c
+  INCLUDE[md2test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[md2test]=../libcrypto
+
+  SOURCE[md4test]=md4test.c
+  INCLUDE[md4test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[md4test]=../libcrypto
+
+  SOURCE[md5test]=md5test.c
+  INCLUDE[md5test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[md5test]=../libcrypto
+
+  SOURCE[hmactest]=hmactest.c
+  INCLUDE[hmactest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[hmactest]=../libcrypto
+
+  SOURCE[wp_test]=wp_test.c
+  INCLUDE[wp_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[wp_test]=../libcrypto
+
+  SOURCE[rc2test]=rc2test.c
+  INCLUDE[rc2test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[rc2test]=../libcrypto
+
+  SOURCE[rc4test]=rc4test.c
+  INCLUDE[rc4test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[rc4test]=../libcrypto
+
+  SOURCE[rc5test]=rc5test.c
+  INCLUDE[rc5test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[rc5test]=../libcrypto
+
+  SOURCE[destest]=destest.c
+  INCLUDE[destest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[destest]=../libcrypto
+
+  SOURCE[sha1test]=sha1test.c
+  INCLUDE[sha1test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[sha1test]=../libcrypto
+
+  SOURCE[sha256t]=sha256t.c
+  INCLUDE[sha256t]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[sha256t]=../libcrypto
+
+  SOURCE[sha512t]=sha512t.c
+  INCLUDE[sha512t]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[sha512t]=../libcrypto
+
+  SOURCE[mdc2test]=mdc2test.c
+  INCLUDE[mdc2test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[mdc2test]=../libcrypto
+
+  SOURCE[rmdtest]=rmdtest.c
+  INCLUDE[rmdtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[rmdtest]=../libcrypto
+
+  SOURCE[randtest]=randtest.c
+  INCLUDE[randtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[randtest]=../libcrypto
 
-SOURCE[dhtest]=dhtest.c
-INCLUDE[dhtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[dhtest]=../libcrypto
+  SOURCE[dhtest]=dhtest.c
+  INCLUDE[dhtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[dhtest]=../libcrypto
 
-SOURCE[enginetest]=enginetest.c
-INCLUDE[enginetest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[enginetest]=../libcrypto
+  SOURCE[enginetest]=enginetest.c
+  INCLUDE[enginetest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[enginetest]=../libcrypto
 
-SOURCE[casttest]=casttest.c
-INCLUDE[casttest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[casttest]=../libcrypto
+  SOURCE[casttest]=casttest.c
+  INCLUDE[casttest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[casttest]=../libcrypto
 
-SOURCE[bftest]=bftest.c
-INCLUDE[bftest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[bftest]=../libcrypto
+  SOURCE[bftest]=bftest.c
+  INCLUDE[bftest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[bftest]=../libcrypto
 
-SOURCE[ssltest_old]=ssltest_old.c
-INCLUDE[ssltest_old]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[ssltest_old]=../libcrypto ../libssl
+  SOURCE[ssltest_old]=ssltest_old.c
+  INCLUDE[ssltest_old]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[ssltest_old]=../libcrypto ../libssl
 
-SOURCE[dsatest]=dsatest.c
-INCLUDE[dsatest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[dsatest]=../libcrypto
+  SOURCE[dsatest]=dsatest.c
+  INCLUDE[dsatest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[dsatest]=../libcrypto
 
-SOURCE[exptest]=exptest.c
-INCLUDE[exptest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[exptest]=../libcrypto
+  SOURCE[exptest]=exptest.c
+  INCLUDE[exptest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[exptest]=../libcrypto
 
-SOURCE[rsa_test]=rsa_test.c
-INCLUDE[rsa_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[rsa_test]=../libcrypto
+  SOURCE[rsa_test]=rsa_test.c
+  INCLUDE[rsa_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[rsa_test]=../libcrypto
 
-SOURCE[evp_test]=evp_test.c
-INCLUDE[evp_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[evp_test]=../libcrypto
+  SOURCE[evp_test]=evp_test.c
+  INCLUDE[evp_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[evp_test]=../libcrypto
 
-SOURCE[evp_extra_test]=evp_extra_test.c
-INCLUDE[evp_extra_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[evp_extra_test]=../libcrypto
+  SOURCE[evp_extra_test]=evp_extra_test.c
+  INCLUDE[evp_extra_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[evp_extra_test]=../libcrypto
 
-SOURCE[igetest]=igetest.c
-INCLUDE[igetest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[igetest]=../libcrypto
+  SOURCE[igetest]=igetest.c
+  INCLUDE[igetest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[igetest]=../libcrypto
 
-SOURCE[v3nametest]=v3nametest.c
-INCLUDE[v3nametest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[v3nametest]=../libcrypto
+  SOURCE[v3nametest]=v3nametest.c
+  INCLUDE[v3nametest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[v3nametest]=../libcrypto
 
-SOURCE[danetest]=danetest.c
-INCLUDE[danetest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[danetest]=../libcrypto ../libssl
+  SOURCE[danetest]=danetest.c
+  INCLUDE[danetest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[danetest]=../libcrypto ../libssl
 
-SOURCE[heartbeat_test]=heartbeat_test.c testutil.c
-INCLUDE[heartbeat_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[heartbeat_test]=../libcrypto ../libssl
+  SOURCE[heartbeat_test]=heartbeat_test.c testutil.c
+  INCLUDE[heartbeat_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[heartbeat_test]=../libcrypto ../libssl
 
-SOURCE[p5_crpt2_test]=p5_crpt2_test.c
-INCLUDE[p5_crpt2_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[p5_crpt2_test]=../libcrypto
+  SOURCE[p5_crpt2_test]=p5_crpt2_test.c
+  INCLUDE[p5_crpt2_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[p5_crpt2_test]=../libcrypto
 
-SOURCE[constant_time_test]=constant_time_test.c
-INCLUDE[constant_time_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[constant_time_test]=../libcrypto
+  SOURCE[constant_time_test]=constant_time_test.c
+  INCLUDE[constant_time_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[constant_time_test]=../libcrypto
 
-SOURCE[verify_extra_test]=verify_extra_test.c
-INCLUDE[verify_extra_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[verify_extra_test]=../libcrypto
+  SOURCE[verify_extra_test]=verify_extra_test.c
+  INCLUDE[verify_extra_test]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[verify_extra_test]=../libcrypto
 
-SOURCE[clienthellotest]=clienthellotest.c
-INCLUDE[clienthellotest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[clienthellotest]=../libcrypto ../libssl
+  SOURCE[clienthellotest]=clienthellotest.c
+  INCLUDE[clienthellotest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[clienthellotest]=../libcrypto ../libssl
 
-SOURCE[packettest]=packettest.c
-INCLUDE[packettest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[packettest]=../libcrypto
+  SOURCE[packettest]=packettest.c
+  INCLUDE[packettest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[packettest]=../libcrypto
 
-SOURCE[asynctest]=asynctest.c
-INCLUDE[asynctest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[asynctest]=../libcrypto
+  SOURCE[asynctest]=asynctest.c
+  INCLUDE[asynctest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[asynctest]=../libcrypto
 
-SOURCE[secmemtest]=secmemtest.c
-INCLUDE[secmemtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[secmemtest]=../libcrypto
+  SOURCE[secmemtest]=secmemtest.c
+  INCLUDE[secmemtest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[secmemtest]=../libcrypto
 
-SOURCE[srptest]=srptest.c
-INCLUDE[srptest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[srptest]=../libcrypto
+  SOURCE[srptest]=srptest.c
+  INCLUDE[srptest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[srptest]=../libcrypto
 
-SOURCE[memleaktest]=memleaktest.c
-INCLUDE[memleaktest]={- rel2abs(catdir($builddir,"../include")) -} ../include
-DEPEND[memleaktest]=../libcrypto
+  SOURCE[memleaktest]=memleaktest.c
+  INCLUDE[memleaktest]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  DEPEND[memleaktest]=../libcrypto
 
-SOURCE[dtlsv1listentest]=dtlsv1listentest.c
-INCLUDE[dtlsv1listentest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[dtlsv1listentest]=../libssl
+  SOURCE[dtlsv1listentest]=dtlsv1listentest.c
+  INCLUDE[dtlsv1listentest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[dtlsv1listentest]=../libssl
 
-SOURCE[ct_test]=ct_test.c testutil.c
-INCLUDE[ct_test]={- rel2abs(catdir($builddir,"../include")) -} ../crypto/include ../include
-DEPEND[ct_test]=../libcrypto
+  SOURCE[ct_test]=ct_test.c testutil.c
+  INCLUDE[ct_test]={- rel2abs(catdir($builddir,"../include")) -} ../crypto/include ../include
+  DEPEND[ct_test]=../libcrypto
 
-SOURCE[threadstest]=threadstest.c
-INCLUDE[threadstest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[threadstest]=../libcrypto
+  SOURCE[threadstest]=threadstest.c
+  INCLUDE[threadstest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[threadstest]=../libcrypto
 
-SOURCE[afalgtest]=afalgtest.c
-INCLUDE[afalgtest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[afalgtest]=../libcrypto
+  SOURCE[afalgtest]=afalgtest.c
+  INCLUDE[afalgtest]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[afalgtest]=../libcrypto
 
-SOURCE[d2i_test]=d2i_test.c testutil.c
-INCLUDE[d2i_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[d2i_test]=../libcrypto
+  SOURCE[d2i_test]=d2i_test.c testutil.c
+  INCLUDE[d2i_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[d2i_test]=../libcrypto
 
-SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c
-INCLUDE[ssl_test_ctx_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[ssl_test_ctx_test]=../libcrypto
+  SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c
+  INCLUDE[ssl_test_ctx_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[ssl_test_ctx_test]=../libcrypto
 
-SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c
-INCLUDE[ssl_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
-DEPEND[ssl_test]=../libcrypto ../libssl
+  SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c
+  INCLUDE[ssl_test]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
+  DEPEND[ssl_test]=../libcrypto ../libssl
 
-INCLUDE[testutil.o]=..
-INCLUDE[ssl_test_ctx.o]={- rel2abs(catdir($builddir,"../include")) -} ../include
-INCLUDE[handshake_helper.o]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  INCLUDE[testutil.o]=..
+  INCLUDE[ssl_test_ctx.o]={- rel2abs(catdir($builddir,"../include")) -} ../include
+  INCLUDE[handshake_helper.o]={- rel2abs(catdir($builddir,"../include")) -} ../include
+ENDIF