aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.bench.include
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-01 21:42:22 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-02 18:11:15 +0100
commit3d60a03a7cfb2d46b5f10633e9f6a9a36b8cb76f (patch)
treec9331766a3fa5b11dba590a0f968f36472e6a1c0 /src/Makefile.bench.include
parent3077f11dadffbc8f2575449fc0177c91a9c3e046 (diff)
bench: Move generated data to a dedicated translation unit
Diffstat (limited to 'src/Makefile.bench.include')
-rw-r--r--src/Makefile.bench.include6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.bench.include b/src/Makefile.bench.include
index c6162b5caa..1b01b50b07 100644
--- a/src/Makefile.bench.include
+++ b/src/Makefile.bench.include
@@ -18,6 +18,8 @@ bench_bench_bitcoin_SOURCES = \
bench/block_assemble.cpp \
bench/checkblock.cpp \
bench/checkqueue.cpp \
+ bench/data.h \
+ bench/data.cpp \
bench/duplicate_inputs.cpp \
bench/examples.cpp \
bench/rollingbloom.cpp \
@@ -76,7 +78,7 @@ CLEAN_BITCOIN_BENCH = bench/*.gcda bench/*.gcno $(GENERATED_BENCH_FILES)
CLEANFILES += $(CLEAN_BITCOIN_BENCH)
-bench/checkblock.cpp: bench/data/block413567.raw.h
+bench/data.cpp: bench/data/block413567.raw.h
bitcoin_bench: $(BENCH_BINARY)
@@ -89,7 +91,7 @@ bitcoin_bench_clean : FORCE
%.raw.h: %.raw
@$(MKDIR_P) $(@D)
@{ \
- echo "static unsigned const char $(*F)[] = {" && \
+ echo "static unsigned const char $(*F)_raw[] = {" && \
$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \
echo "};"; \
} > "$@.new" && mv -f "$@.new" "$@"