diff options
author | Philippe Antoine <contact@catenacyber.fr> | 2020-01-13 16:49:32 +0100 |
---|---|---|
committer | Philippe Antoine <contact@catenacyber.fr> | 2020-01-14 08:20:15 +0100 |
commit | 10738a0ca334104377e19a1e683bd13f2451a9e2 (patch) | |
tree | c08d6711a8e434ff03c1780685841b8eafeb09d8 /fuzz/Makefile.am | |
parent | fe312ffbe153a3ce16264d68f19bdb164ed57a5c (diff) |
New fuzz target : fuzz_ndpi_reader
Diffstat (limited to 'fuzz/Makefile.am')
-rw-r--r-- | fuzz/Makefile.am | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am index 10b4e593c..d85dbac15 100644 --- a/fuzz/Makefile.am +++ b/fuzz/Makefile.am @@ -1,13 +1,26 @@ -bin_PROGRAMS = fuzz_process_packet +bin_PROGRAMS = fuzz_process_packet fuzz_ndpi_reader fuzz_process_packet_SOURCES = fuzz_process_packet.c fuzz_process_packet_LDFLAGS = ../src/lib/libndpi.a if HAS_FUZZLDFLAGS fuzz_process_packet_LDFLAGS += $(LIB_FUZZING_ENGINE) else - fuzz_process_packet_SOURCES += # onefile.c + fuzz_process_packet_SOURCES += onefile.c endif # force usage of CXX for linker fuzz_process_packet_LINK=$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CXXFLAGS) $(CXXFLAGS) \ $(fuzz_process_packet_LDFLAGS) $(LDFLAGS) -o $@ + +fuzz_ndpi_reader_SOURCES = fuzz_ndpi_reader.c +fuzz_ndpi_reader_CFLAGS = -I../example/ +fuzz_ndpi_reader_LDFLAGS = ../example/libndpiReader.a ../src/lib/libndpi.a $(PCAP_LIB) +if HAS_FUZZLDFLAGS + fuzz_ndpi_reader_LDFLAGS += $(LIB_FUZZING_ENGINE) +else + fuzz_ndpi_reader_SOURCES += onefile.c +endif +# force usage of CXX for linker +fuzz_ndpi_reader_LINK=$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CXXFLAGS) $(CXXFLAGS) \ + $(fuzz_ndpi_reader_LDFLAGS) $(LDFLAGS) -o $@ |