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)
|
|
|
|
|
|
|
|
FUZZERS = \
|
|
|
|
src/test/fuzz/fuzz-descriptor \
|
|
|
|
src/test/fuzz/fuzz-http
|
|
|
|
|
|
|
|
# The fuzzers aren't built by default right now. That should change.
|
|
|
|
EXTRA_PROGRAMS += $(FUZZERS)
|
|
|
|
fuzzers: $(FUZZERS)
|