aboutsummaryrefslogtreecommitdiff
path: root/fuzz/Makefile.am
blob: 4693d4076113da8e8d6dcf37876f85b3570dcd66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 $@