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

37
test/fuzzer/Makefile.am Normal file
View File

@@ -0,0 +1,37 @@
# make clean
CLEANFILES =
# make maintainer-clean
MAINTAINERCLEANFILES = \
Makefile.in
bin_PROGRAMS = afl_fuzzer
afl_fuzzer_SOURCES = \
afl_fuzzer.cc
afl_fuzzer_LDADD = \
$(GLOBAL_LDADD) \
$(top_builddir)/src/.libs/libmodsecurity.a \
$(CURL_LDADD) \
$(GEOIP_LDFLAGS) $(GEOIP_LDADD) \
$(PCRE_LDADD) \
$(YAJL_LDFLAGS) $(YAJL_LDADD)
afl_fuzzer_CPPFLAGS = \
-std=c++11 \
-Icommon \
-I../ \
-O0 \
-g \
-I$(top_builddir)/headers \
$(CURL_CFLAGS) \
$(MODSEC_NO_LOGS) \
$(GEOIP_CFLAGS) \
$(GLOBAL_CPPFLAGS) \
$(PCRE_CFLAGS) \
$(YAJL_CFLAGS)