Adds support to afl fuzzer in the build system

This commit is contained in:
Felipe Zimmerle
2015-12-22 19:21:57 -03:00
parent 7cebc632e4
commit c2d9a153cb
7 changed files with 370 additions and 6 deletions

View File

@@ -1,7 +1,13 @@
if AFL_FUZZER
export MAYBE_AFL_FUZZER = fuzzer
endif
SUBDIRS = \
benchmark
benchmark \
$(MAYBE_AFL_FUZZER)
# make clean
CLEANFILES =
@@ -11,7 +17,6 @@ MAINTAINERCLEANFILES = \
Makefile.in
bin_PROGRAMS = unit-tests regression-tests rules-optimization
@@ -39,6 +44,7 @@ unit_tests_CPPFLAGS = \
$(CURL_CFLAGS) \
$(MODSEC_NO_LOGS) \
$(GEOIP_CFLAGS) \
$(GLOBAL_CPPFLAGS) \
$(PCRE_CFLAGS) \
$(YAJL_CFLAGS)
@@ -68,6 +74,7 @@ regression_tests_CPPFLAGS = \
$(CURL_CFLAGS) \
$(MODSEC_NO_LOGS) \
$(GEOIP_CFLAGS) \
$(GLOBAL_CPPFLAGS) \
$(PCRE_CFLAGS) \
$(YAJL_CFLAGS)
@@ -95,5 +102,7 @@ rules_optimization_CPPFLAGS = \
$(CURL_CFLAGS) \
$(MODSEC_NO_LOGS) \
$(GEOIP_CFLAGS) \
$(GLOBAL_CPPFLAGS) \
$(PCRE_CFLAGS) \
$(YAJL_CFLAGS)