a3d38499ffb6e4dc957aeee3a38936f9377c9ab6
[openssl.git] / fuzz / build.info
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=asn1 asn1parse bignum bndiv cms conf crl ct server x509
13
14   SOURCE[asn1]=asn1.c driver.c
15   INCLUDE[asn1]=../include {- $ex_inc -}
16   DEPEND[asn1]=../libcrypto {- $ex_lib -}
17
18   SOURCE[asn1parse]=asn1parse.c driver.c
19   INCLUDE[asn1parse]=../include {- $ex_inc -}
20   DEPEND[asn1parse]=../libcrypto {- $ex_lib -}
21
22   SOURCE[bignum]=bignum.c driver.c
23   INCLUDE[bignum]=../include {- $ex_inc -}
24   DEPEND[bignum]=../libcrypto {- $ex_lib -}
25
26   SOURCE[bndiv]=bndiv.c driver.c
27   INCLUDE[bndiv]=../include {- $ex_inc -}
28   DEPEND[bndiv]=../libcrypto {- $ex_lib -}
29
30   SOURCE[cms]=cms.c driver.c
31   INCLUDE[cms]=../include {- $ex_inc -}
32   DEPEND[cms]=../libcrypto {- $ex_lib -}
33
34   SOURCE[conf]=conf.c driver.c
35   INCLUDE[conf]=../include {- $ex_inc -}
36   DEPEND[conf]=../libcrypto {- $ex_lib -}
37
38   SOURCE[crl]=crl.c driver.c
39   INCLUDE[crl]=../include {- $ex_inc -}
40   DEPEND[crl]=../libcrypto {- $ex_lib -}
41
42   SOURCE[ct]=ct.c driver.c
43   INCLUDE[ct]=../include {- $ex_inc -}
44   DEPEND[ct]=../libcrypto {- $ex_lib -}
45
46   SOURCE[server]=server.c driver.c
47   INCLUDE[server]=../include {- $ex_inc -}
48   DEPEND[server]=../libcrypto ../libssl {- $ex_lib -}
49
50   SOURCE[x509]=x509.c driver.c
51   INCLUDE[x509]=../include {- $ex_inc -}
52   DEPEND[x509]=../libcrypto {- $ex_lib -}
53 ENDIF
54
55 IF[{- !$disabled{tests} -}]
56   PROGRAMS=asn1-test asn1parse-test bignum-test bndiv-test cms-test conf-test crl-test ct-test server-test x509-test
57
58   SOURCE[asn1-test]=asn1.c test-corpus.c
59   INCLUDE[asn1-test]=../include
60   DEPEND[asn1-test]=../libcrypto
61
62   SOURCE[asn1parse-test]=asn1parse.c test-corpus.c
63   INCLUDE[asn1parse-test]=../include
64   DEPEND[asn1parse-test]=../libcrypto
65
66   SOURCE[bignum-test]=bignum.c test-corpus.c
67   INCLUDE[bignum-test]=../include
68   DEPEND[bignum-test]=../libcrypto
69
70   SOURCE[bndiv-test]=bndiv.c test-corpus.c
71   INCLUDE[bndiv-test]=../include
72   DEPEND[bndiv-test]=../libcrypto
73
74   SOURCE[cms-test]=cms.c test-corpus.c
75   INCLUDE[cms-test]=../include
76   DEPEND[cms-test]=../libcrypto
77
78   SOURCE[conf-test]=conf.c test-corpus.c
79   INCLUDE[conf-test]=../include
80   DEPEND[conf-test]=../libcrypto
81
82   SOURCE[crl-test]=crl.c test-corpus.c
83   INCLUDE[crl-test]=../include
84   DEPEND[crl-test]=../libcrypto
85
86   SOURCE[ct-test]=ct.c test-corpus.c
87   INCLUDE[ct-test]=../include
88   DEPEND[ct-test]=../libcrypto
89
90   SOURCE[server-test]=server.c test-corpus.c
91   INCLUDE[server-test]=../include
92   DEPEND[server-test]=../libcrypto ../libssl
93
94   SOURCE[x509-test]=x509.c test-corpus.c
95   INCLUDE[x509-test]=../include
96   DEPEND[x509-test]=../libcrypto
97 ENDIF