[tests] Add -blocknotify functional test
[bitcoinplatinum.git] / src / Makefile.bench.include
blob8e2e587d3207c99d801da6acda66f3a17e52d703
1 # Copyright (c) 2015-2016 The Bitcoin Core developers
2 # Distributed under the MIT software license, see the accompanying
3 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 bin_PROGRAMS += bench/bench_bitcoin
6 BENCH_SRCDIR = bench
7 BENCH_BINARY = bench/bench_bitcoin$(EXEEXT)
9 RAW_BENCH_FILES = \
10   bench/data/block413567.raw
11 GENERATED_BENCH_FILES = $(RAW_BENCH_FILES:.raw=.raw.h)
13 bench_bench_bitcoin_SOURCES = \
14   $(RAW_BENCH_FILES) \
15   bench/bench_bitcoin.cpp \
16   bench/bench.cpp \
17   bench/bench.h \
18   bench/checkblock.cpp \
19   bench/checkqueue.cpp \
20   bench/Examples.cpp \
21   bench/rollingbloom.cpp \
22   bench/crypto_hash.cpp \
23   bench/ccoins_caching.cpp \
24   bench/mempool_eviction.cpp \
25   bench/verify_script.cpp \
26   bench/base58.cpp \
27   bench/lockedpool.cpp \
28   bench/perf.cpp \
29   bench/perf.h \
30   bench/prevector_destructor.cpp
32 nodist_bench_bench_bitcoin_SOURCES = $(GENERATED_BENCH_FILES)
34 bench_bench_bitcoin_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(EVENT_CLFAGS) $(EVENT_PTHREADS_CFLAGS) -I$(builddir)/bench/
35 bench_bench_bitcoin_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
36 bench_bench_bitcoin_LDADD = \
37   $(LIBBITCOIN_SERVER) \
38   $(LIBBITCOIN_COMMON) \
39   $(LIBBITCOIN_UTIL) \
40   $(LIBBITCOIN_CONSENSUS) \
41   $(LIBBITCOIN_CRYPTO) \
42   $(LIBLEVELDB) \
43   $(LIBLEVELDB_SSE42) \
44   $(LIBMEMENV) \
45   $(LIBSECP256K1) \
46   $(LIBUNIVALUE)
48 if ENABLE_ZMQ
49 bench_bench_bitcoin_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
50 endif
52 if ENABLE_WALLET
53 bench_bench_bitcoin_SOURCES += bench/coin_selection.cpp
54 bench_bench_bitcoin_LDADD += $(LIBBITCOIN_WALLET) $(LIBBITCOIN_CRYPTO)
55 endif
57 bench_bench_bitcoin_LDADD += $(BOOST_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
58 bench_bench_bitcoin_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
60 CLEAN_BITCOIN_BENCH = bench/*.gcda bench/*.gcno $(GENERATED_BENCH_FILES)
62 CLEANFILES += $(CLEAN_BITCOIN_BENCH)
64 bench/checkblock.cpp: bench/data/block413567.raw.h
66 bitcoin_bench: $(BENCH_BINARY)
68 bench: $(BENCH_BINARY) FORCE
69         $(BENCH_BINARY)
71 bitcoin_bench_clean : FORCE
72         rm -f $(CLEAN_BITCOIN_BENCH) $(bench_bench_bitcoin_OBJECTS) $(BENCH_BINARY)
74 %.raw.h: %.raw
75         @$(MKDIR_P) $(@D)
76         @{ \
77          echo "static unsigned const char $(*F)[] = {" && \
78          $(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x  ,//g' && \
79          echo "};"; \
80         } > "$@.new" && mv -f "$@.new" "$@"
81         @echo "Generated $@"