lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | {- use File::Spec::Functions; |
| 2 | our $ex_inc = $withargs{fuzzer_include} && |
| 3 | (file_name_is_absolute($withargs{fuzzer_include}) ? |
| 4 | $withargs{fuzzer_include} : catdir(updir(), $withargs{fuzzer_include})); |
| 5 | our $ex_lib = $withargs{fuzzer_lib} && |
| 6 | (file_name_is_absolute($withargs{fuzzer_lib}) ? |
| 7 | $withargs{fuzzer_lib} : catfile(updir(), $withargs{fuzzer_lib})); |
| 8 | "" |
| 9 | -} |
| 10 | |
| 11 | IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}] |
| 12 | PROGRAMS_NO_INST=asn1 asn1parse bignum bndiv client conf crl server x509 |
| 13 | |
| 14 | IF[{- !$disabled{"cms"} -}] |
| 15 | PROGRAMS_NO_INST=cms |
| 16 | ENDIF |
| 17 | |
| 18 | IF[{- !$disabled{"ct"} -}] |
| 19 | PROGRAMS_NO_INST=ct |
| 20 | ENDIF |
| 21 | |
| 22 | SOURCE[asn1]=asn1.c driver.c |
| 23 | INCLUDE[asn1]=../include {- $ex_inc -} |
| 24 | DEPEND[asn1]=../libcrypto ../libssl {- $ex_lib -} |
| 25 | |
| 26 | SOURCE[asn1parse]=asn1parse.c driver.c |
| 27 | INCLUDE[asn1parse]=../include {- $ex_inc -} |
| 28 | DEPEND[asn1parse]=../libcrypto {- $ex_lib -} |
| 29 | |
| 30 | SOURCE[bignum]=bignum.c driver.c |
| 31 | INCLUDE[bignum]=../include {- $ex_inc -} |
| 32 | DEPEND[bignum]=../libcrypto {- $ex_lib -} |
| 33 | |
| 34 | SOURCE[bndiv]=bndiv.c driver.c |
| 35 | INCLUDE[bndiv]=../include {- $ex_inc -} |
| 36 | DEPEND[bndiv]=../libcrypto {- $ex_lib -} |
| 37 | |
| 38 | SOURCE[client]=client.c driver.c |
| 39 | INCLUDE[client]=../include {- $ex_inc -} |
| 40 | DEPEND[client]=../libcrypto ../libssl {- $ex_lib -} |
| 41 | |
| 42 | SOURCE[cms]=cms.c driver.c |
| 43 | INCLUDE[cms]=../include {- $ex_inc -} |
| 44 | DEPEND[cms]=../libcrypto {- $ex_lib -} |
| 45 | |
| 46 | SOURCE[conf]=conf.c driver.c |
| 47 | INCLUDE[conf]=../include {- $ex_inc -} |
| 48 | DEPEND[conf]=../libcrypto {- $ex_lib -} |
| 49 | |
| 50 | SOURCE[crl]=crl.c driver.c |
| 51 | INCLUDE[crl]=../include {- $ex_inc -} |
| 52 | DEPEND[crl]=../libcrypto {- $ex_lib -} |
| 53 | |
| 54 | SOURCE[ct]=ct.c driver.c |
| 55 | INCLUDE[ct]=../include {- $ex_inc -} |
| 56 | DEPEND[ct]=../libcrypto {- $ex_lib -} |
| 57 | |
| 58 | SOURCE[server]=server.c driver.c |
| 59 | INCLUDE[server]=../include {- $ex_inc -} |
| 60 | DEPEND[server]=../libcrypto ../libssl {- $ex_lib -} |
| 61 | |
| 62 | SOURCE[x509]=x509.c driver.c |
| 63 | INCLUDE[x509]=../include {- $ex_inc -} |
| 64 | DEPEND[x509]=../libcrypto {- $ex_lib -} |
| 65 | ENDIF |
| 66 | |
| 67 | IF[{- !$disabled{tests} -}] |
| 68 | PROGRAMS_NO_INST=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test server-test x509-test |
| 69 | |
| 70 | IF[{- !$disabled{"cms"} -}] |
| 71 | PROGRAMS_NO_INST=cms-test |
| 72 | ENDIF |
| 73 | |
| 74 | IF[{- !$disabled{"ct"} -}] |
| 75 | PROGRAMS_NO_INST=ct-test |
| 76 | ENDIF |
| 77 | |
| 78 | SOURCE[asn1-test]=asn1.c test-corpus.c |
| 79 | INCLUDE[asn1-test]=../include |
| 80 | DEPEND[asn1-test]=../libcrypto ../libssl |
| 81 | |
| 82 | SOURCE[asn1parse-test]=asn1parse.c test-corpus.c |
| 83 | INCLUDE[asn1parse-test]=../include |
| 84 | DEPEND[asn1parse-test]=../libcrypto |
| 85 | |
| 86 | SOURCE[bignum-test]=bignum.c test-corpus.c |
| 87 | INCLUDE[bignum-test]=../include |
| 88 | DEPEND[bignum-test]=../libcrypto |
| 89 | |
| 90 | SOURCE[bndiv-test]=bndiv.c test-corpus.c |
| 91 | INCLUDE[bndiv-test]=../include |
| 92 | DEPEND[bndiv-test]=../libcrypto |
| 93 | |
| 94 | SOURCE[client-test]=client.c test-corpus.c |
| 95 | INCLUDE[client-test]=../include |
| 96 | DEPEND[client-test]=../libcrypto ../libssl |
| 97 | |
| 98 | SOURCE[cms-test]=cms.c test-corpus.c |
| 99 | INCLUDE[cms-test]=../include |
| 100 | DEPEND[cms-test]=../libcrypto |
| 101 | |
| 102 | SOURCE[conf-test]=conf.c test-corpus.c |
| 103 | INCLUDE[conf-test]=../include |
| 104 | DEPEND[conf-test]=../libcrypto |
| 105 | |
| 106 | SOURCE[crl-test]=crl.c test-corpus.c |
| 107 | INCLUDE[crl-test]=../include |
| 108 | DEPEND[crl-test]=../libcrypto |
| 109 | |
| 110 | SOURCE[ct-test]=ct.c test-corpus.c |
| 111 | INCLUDE[ct-test]=../include |
| 112 | DEPEND[ct-test]=../libcrypto |
| 113 | |
| 114 | SOURCE[server-test]=server.c test-corpus.c |
| 115 | INCLUDE[server-test]=../include |
| 116 | DEPEND[server-test]=../libcrypto ../libssl |
| 117 | |
| 118 | SOURCE[x509-test]=x509.c test-corpus.c |
| 119 | INCLUDE[x509-test]=../include |
| 120 | DEPEND[x509-test]=../libcrypto |
| 121 | ENDIF |