build.info 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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 hashtable acert
  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[hashtable]=hashtable.c driver.c
  75. INCLUDE[hashtable]=../include {- $ex_inc -}
  76. DEPEND[hashtable]=../libcrypto {- $ex_lib -}
  77. SOURCE[acert]=acert.c driver.c
  78. INCLUDE[acert]=../include {- $ex_inc -}
  79. DEPEND[acert]=../libcrypto {- $ex_lib -}
  80. SOURCE[punycode]=punycode.c driver.c
  81. INCLUDE[punycode]=../include {- $ex_inc -}
  82. DEPEND[punycode]=../libcrypto.a {- $ex_lib -}
  83. SOURCE[smime]=smime.c driver.c
  84. INCLUDE[smime]=../include {- $ex_inc -}
  85. DEPEND[smime]=../libcrypto ../libssl {- $ex_lib -}
  86. SOURCE[v3name]=v3name.c driver.c
  87. INCLUDE[v3name]=../include {- $ex_inc -}
  88. DEPEND[v3name]=../libcrypto.a {- $ex_lib -}
  89. SOURCE[quic-client]=quic-client.c driver.c fuzz_rand.c
  90. INCLUDE[quic-client]=../include {- $ex_inc -}
  91. DEPEND[quic-client]=../libcrypto.a ../libssl.a {- $ex_lib -}
  92. SOURCE[quic-srtm]=quic-srtm.c driver.c fuzz_rand.c
  93. INCLUDE[quic-srtm]=../include {- $ex_inc -}
  94. DEPEND[quic-srtm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  95. SOURCE[quic-lcidm]=quic-lcidm.c driver.c fuzz_rand.c
  96. INCLUDE[quic-lcidm]=../include {- $ex_inc -}
  97. DEPEND[quic-lcidm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  98. SOURCE[quic-rcidm]=quic-rcidm.c driver.c fuzz_rand.c
  99. INCLUDE[quic-rcidm]=../include {- $ex_inc -}
  100. DEPEND[quic-rcidm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  101. SOURCE[server]=server.c driver.c fuzz_rand.c
  102. INCLUDE[server]=../include {- $ex_inc -}
  103. DEPEND[server]=../libcrypto ../libssl {- $ex_lib -}
  104. SOURCE[x509]=x509.c driver.c fuzz_rand.c
  105. INCLUDE[x509]=../include {- $ex_inc -}
  106. DEPEND[x509]=../libcrypto {- $ex_lib -}
  107. ENDIF
  108. IF[{- !$disabled{tests} -}]
  109. PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test server-test smime-test
  110. PROGRAMS{noinst}=punycode-test pem-test decoder-test hashtable-test acert-test
  111. PROGRAMS{noinst}=v3name-test
  112. IF[{- !$disabled{"cmp"} -}]
  113. PROGRAMS{noinst}=cmp-test
  114. ENDIF
  115. IF[{- !$disabled{"cms"} -}]
  116. PROGRAMS{noinst}=cms-test
  117. ENDIF
  118. IF[{- !$disabled{"ct"} -}]
  119. PROGRAMS{noinst}=ct-test
  120. ENDIF
  121. IF[{- !$disabled{"ocsp"} -}]
  122. PROGRAMS{noinst}=x509-test
  123. ENDIF
  124. IF[{- !$disabled{"quic"} -}]
  125. PROGRAMS{noinst}=quic-client-test quic-srtm-test quic-lcidm-test
  126. PROGRAMS{noinst}=quic-rcidm-test
  127. ENDIF
  128. IF[{- !$disabled{"dtls"} -}]
  129. PROGRAMS{noinst}=dtlsclient-test dtlsserver-test
  130. ENDIF
  131. SOURCE[asn1-test]=asn1.c test-corpus.c fuzz_rand.c
  132. INCLUDE[asn1-test]=../include
  133. DEPEND[asn1-test]=../libcrypto ../libssl
  134. SOURCE[asn1parse-test]=asn1parse.c test-corpus.c
  135. INCLUDE[asn1parse-test]=../include
  136. DEPEND[asn1parse-test]=../libcrypto
  137. SOURCE[bignum-test]=bignum.c test-corpus.c
  138. INCLUDE[bignum-test]=../include
  139. DEPEND[bignum-test]=../libcrypto
  140. SOURCE[bndiv-test]=bndiv.c test-corpus.c
  141. INCLUDE[bndiv-test]=../include
  142. DEPEND[bndiv-test]=../libcrypto
  143. SOURCE[client-test]=client.c test-corpus.c fuzz_rand.c
  144. INCLUDE[client-test]=../include
  145. DEPEND[client-test]=../libcrypto ../libssl
  146. SOURCE[cmp-test]=cmp.c test-corpus.c fuzz_rand.c
  147. INCLUDE[cmp-test]=../include
  148. DEPEND[cmp-test]=../libcrypto.a
  149. # referring to static lib allows using non-exported functions
  150. SOURCE[cms-test]=cms.c test-corpus.c
  151. INCLUDE[cms-test]=../include
  152. DEPEND[cms-test]=../libcrypto
  153. SOURCE[conf-test]=conf.c test-corpus.c
  154. INCLUDE[conf-test]=../include
  155. DEPEND[conf-test]=../libcrypto
  156. SOURCE[crl-test]=crl.c test-corpus.c
  157. INCLUDE[crl-test]=../include
  158. DEPEND[crl-test]=../libcrypto
  159. SOURCE[ct-test]=ct.c test-corpus.c
  160. INCLUDE[ct-test]=../include
  161. DEPEND[ct-test]=../libcrypto
  162. SOURCE[dtlsclient-test]=dtlsclient.c test-corpus.c fuzz_rand.c
  163. INCLUDE[dtlsclient-test]=../include
  164. DEPEND[dtlsclient-test]=../libcrypto ../libssl
  165. SOURCE[dtlsserver-test]=dtlsserver.c test-corpus.c fuzz_rand.c
  166. INCLUDE[dtlsserver-test]=../include
  167. DEPEND[dtlsserver-test]=../libcrypto ../libssl
  168. SOURCE[pem-test]=pem.c test-corpus.c
  169. INCLUDE[pem-test]=../include
  170. DEPEND[pem-test]=../libcrypto.a
  171. SOURCE[decoder-test]=decoder.c test-corpus.c fuzz_rand.c
  172. INCLUDE[decoder-test]=../include
  173. DEPEND[decoder-test]=../libcrypto
  174. SOURCE[hashtable-test]=hashtable.c test-corpus.c fuzz_rand.c
  175. INCLUDE[hashtable-test]=../include
  176. DEPEND[hashtable-test]=../libcrypto.a
  177. SOURCE[acert-test]=acert.c test-corpus.c
  178. INCLUDE[acert-test]=../include
  179. DEPEND[acert-test]=../libcrypto
  180. SOURCE[punycode-test]=punycode.c test-corpus.c
  181. INCLUDE[punycode-test]=../include
  182. DEPEND[punycode-test]=../libcrypto.a
  183. SOURCE[smime-test]=smime.c test-corpus.c
  184. INCLUDE[smime-test]=../include
  185. DEPEND[smime-test]=../libcrypto ../libssl
  186. SOURCE[v3name-test]=v3name.c test-corpus.c
  187. INCLUDE[v3name-test]=../include
  188. DEPEND[v3name-test]=../libcrypto.a
  189. SOURCE[quic-client-test]=quic-client.c test-corpus.c fuzz_rand.c
  190. INCLUDE[quic-client-test]=../include
  191. DEPEND[quic-client-test]=../libcrypto.a ../libssl.a
  192. SOURCE[quic-srtm-test]=quic-srtm.c test-corpus.c fuzz_rand.c
  193. INCLUDE[quic-srtm-test]=../include
  194. DEPEND[quic-srtm-test]=../libcrypto.a ../libssl.a
  195. SOURCE[quic-lcidm-test]=quic-lcidm.c test-corpus.c fuzz_rand.c
  196. INCLUDE[quic-lcidm-test]=../include
  197. DEPEND[quic-lcidm-test]=../libcrypto.a ../libssl.a
  198. SOURCE[quic-rcidm-test]=quic-rcidm.c test-corpus.c fuzz_rand.c
  199. INCLUDE[quic-rcidm-test]=../include
  200. DEPEND[quic-rcidm-test]=../libcrypto.a ../libssl.a
  201. SOURCE[server-test]=server.c test-corpus.c fuzz_rand.c
  202. INCLUDE[server-test]=../include
  203. DEPEND[server-test]=../libcrypto ../libssl
  204. SOURCE[x509-test]=x509.c test-corpus.c fuzz_rand.c
  205. INCLUDE[x509-test]=../include
  206. DEPEND[x509-test]=../libcrypto
  207. ENDIF