include.am 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. # This file was generated by fuzzing_include_am.py; do not hand-edit unless
  2. # you enjoy having your changes erased.
  3. FUZZING_CPPFLAGS = \
  4. $(src_test_AM_CPPFLAGS) $(TEST_CPPFLAGS)
  5. FUZZING_CFLAGS = \
  6. $(AM_CFLAGS) $(TEST_CFLAGS)
  7. FUZZING_LDFLAG = \
  8. @TOR_LDFLAGS_zlib@ $(TOR_LDFLAGS_CRYPTLIB) @TOR_LDFLAGS_libevent@
  9. FUZZING_LIBS = \
  10. $(TOR_INTERNAL_TESTING_LIBS) \
  11. $(rust_ldadd) \
  12. @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ \
  13. @TOR_LIBEVENT_LIBS@ $(TOR_LIBS_CRYPTLIB) \
  14. @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ @TOR_LIB_USERENV@ @CURVE25519_LIBS@ \
  15. @TOR_SYSTEMD_LIBS@ \
  16. @TOR_LZMA_LIBS@ \
  17. @TOR_ZSTD_LIBS@
  18. oss-fuzz-prereqs: \
  19. $(TOR_INTERNAL_TESTING_LIBS)
  20. noinst_HEADERS += \
  21. src/test/fuzz/fuzzing.h
  22. LIBFUZZER = -lFuzzer
  23. LIBFUZZER_CPPFLAGS = $(FUZZING_CPPFLAGS) -DLLVM_FUZZ
  24. LIBFUZZER_CFLAGS = $(FUZZING_CFLAGS)
  25. LIBFUZZER_LDFLAG = $(FUZZING_LDFLAG)
  26. LIBFUZZER_LIBS = $(FUZZING_LIBS) $(LIBFUZZER) -lstdc++
  27. LIBOSS_FUZZ_CPPFLAGS = $(FUZZING_CPPFLAGS) -DLLVM_FUZZ
  28. LIBOSS_FUZZ_CFLAGS = $(FUZZING_CFLAGS)
  29. # ===== AFL fuzzers
  30. src_test_fuzz_fuzz_consensus_SOURCES = \
  31. src/test/fuzz/fuzzing_common.c \
  32. src/test/fuzz/fuzz_consensus.c
  33. src_test_fuzz_fuzz_consensus_CPPFLAGS = $(FUZZING_CPPFLAGS)
  34. src_test_fuzz_fuzz_consensus_CFLAGS = $(FUZZING_CFLAGS)
  35. src_test_fuzz_fuzz_consensus_LDFLAGS = $(FUZZING_LDFLAG)
  36. src_test_fuzz_fuzz_consensus_LDADD = $(FUZZING_LIBS)
  37. src_test_fuzz_fuzz_descriptor_SOURCES = \
  38. src/test/fuzz/fuzzing_common.c \
  39. src/test/fuzz/fuzz_descriptor.c
  40. src_test_fuzz_fuzz_descriptor_CPPFLAGS = $(FUZZING_CPPFLAGS)
  41. src_test_fuzz_fuzz_descriptor_CFLAGS = $(FUZZING_CFLAGS)
  42. src_test_fuzz_fuzz_descriptor_LDFLAGS = $(FUZZING_LDFLAG)
  43. src_test_fuzz_fuzz_descriptor_LDADD = $(FUZZING_LIBS)
  44. src_test_fuzz_fuzz_diff_SOURCES = \
  45. src/test/fuzz/fuzzing_common.c \
  46. src/test/fuzz/fuzz_diff.c
  47. src_test_fuzz_fuzz_diff_CPPFLAGS = $(FUZZING_CPPFLAGS)
  48. src_test_fuzz_fuzz_diff_CFLAGS = $(FUZZING_CFLAGS)
  49. src_test_fuzz_fuzz_diff_LDFLAGS = $(FUZZING_LDFLAG)
  50. src_test_fuzz_fuzz_diff_LDADD = $(FUZZING_LIBS)
  51. src_test_fuzz_fuzz_diff_apply_SOURCES = \
  52. src/test/fuzz/fuzzing_common.c \
  53. src/test/fuzz/fuzz_diff_apply.c
  54. src_test_fuzz_fuzz_diff_apply_CPPFLAGS = $(FUZZING_CPPFLAGS)
  55. src_test_fuzz_fuzz_diff_apply_CFLAGS = $(FUZZING_CFLAGS)
  56. src_test_fuzz_fuzz_diff_apply_LDFLAGS = $(FUZZING_LDFLAG)
  57. src_test_fuzz_fuzz_diff_apply_LDADD = $(FUZZING_LIBS)
  58. src_test_fuzz_fuzz_extrainfo_SOURCES = \
  59. src/test/fuzz/fuzzing_common.c \
  60. src/test/fuzz/fuzz_extrainfo.c
  61. src_test_fuzz_fuzz_extrainfo_CPPFLAGS = $(FUZZING_CPPFLAGS)
  62. src_test_fuzz_fuzz_extrainfo_CFLAGS = $(FUZZING_CFLAGS)
  63. src_test_fuzz_fuzz_extrainfo_LDFLAGS = $(FUZZING_LDFLAG)
  64. src_test_fuzz_fuzz_extrainfo_LDADD = $(FUZZING_LIBS)
  65. src_test_fuzz_fuzz_hsdescv2_SOURCES = \
  66. src/test/fuzz/fuzzing_common.c \
  67. src/test/fuzz/fuzz_hsdescv2.c
  68. src_test_fuzz_fuzz_hsdescv2_CPPFLAGS = $(FUZZING_CPPFLAGS)
  69. src_test_fuzz_fuzz_hsdescv2_CFLAGS = $(FUZZING_CFLAGS)
  70. src_test_fuzz_fuzz_hsdescv2_LDFLAGS = $(FUZZING_LDFLAG)
  71. src_test_fuzz_fuzz_hsdescv2_LDADD = $(FUZZING_LIBS)
  72. src_test_fuzz_fuzz_hsdescv3_SOURCES = \
  73. src/test/fuzz/fuzzing_common.c \
  74. src/test/fuzz/fuzz_hsdescv3.c
  75. src_test_fuzz_fuzz_hsdescv3_CPPFLAGS = $(FUZZING_CPPFLAGS)
  76. src_test_fuzz_fuzz_hsdescv3_CFLAGS = $(FUZZING_CFLAGS)
  77. src_test_fuzz_fuzz_hsdescv3_LDFLAGS = $(FUZZING_LDFLAG)
  78. src_test_fuzz_fuzz_hsdescv3_LDADD = $(FUZZING_LIBS)
  79. src_test_fuzz_fuzz_http_SOURCES = \
  80. src/test/fuzz/fuzzing_common.c \
  81. src/test/fuzz/fuzz_http.c
  82. src_test_fuzz_fuzz_http_CPPFLAGS = $(FUZZING_CPPFLAGS)
  83. src_test_fuzz_fuzz_http_CFLAGS = $(FUZZING_CFLAGS)
  84. src_test_fuzz_fuzz_http_LDFLAGS = $(FUZZING_LDFLAG)
  85. src_test_fuzz_fuzz_http_LDADD = $(FUZZING_LIBS)
  86. src_test_fuzz_fuzz_http_connect_SOURCES = \
  87. src/test/fuzz/fuzzing_common.c \
  88. src/test/fuzz/fuzz_http_connect.c
  89. src_test_fuzz_fuzz_http_connect_CPPFLAGS = $(FUZZING_CPPFLAGS)
  90. src_test_fuzz_fuzz_http_connect_CFLAGS = $(FUZZING_CFLAGS)
  91. src_test_fuzz_fuzz_http_connect_LDFLAGS = $(FUZZING_LDFLAG)
  92. src_test_fuzz_fuzz_http_connect_LDADD = $(FUZZING_LIBS)
  93. src_test_fuzz_fuzz_iptsv2_SOURCES = \
  94. src/test/fuzz/fuzzing_common.c \
  95. src/test/fuzz/fuzz_iptsv2.c
  96. src_test_fuzz_fuzz_iptsv2_CPPFLAGS = $(FUZZING_CPPFLAGS)
  97. src_test_fuzz_fuzz_iptsv2_CFLAGS = $(FUZZING_CFLAGS)
  98. src_test_fuzz_fuzz_iptsv2_LDFLAGS = $(FUZZING_LDFLAG)
  99. src_test_fuzz_fuzz_iptsv2_LDADD = $(FUZZING_LIBS)
  100. src_test_fuzz_fuzz_microdesc_SOURCES = \
  101. src/test/fuzz/fuzzing_common.c \
  102. src/test/fuzz/fuzz_microdesc.c
  103. src_test_fuzz_fuzz_microdesc_CPPFLAGS = $(FUZZING_CPPFLAGS)
  104. src_test_fuzz_fuzz_microdesc_CFLAGS = $(FUZZING_CFLAGS)
  105. src_test_fuzz_fuzz_microdesc_LDFLAGS = $(FUZZING_LDFLAG)
  106. src_test_fuzz_fuzz_microdesc_LDADD = $(FUZZING_LIBS)
  107. src_test_fuzz_fuzz_vrs_SOURCES = \
  108. src/test/fuzz/fuzzing_common.c \
  109. src/test/fuzz/fuzz_vrs.c
  110. src_test_fuzz_fuzz_vrs_CPPFLAGS = $(FUZZING_CPPFLAGS)
  111. src_test_fuzz_fuzz_vrs_CFLAGS = $(FUZZING_CFLAGS)
  112. src_test_fuzz_fuzz_vrs_LDFLAGS = $(FUZZING_LDFLAG)
  113. src_test_fuzz_fuzz_vrs_LDADD = $(FUZZING_LIBS)
  114. FUZZERS = \
  115. src/test/fuzz/fuzz-consensus \
  116. src/test/fuzz/fuzz-descriptor \
  117. src/test/fuzz/fuzz-diff \
  118. src/test/fuzz/fuzz-diff-apply \
  119. src/test/fuzz/fuzz-extrainfo \
  120. src/test/fuzz/fuzz-hsdescv2 \
  121. src/test/fuzz/fuzz-hsdescv3 \
  122. src/test/fuzz/fuzz-http \
  123. src/test/fuzz/fuzz-http-connect \
  124. src/test/fuzz/fuzz-iptsv2 \
  125. src/test/fuzz/fuzz-microdesc \
  126. src/test/fuzz/fuzz-vrs
  127. # ===== libfuzzer
  128. if LIBFUZZER_ENABLED
  129. src_test_fuzz_lf_fuzz_consensus_SOURCES = \
  130. $(src_test_fuzz_fuzz_consensus_SOURCES)
  131. src_test_fuzz_lf_fuzz_consensus_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  132. src_test_fuzz_lf_fuzz_consensus_CFLAGS = $(LIBFUZZER_CFLAGS)
  133. src_test_fuzz_lf_fuzz_consensus_LDFLAGS = $(LIBFUZZER_LDFLAG)
  134. src_test_fuzz_lf_fuzz_consensus_LDADD = $(LIBFUZZER_LIBS)
  135. src_test_fuzz_lf_fuzz_descriptor_SOURCES = \
  136. $(src_test_fuzz_fuzz_descriptor_SOURCES)
  137. src_test_fuzz_lf_fuzz_descriptor_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  138. src_test_fuzz_lf_fuzz_descriptor_CFLAGS = $(LIBFUZZER_CFLAGS)
  139. src_test_fuzz_lf_fuzz_descriptor_LDFLAGS = $(LIBFUZZER_LDFLAG)
  140. src_test_fuzz_lf_fuzz_descriptor_LDADD = $(LIBFUZZER_LIBS)
  141. src_test_fuzz_lf_fuzz_diff_SOURCES = \
  142. $(src_test_fuzz_fuzz_diff_SOURCES)
  143. src_test_fuzz_lf_fuzz_diff_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  144. src_test_fuzz_lf_fuzz_diff_CFLAGS = $(LIBFUZZER_CFLAGS)
  145. src_test_fuzz_lf_fuzz_diff_LDFLAGS = $(LIBFUZZER_LDFLAG)
  146. src_test_fuzz_lf_fuzz_diff_LDADD = $(LIBFUZZER_LIBS)
  147. src_test_fuzz_lf_fuzz_diff_apply_SOURCES = \
  148. $(src_test_fuzz_fuzz_diff_apply_SOURCES)
  149. src_test_fuzz_lf_fuzz_diff_apply_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  150. src_test_fuzz_lf_fuzz_diff_apply_CFLAGS = $(LIBFUZZER_CFLAGS)
  151. src_test_fuzz_lf_fuzz_diff_apply_LDFLAGS = $(LIBFUZZER_LDFLAG)
  152. src_test_fuzz_lf_fuzz_diff_apply_LDADD = $(LIBFUZZER_LIBS)
  153. src_test_fuzz_lf_fuzz_extrainfo_SOURCES = \
  154. $(src_test_fuzz_fuzz_extrainfo_SOURCES)
  155. src_test_fuzz_lf_fuzz_extrainfo_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  156. src_test_fuzz_lf_fuzz_extrainfo_CFLAGS = $(LIBFUZZER_CFLAGS)
  157. src_test_fuzz_lf_fuzz_extrainfo_LDFLAGS = $(LIBFUZZER_LDFLAG)
  158. src_test_fuzz_lf_fuzz_extrainfo_LDADD = $(LIBFUZZER_LIBS)
  159. src_test_fuzz_lf_fuzz_hsdescv2_SOURCES = \
  160. $(src_test_fuzz_fuzz_hsdescv2_SOURCES)
  161. src_test_fuzz_lf_fuzz_hsdescv2_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  162. src_test_fuzz_lf_fuzz_hsdescv2_CFLAGS = $(LIBFUZZER_CFLAGS)
  163. src_test_fuzz_lf_fuzz_hsdescv2_LDFLAGS = $(LIBFUZZER_LDFLAG)
  164. src_test_fuzz_lf_fuzz_hsdescv2_LDADD = $(LIBFUZZER_LIBS)
  165. src_test_fuzz_lf_fuzz_hsdescv3_SOURCES = \
  166. $(src_test_fuzz_fuzz_hsdescv3_SOURCES)
  167. src_test_fuzz_lf_fuzz_hsdescv3_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  168. src_test_fuzz_lf_fuzz_hsdescv3_CFLAGS = $(LIBFUZZER_CFLAGS)
  169. src_test_fuzz_lf_fuzz_hsdescv3_LDFLAGS = $(LIBFUZZER_LDFLAG)
  170. src_test_fuzz_lf_fuzz_hsdescv3_LDADD = $(LIBFUZZER_LIBS)
  171. src_test_fuzz_lf_fuzz_http_SOURCES = \
  172. $(src_test_fuzz_fuzz_http_SOURCES)
  173. src_test_fuzz_lf_fuzz_http_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  174. src_test_fuzz_lf_fuzz_http_CFLAGS = $(LIBFUZZER_CFLAGS)
  175. src_test_fuzz_lf_fuzz_http_LDFLAGS = $(LIBFUZZER_LDFLAG)
  176. src_test_fuzz_lf_fuzz_http_LDADD = $(LIBFUZZER_LIBS)
  177. src_test_fuzz_lf_fuzz_http_connect_SOURCES = \
  178. $(src_test_fuzz_fuzz_http_connect_SOURCES)
  179. src_test_fuzz_lf_fuzz_http_connect_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  180. src_test_fuzz_lf_fuzz_http_connect_CFLAGS = $(LIBFUZZER_CFLAGS)
  181. src_test_fuzz_lf_fuzz_http_connect_LDFLAGS = $(LIBFUZZER_LDFLAG)
  182. src_test_fuzz_lf_fuzz_http_connect_LDADD = $(LIBFUZZER_LIBS)
  183. src_test_fuzz_lf_fuzz_iptsv2_SOURCES = \
  184. $(src_test_fuzz_fuzz_iptsv2_SOURCES)
  185. src_test_fuzz_lf_fuzz_iptsv2_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  186. src_test_fuzz_lf_fuzz_iptsv2_CFLAGS = $(LIBFUZZER_CFLAGS)
  187. src_test_fuzz_lf_fuzz_iptsv2_LDFLAGS = $(LIBFUZZER_LDFLAG)
  188. src_test_fuzz_lf_fuzz_iptsv2_LDADD = $(LIBFUZZER_LIBS)
  189. src_test_fuzz_lf_fuzz_microdesc_SOURCES = \
  190. $(src_test_fuzz_fuzz_microdesc_SOURCES)
  191. src_test_fuzz_lf_fuzz_microdesc_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  192. src_test_fuzz_lf_fuzz_microdesc_CFLAGS = $(LIBFUZZER_CFLAGS)
  193. src_test_fuzz_lf_fuzz_microdesc_LDFLAGS = $(LIBFUZZER_LDFLAG)
  194. src_test_fuzz_lf_fuzz_microdesc_LDADD = $(LIBFUZZER_LIBS)
  195. src_test_fuzz_lf_fuzz_vrs_SOURCES = \
  196. $(src_test_fuzz_fuzz_vrs_SOURCES)
  197. src_test_fuzz_lf_fuzz_vrs_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  198. src_test_fuzz_lf_fuzz_vrs_CFLAGS = $(LIBFUZZER_CFLAGS)
  199. src_test_fuzz_lf_fuzz_vrs_LDFLAGS = $(LIBFUZZER_LDFLAG)
  200. src_test_fuzz_lf_fuzz_vrs_LDADD = $(LIBFUZZER_LIBS)
  201. LIBFUZZER_FUZZERS = \
  202. src/test/fuzz/lf-fuzz-consensus \
  203. src/test/fuzz/lf-fuzz-descriptor \
  204. src/test/fuzz/lf-fuzz-diff \
  205. src/test/fuzz/lf-fuzz-diff-apply \
  206. src/test/fuzz/lf-fuzz-extrainfo \
  207. src/test/fuzz/lf-fuzz-hsdescv2 \
  208. src/test/fuzz/lf-fuzz-hsdescv3 \
  209. src/test/fuzz/lf-fuzz-http \
  210. src/test/fuzz/lf-fuzz-http-connect \
  211. src/test/fuzz/lf-fuzz-iptsv2 \
  212. src/test/fuzz/lf-fuzz-microdesc \
  213. src/test/fuzz/lf-fuzz-vrs
  214. else
  215. LIBFUZZER_FUZZERS =
  216. endif
  217. # ===== oss-fuzz
  218. if OSS_FUZZ_ENABLED
  219. src_test_fuzz_liboss_fuzz_consensus_a_SOURCES = \
  220. $(src_test_fuzz_fuzz_consensus_SOURCES)
  221. src_test_fuzz_liboss_fuzz_consensus_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  222. src_test_fuzz_liboss_fuzz_consensus_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  223. src_test_fuzz_liboss_fuzz_descriptor_a_SOURCES = \
  224. $(src_test_fuzz_fuzz_descriptor_SOURCES)
  225. src_test_fuzz_liboss_fuzz_descriptor_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  226. src_test_fuzz_liboss_fuzz_descriptor_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  227. src_test_fuzz_liboss_fuzz_diff_a_SOURCES = \
  228. $(src_test_fuzz_fuzz_diff_SOURCES)
  229. src_test_fuzz_liboss_fuzz_diff_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  230. src_test_fuzz_liboss_fuzz_diff_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  231. src_test_fuzz_liboss_fuzz_diff_apply_a_SOURCES = \
  232. $(src_test_fuzz_fuzz_diff_apply_SOURCES)
  233. src_test_fuzz_liboss_fuzz_diff_apply_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  234. src_test_fuzz_liboss_fuzz_diff_apply_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  235. src_test_fuzz_liboss_fuzz_extrainfo_a_SOURCES = \
  236. $(src_test_fuzz_fuzz_extrainfo_SOURCES)
  237. src_test_fuzz_liboss_fuzz_extrainfo_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  238. src_test_fuzz_liboss_fuzz_extrainfo_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  239. src_test_fuzz_liboss_fuzz_hsdescv2_a_SOURCES = \
  240. $(src_test_fuzz_fuzz_hsdescv2_SOURCES)
  241. src_test_fuzz_liboss_fuzz_hsdescv2_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  242. src_test_fuzz_liboss_fuzz_hsdescv2_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  243. src_test_fuzz_liboss_fuzz_hsdescv3_a_SOURCES = \
  244. $(src_test_fuzz_fuzz_hsdescv3_SOURCES)
  245. src_test_fuzz_liboss_fuzz_hsdescv3_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  246. src_test_fuzz_liboss_fuzz_hsdescv3_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  247. src_test_fuzz_liboss_fuzz_http_a_SOURCES = \
  248. $(src_test_fuzz_fuzz_http_SOURCES)
  249. src_test_fuzz_liboss_fuzz_http_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  250. src_test_fuzz_liboss_fuzz_http_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  251. src_test_fuzz_liboss_fuzz_http_connect_a_SOURCES = \
  252. $(src_test_fuzz_fuzz_http_connect_SOURCES)
  253. src_test_fuzz_liboss_fuzz_http_connect_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  254. src_test_fuzz_liboss_fuzz_http_connect_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  255. src_test_fuzz_liboss_fuzz_iptsv2_a_SOURCES = \
  256. $(src_test_fuzz_fuzz_iptsv2_SOURCES)
  257. src_test_fuzz_liboss_fuzz_iptsv2_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  258. src_test_fuzz_liboss_fuzz_iptsv2_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  259. src_test_fuzz_liboss_fuzz_microdesc_a_SOURCES = \
  260. $(src_test_fuzz_fuzz_microdesc_SOURCES)
  261. src_test_fuzz_liboss_fuzz_microdesc_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  262. src_test_fuzz_liboss_fuzz_microdesc_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  263. src_test_fuzz_liboss_fuzz_vrs_a_SOURCES = \
  264. $(src_test_fuzz_fuzz_vrs_SOURCES)
  265. src_test_fuzz_liboss_fuzz_vrs_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  266. src_test_fuzz_liboss_fuzz_vrs_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  267. OSS_FUZZ_FUZZERS = \
  268. src/test/fuzz/liboss-fuzz-consensus.a \
  269. src/test/fuzz/liboss-fuzz-descriptor.a \
  270. src/test/fuzz/liboss-fuzz-diff.a \
  271. src/test/fuzz/liboss-fuzz-diff-apply.a \
  272. src/test/fuzz/liboss-fuzz-extrainfo.a \
  273. src/test/fuzz/liboss-fuzz-hsdescv2.a \
  274. src/test/fuzz/liboss-fuzz-hsdescv3.a \
  275. src/test/fuzz/liboss-fuzz-http.a \
  276. src/test/fuzz/liboss-fuzz-http-connect.a \
  277. src/test/fuzz/liboss-fuzz-iptsv2.a \
  278. src/test/fuzz/liboss-fuzz-microdesc.a \
  279. src/test/fuzz/liboss-fuzz-vrs.a
  280. else
  281. OSS_FUZZ_FUZZERS =
  282. endif
  283. noinst_PROGRAMS += $(FUZZERS) $(LIBFUZZER_FUZZERS)
  284. noinst_LIBRARIES += $(OSS_FUZZ_FUZZERS)
  285. oss-fuzz-fuzzers: oss-fuzz-prereqs $(OSS_FUZZ_FUZZERS)
  286. fuzzers: $(FUZZERS) $(LIBFUZZER_FUZZERS)
  287. test-fuzz-corpora: $(FUZZERS)
  288. $(top_srcdir)/src/test/fuzz_static_testcases.sh