From 148506ede87bbbcf8c475c9652c2b7e1b11ecc3a Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 31 Oct 2019 08:24:54 +0100 Subject: Adds fuzz target And configur option enable-fuzztargets --- fuzz/Makefile.am | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fuzz/Makefile.am (limited to 'fuzz/Makefile.am') diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am new file mode 100644 index 000000000..4693d4076 --- /dev/null +++ b/fuzz/Makefile.am @@ -0,0 +1,13 @@ +bin_PROGRAMS = fuzz_process_packet + +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 +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 $@ -- cgit v1.2.3