• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
11IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}]
12  PROGRAMS{noinst}=asn1 asn1parse bignum bndiv client conf crl server x509
13
14  IF[{- !$disabled{"cmp"} -}]
15    PROGRAMS{noinst}=cmp
16  ENDIF
17
18  IF[{- !$disabled{"cms"} -}]
19    PROGRAMS{noinst}=cms
20  ENDIF
21
22  IF[{- !$disabled{"ct"} -}]
23    PROGRAMS{noinst}=ct
24  ENDIF
25
26  SOURCE[asn1]=asn1.c driver.c fuzz_rand.c
27  INCLUDE[asn1]=../include {- $ex_inc -}
28  DEPEND[asn1]=../libcrypto ../libssl {- $ex_lib -}
29
30  SOURCE[asn1parse]=asn1parse.c driver.c
31  INCLUDE[asn1parse]=../include {- $ex_inc -}
32  DEPEND[asn1parse]=../libcrypto {- $ex_lib -}
33
34  SOURCE[bignum]=bignum.c driver.c
35  INCLUDE[bignum]=../include {- $ex_inc -}
36  DEPEND[bignum]=../libcrypto {- $ex_lib -}
37
38  SOURCE[bndiv]=bndiv.c driver.c
39  INCLUDE[bndiv]=../include {- $ex_inc -}
40  DEPEND[bndiv]=../libcrypto {- $ex_lib -}
41
42  SOURCE[client]=client.c driver.c fuzz_rand.c
43  INCLUDE[client]=../include {- $ex_inc -}
44  DEPEND[client]=../libcrypto ../libssl {- $ex_lib -}
45
46  SOURCE[cmp]=cmp.c driver.c fuzz_rand.c
47  INCLUDE[cmp]=../include {- $ex_inc -}
48  DEPEND[cmp]=../libcrypto {- $ex_lib -}
49
50  SOURCE[cms]=cms.c driver.c
51  INCLUDE[cms]=../include {- $ex_inc -}
52  DEPEND[cms]=../libcrypto {- $ex_lib -}
53
54  SOURCE[conf]=conf.c driver.c
55  INCLUDE[conf]=../include {- $ex_inc -}
56  DEPEND[conf]=../libcrypto {- $ex_lib -}
57
58  SOURCE[crl]=crl.c driver.c
59  INCLUDE[crl]=../include {- $ex_inc -}
60  DEPEND[crl]=../libcrypto {- $ex_lib -}
61
62  SOURCE[ct]=ct.c driver.c
63  INCLUDE[ct]=../include {- $ex_inc -}
64  DEPEND[ct]=../libcrypto {- $ex_lib -}
65
66  SOURCE[server]=server.c driver.c fuzz_rand.c
67  INCLUDE[server]=../include {- $ex_inc -}
68  DEPEND[server]=../libcrypto ../libssl {- $ex_lib -}
69
70  SOURCE[x509]=x509.c driver.c fuzz_rand.c
71  INCLUDE[x509]=../include {- $ex_inc -}
72  DEPEND[x509]=../libcrypto {- $ex_lib -}
73ENDIF
74
75IF[{- !$disabled{tests} -}]
76  PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test server-test x509-test
77
78  IF[{- !$disabled{"cmp"} -}]
79    PROGRAMS{noinst}=cmp-test
80  ENDIF
81
82  IF[{- !$disabled{"cms"} -}]
83    PROGRAMS{noinst}=cms-test
84  ENDIF
85
86  IF[{- !$disabled{"ct"} -}]
87    PROGRAMS{noinst}=ct-test
88  ENDIF
89
90  SOURCE[asn1-test]=asn1.c test-corpus.c fuzz_rand.c
91  INCLUDE[asn1-test]=../include
92  DEPEND[asn1-test]=../libcrypto ../libssl
93
94  SOURCE[asn1parse-test]=asn1parse.c test-corpus.c
95  INCLUDE[asn1parse-test]=../include
96  DEPEND[asn1parse-test]=../libcrypto
97
98  SOURCE[bignum-test]=bignum.c test-corpus.c
99  INCLUDE[bignum-test]=../include
100  DEPEND[bignum-test]=../libcrypto
101
102  SOURCE[bndiv-test]=bndiv.c test-corpus.c
103  INCLUDE[bndiv-test]=../include
104  DEPEND[bndiv-test]=../libcrypto
105
106  SOURCE[client-test]=client.c test-corpus.c fuzz_rand.c
107  INCLUDE[client-test]=../include
108  DEPEND[client-test]=../libcrypto ../libssl
109
110  SOURCE[cmp-test]=cmp.c test-corpus.c fuzz_rand.c
111  INCLUDE[cmp-test]=../include
112  DEPEND[cmp-test]=../libcrypto.a
113  # referring to static lib allows using non-exported functions
114
115  SOURCE[cms-test]=cms.c test-corpus.c
116  INCLUDE[cms-test]=../include
117  DEPEND[cms-test]=../libcrypto
118
119  SOURCE[conf-test]=conf.c test-corpus.c
120  INCLUDE[conf-test]=../include
121  DEPEND[conf-test]=../libcrypto
122
123  SOURCE[crl-test]=crl.c test-corpus.c
124  INCLUDE[crl-test]=../include
125  DEPEND[crl-test]=../libcrypto
126
127  SOURCE[ct-test]=ct.c test-corpus.c
128  INCLUDE[ct-test]=../include
129  DEPEND[ct-test]=../libcrypto
130
131  SOURCE[server-test]=server.c test-corpus.c fuzz_rand.c
132  INCLUDE[server-test]=../include
133  DEPEND[server-test]=../libcrypto ../libssl
134
135  SOURCE[x509-test]=x509.c test-corpus.c fuzz_rand.c
136  INCLUDE[x509-test]=../include
137  DEPEND[x509-test]=../libcrypto
138ENDIF
139