2016-12-14 01:15:26 +01:00
|
|
|
|
|
|
|
FUZZING_CPPFLAGS = \
|
|
|
|
$(src_test_AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
|
|
|
FUZZING_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) $(TEST_CFLAGS)
|
|
|
|
FUZZING_LDFLAG = \
|
|
|
|
@TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
|
|
|
|
FUZZING_LIBS = \
|
|
|
|
src/or/libtor-testing.a \
|
|
|
|
src/common/libor-crypto-testing.a \
|
|
|
|
$(LIBKECCAK_TINY) \
|
|
|
|
$(LIBDONNA) \
|
|
|
|
src/common/libor-testing.a \
|
|
|
|
src/common/libor-ctime-testing.a \
|
|
|
|
src/common/libor-event-testing.a \
|
|
|
|
src/trunnel/libor-trunnel-testing.a \
|
|
|
|
@TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ \
|
|
|
|
@TOR_LIBEVENT_LIBS@ \
|
|
|
|
@TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \
|
|
|
|
@TOR_SYSTEMD_LIBS@
|
|
|
|
|
|
|
|
|
|
|
|
noinst_HEADERS += \
|
2016-12-14 01:41:03 +01:00
|
|
|
src/test/fuzz/fuzzing.h
|
2016-12-14 01:15:26 +01:00
|
|
|
|
|
|
|
src_test_fuzz_fuzz_descriptor_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_descriptor.c
|
|
|
|
src_test_fuzz_fuzz_descriptor_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_descriptor_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_descriptor_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_descriptor_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
|
|
|
src_test_fuzz_fuzz_http_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_http.c
|
|
|
|
src_test_fuzz_fuzz_http_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_http_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_http_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_http_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2016-12-14 16:05:41 +01:00
|
|
|
src_test_fuzz_fuzz_extrainfo_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_extrainfo.c
|
|
|
|
src_test_fuzz_fuzz_extrainfo_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_extrainfo_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_extrainfo_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_extrainfo_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2016-12-14 01:15:26 +01:00
|
|
|
FUZZERS = \
|
|
|
|
src/test/fuzz/fuzz-descriptor \
|
2016-12-14 16:05:41 +01:00
|
|
|
src/test/fuzz/fuzz-extrainfo \
|
2016-12-14 01:15:26 +01:00
|
|
|
src/test/fuzz/fuzz-http
|
|
|
|
|
2016-12-14 21:57:22 +01:00
|
|
|
noinst_PROGRAMS += $(FUZZERS)
|
2016-12-14 01:15:26 +01:00
|
|
|
fuzzers: $(FUZZERS)
|
2016-12-14 21:57:22 +01:00
|
|
|
|
|
|
|
|