build.info 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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. IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}]
  11. PROGRAMS{noinst}=asn1 asn1parse bignum bndiv client conf crl server smime
  12. PROGRAMS{noinst}=punycode pem decoder
  13. PROGRAMS{noinst}=v3name
  14. IF[{- !$disabled{"cmp"} -}]
  15. PROGRAMS{noinst}=cmp
  16. ENDIF
  17. IF[{- !$disabled{"cms"} -}]
  18. PROGRAMS{noinst}=cms
  19. ENDIF
  20. IF[{- !$disabled{"ct"} -}]
  21. PROGRAMS{noinst}=ct
  22. ENDIF
  23. IF[{- !$disabled{"ocsp"} -}]
  24. PROGRAMS{noinst}=x509
  25. ENDIF
  26. IF[{- !$disabled{"quic"} -}]
  27. PROGRAMS{noinst}=quic-client quic-srtm quic-lcidm quic-rcidm
  28. ENDIF
  29. IF[{- !$disabled{"dtls"} -}]
  30. PROGRAMS{noinst}=dtlsclient dtlsserver
  31. ENDIF
  32. SOURCE[asn1]=asn1.c driver.c fuzz_rand.c
  33. INCLUDE[asn1]=../include {- $ex_inc -}
  34. DEPEND[asn1]=../libcrypto ../libssl {- $ex_lib -}
  35. SOURCE[asn1parse]=asn1parse.c driver.c
  36. INCLUDE[asn1parse]=../include {- $ex_inc -}
  37. DEPEND[asn1parse]=../libcrypto {- $ex_lib -}
  38. SOURCE[bignum]=bignum.c driver.c
  39. INCLUDE[bignum]=../include {- $ex_inc -}
  40. DEPEND[bignum]=../libcrypto {- $ex_lib -}
  41. SOURCE[bndiv]=bndiv.c driver.c
  42. INCLUDE[bndiv]=../include {- $ex_inc -}
  43. DEPEND[bndiv]=../libcrypto {- $ex_lib -}
  44. SOURCE[client]=client.c driver.c fuzz_rand.c
  45. INCLUDE[client]=../include {- $ex_inc -}
  46. DEPEND[client]=../libcrypto ../libssl {- $ex_lib -}
  47. SOURCE[cmp]=cmp.c driver.c fuzz_rand.c
  48. INCLUDE[cmp]=../include {- $ex_inc -}
  49. DEPEND[cmp]=../libcrypto {- $ex_lib -}
  50. SOURCE[cms]=cms.c driver.c
  51. INCLUDE[cms]=../include {- $ex_inc -}
  52. DEPEND[cms]=../libcrypto {- $ex_lib -}
  53. SOURCE[conf]=conf.c driver.c
  54. INCLUDE[conf]=../include {- $ex_inc -}
  55. DEPEND[conf]=../libcrypto {- $ex_lib -}
  56. SOURCE[crl]=crl.c driver.c
  57. INCLUDE[crl]=../include {- $ex_inc -}
  58. DEPEND[crl]=../libcrypto {- $ex_lib -}
  59. SOURCE[ct]=ct.c driver.c
  60. INCLUDE[ct]=../include {- $ex_inc -}
  61. DEPEND[ct]=../libcrypto {- $ex_lib -}
  62. SOURCE[dtlsclient]=dtlsclient.c driver.c fuzz_rand.c
  63. INCLUDE[dtlsclient]=../include {- $ex_inc -}
  64. DEPEND[dtlsclient]=../libcrypto ../libssl {- $ex_lib -}
  65. SOURCE[dtlsserver]=dtlsserver.c driver.c fuzz_rand.c
  66. INCLUDE[dtlsserver]=../include {- $ex_inc -}
  67. DEPEND[dtlsserver]=../libcrypto ../libssl {- $ex_lib -}
  68. SOURCE[pem]=pem.c driver.c
  69. INCLUDE[pem]=../include {- $ex_inc -}
  70. DEPEND[pem]=../libcrypto.a {- $ex_lib -}
  71. SOURCE[decoder]=decoder.c driver.c fuzz_rand.c
  72. INCLUDE[decoder]=../include {- $ex_inc -}
  73. DEPEND[decoder]=../libcrypto {- $ex_lib -}
  74. SOURCE[punycode]=punycode.c driver.c
  75. INCLUDE[punycode]=../include {- $ex_inc -}
  76. DEPEND[punycode]=../libcrypto.a {- $ex_lib -}
  77. SOURCE[smime]=smime.c driver.c
  78. INCLUDE[smime]=../include {- $ex_inc -}
  79. DEPEND[smime]=../libcrypto ../libssl {- $ex_lib -}
  80. SOURCE[v3name]=v3name.c driver.c
  81. INCLUDE[v3name]=../include {- $ex_inc -}
  82. DEPEND[v3name]=../libcrypto.a {- $ex_lib -}
  83. SOURCE[quic-client]=quic-client.c driver.c fuzz_rand.c
  84. INCLUDE[quic-client]=../include {- $ex_inc -}
  85. DEPEND[quic-client]=../libcrypto.a ../libssl.a {- $ex_lib -}
  86. SOURCE[quic-srtm]=quic-srtm.c driver.c fuzz_rand.c
  87. INCLUDE[quic-srtm]=../include {- $ex_inc -}
  88. DEPEND[quic-srtm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  89. SOURCE[quic-lcidm]=quic-lcidm.c driver.c fuzz_rand.c
  90. INCLUDE[quic-lcidm]=../include {- $ex_inc -}
  91. DEPEND[quic-lcidm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  92. SOURCE[quic-rcidm]=quic-rcidm.c driver.c fuzz_rand.c
  93. INCLUDE[quic-rcidm]=../include {- $ex_inc -}
  94. DEPEND[quic-rcidm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  95. SOURCE[server]=server.c driver.c fuzz_rand.c
  96. INCLUDE[server]=../include {- $ex_inc -}
  97. DEPEND[server]=../libcrypto ../libssl {- $ex_lib -}
  98. SOURCE[x509]=x509.c driver.c fuzz_rand.c
  99. INCLUDE[x509]=../include {- $ex_inc -}
  100. DEPEND[x509]=../libcrypto {- $ex_lib -}
  101. ENDIF
  102. IF[{- !$disabled{tests} -}]
  103. PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test server-test smime-test
  104. PROGRAMS{noinst}=punycode-test pem-test decoder-test
  105. PROGRAMS{noinst}=v3name-test
  106. IF[{- !$disabled{"cmp"} -}]
  107. PROGRAMS{noinst}=cmp-test
  108. ENDIF
  109. IF[{- !$disabled{"cms"} -}]
  110. PROGRAMS{noinst}=cms-test
  111. ENDIF
  112. IF[{- !$disabled{"ct"} -}]
  113. PROGRAMS{noinst}=ct-test
  114. ENDIF
  115. IF[{- !$disabled{"ocsp"} -}]
  116. PROGRAMS{noinst}=x509-test
  117. ENDIF
  118. IF[{- !$disabled{"quic"} -}]
  119. PROGRAMS{noinst}=quic-client-test quic-srtm-test quic-lcidm-test
  120. PROGRAMS{noinst}=quic-rcidm-test
  121. ENDIF
  122. IF[{- !$disabled{"dtls"} -}]
  123. PROGRAMS{noinst}=dtlsclient-test dtlsserver-test
  124. ENDIF
  125. SOURCE[asn1-test]=asn1.c test-corpus.c fuzz_rand.c
  126. INCLUDE[asn1-test]=../include
  127. DEPEND[asn1-test]=../libcrypto ../libssl
  128. SOURCE[asn1parse-test]=asn1parse.c test-corpus.c
  129. INCLUDE[asn1parse-test]=../include
  130. DEPEND[asn1parse-test]=../libcrypto
  131. SOURCE[bignum-test]=bignum.c test-corpus.c
  132. INCLUDE[bignum-test]=../include
  133. DEPEND[bignum-test]=../libcrypto
  134. SOURCE[bndiv-test]=bndiv.c test-corpus.c
  135. INCLUDE[bndiv-test]=../include
  136. DEPEND[bndiv-test]=../libcrypto
  137. SOURCE[client-test]=client.c test-corpus.c fuzz_rand.c
  138. INCLUDE[client-test]=../include
  139. DEPEND[client-test]=../libcrypto ../libssl
  140. SOURCE[cmp-test]=cmp.c test-corpus.c fuzz_rand.c
  141. INCLUDE[cmp-test]=../include
  142. DEPEND[cmp-test]=../libcrypto.a
  143. # referring to static lib allows using non-exported functions
  144. SOURCE[cms-test]=cms.c test-corpus.c
  145. INCLUDE[cms-test]=../include
  146. DEPEND[cms-test]=../libcrypto
  147. SOURCE[conf-test]=conf.c test-corpus.c
  148. INCLUDE[conf-test]=../include
  149. DEPEND[conf-test]=../libcrypto
  150. SOURCE[crl-test]=crl.c test-corpus.c
  151. INCLUDE[crl-test]=../include
  152. DEPEND[crl-test]=../libcrypto
  153. SOURCE[ct-test]=ct.c test-corpus.c
  154. INCLUDE[ct-test]=../include
  155. DEPEND[ct-test]=../libcrypto
  156. SOURCE[dtlsclient-test]=dtlsclient.c test-corpus.c fuzz_rand.c
  157. INCLUDE[dtlsclient-test]=../include
  158. DEPEND[dtlsclient-test]=../libcrypto ../libssl
  159. SOURCE[dtlsserver-test]=dtlsserver.c test-corpus.c fuzz_rand.c
  160. INCLUDE[dtlsserver-test]=../include
  161. DEPEND[dtlsserver-test]=../libcrypto ../libssl
  162. SOURCE[pem-test]=pem.c test-corpus.c
  163. INCLUDE[pem-test]=../include
  164. DEPEND[pem-test]=../libcrypto.a
  165. SOURCE[decoder-test]=decoder.c test-corpus.c fuzz_rand.c
  166. INCLUDE[decoder-test]=../include
  167. DEPEND[decoder-test]=../libcrypto
  168. SOURCE[punycode-test]=punycode.c test-corpus.c
  169. INCLUDE[punycode-test]=../include
  170. DEPEND[punycode-test]=../libcrypto.a
  171. SOURCE[smime-test]=smime.c test-corpus.c
  172. INCLUDE[smime-test]=../include
  173. DEPEND[smime-test]=../libcrypto ../libssl
  174. SOURCE[v3name-test]=v3name.c test-corpus.c
  175. INCLUDE[v3name-test]=../include
  176. DEPEND[v3name-test]=../libcrypto.a
  177. SOURCE[quic-client-test]=quic-client.c test-corpus.c fuzz_rand.c
  178. INCLUDE[quic-client-test]=../include
  179. DEPEND[quic-client-test]=../libcrypto.a ../libssl.a
  180. SOURCE[quic-srtm-test]=quic-srtm.c test-corpus.c fuzz_rand.c
  181. INCLUDE[quic-srtm-test]=../include
  182. DEPEND[quic-srtm-test]=../libcrypto.a ../libssl.a
  183. SOURCE[quic-lcidm-test]=quic-lcidm.c test-corpus.c fuzz_rand.c
  184. INCLUDE[quic-lcidm-test]=../include
  185. DEPEND[quic-lcidm-test]=../libcrypto.a ../libssl.a
  186. SOURCE[quic-rcidm-test]=quic-rcidm.c test-corpus.c fuzz_rand.c
  187. INCLUDE[quic-rcidm-test]=../include
  188. DEPEND[quic-rcidm-test]=../libcrypto.a ../libssl.a
  189. SOURCE[server-test]=server.c test-corpus.c fuzz_rand.c
  190. INCLUDE[server-test]=../include
  191. DEPEND[server-test]=../libcrypto ../libssl
  192. SOURCE[x509-test]=x509.c test-corpus.c fuzz_rand.c
  193. INCLUDE[x509-test]=../include
  194. DEPEND[x509-test]=../libcrypto
  195. ENDIF