aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.test_fuzz.include
diff options
context:
space:
mode:
authorHarris <brakmic@gmail.com>2020-04-05 01:01:13 +0200
committerHarris <brakmic@gmail.com>2020-04-05 01:01:13 +0200
commit691e2a7af796c09b85423b45af54e354cd9c1e92 (patch)
treefb7ffc48ed36d444bbbbe31d1ba2b269188c30ba /src/Makefile.test_fuzz.include
parent483007749426a1f51ea591eaac383f19fdde9efb (diff)
downloadbitcoin-691e2a7af796c09b85423b45af54e354cd9c1e92.tar.xz
build: create test_fuzz library from src/test/fuzz/fuzz.cpp
Diffstat (limited to 'src/Makefile.test_fuzz.include')
-rw-r--r--src/Makefile.test_fuzz.include24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Makefile.test_fuzz.include b/src/Makefile.test_fuzz.include
new file mode 100644
index 0000000000..4e858979fe
--- /dev/null
+++ b/src/Makefile.test_fuzz.include
@@ -0,0 +1,24 @@
+# Copyright (c) 2013-2020 The Bitcoin Core developers
+# Distributed under the MIT software license, see the accompanying
+# file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+LIBTEST_FUZZ=libtest_fuzz.a
+
+EXTRA_LIBRARIES += \
+ $(LIBTEST_FUZZ)
+
+TEST_FUZZ_H = \
+ test/fuzz/fuzz.h \
+ test/fuzz/FuzzedDataProvider.h \
+ test/fuzz/util.h
+
+libtest_fuzz_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAGS) $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)
+libtest_fuzz_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
+libtest_fuzz_a_SOURCES = \
+ test/fuzz/fuzz.cpp \
+ $(TEST_FUZZ_H)
+
+LIBTEST_FUZZ += $(LIBBITCOIN_SERVER)
+LIBTEST_FUZZ += $(LIBBITCOIN_COMMON)
+LIBTEST_FUZZ += $(LIBBITCOIN_UTIL)
+LIBTEST_FUZZ += $(LIBBITCOIN_CRYPTO_BASE)