Makefile.am 807 Bytes
Newer Older
1
AM_CPPFLAGS = \
2 3 4
	-include $(top_builddir)/src/config.h	\
	-I$(top_srcdir)/src			\
	-I$(top_srcdir)/src/dnssec/lib		\
5 6 7 8
	-DCONFIG_DIR='"${config_dir}"'          \
	-DSTORAGE_DIR='"${storage_dir}"'        \
	-DRUN_DIR='"${run_dir}"'		\
	-DSRCDIR=\"$(abs_srcdir)\"
9

10
FUZZERS = \
11 12
	packet_libfuzzer	\
	zscanner_libfuzzer
13

14
check_PROGRAMS = $(FUZZERS)
15

16 17
packet_libfuzzer_SOURCES = packet_libfuzzer.c
packet_libfuzzer_LDADD = $(top_builddir)/src/libknot.la
18

19 20 21
zscanner_libfuzzer_SOURCES = zscanner_libfuzzer.c
zscanner_libfuzzer_LDADD = $(top_builddir)/src/zscanner/libzscanner.la

22 23
if SANITIZE_FUZZER
packet_libfuzzer_LDFLAGS = -fsanitize=fuzzer
24
zscanner_libfuzzer_LDFLAGS = -fsanitize=fuzzer
25 26
else
packet_libfuzzer_SOURCES += main.c
27
zscanner_libfuzzer_SOURCES += main.c
28 29 30
AM_CPPFLAGS += -DTEST_RUN
TESTS = $(FUZZERS)
endif