diff options
author | Philippe Antoine <contact@catenacyber.fr> | 2019-10-31 08:24:54 +0100 |
---|---|---|
committer | Philippe Antoine <contact@catenacyber.fr> | 2019-10-31 08:37:42 +0100 |
commit | 148506ede87bbbcf8c475c9652c2b7e1b11ecc3a (patch) | |
tree | 446ca207563651f47187407c84c2cd39a179b825 /fuzz/Makefile.am | |
parent | 1cd7cf99902b269f7e82e7f4bcbba978868bee59 (diff) |
Adds fuzz target
And configur option enable-fuzztargets
Diffstat (limited to 'fuzz/Makefile.am')
-rw-r--r-- | fuzz/Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
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 $@ |