Makefile.am 579 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 11
FUZZERS = \
	packet_libfuzzer
12

13
check_PROGRAMS = $(FUZZERS)
14

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

18 19 20 21 22 23 24
if SANITIZE_FUZZER
packet_libfuzzer_LDFLAGS = -fsanitize=fuzzer
else
packet_libfuzzer_SOURCES += main.c
AM_CPPFLAGS += -DTEST_RUN
TESTS = $(FUZZERS)
endif