1 ACLOCAL_AMFLAGS = -I build-aux/m4
11 pkgconfigdir = $(libdir)/pkgconfig
12 pkgconfig_DATA = libzcashconsensus.pc
15 BITCOIND_BIN=$(top_builddir)/src/$(BITCOIN_DAEMON_NAME)$(EXEEXT)
16 BITCOIN_CLI_BIN=$(top_builddir)/src/$(BITCOIN_CLI_NAME)$(EXEEXT)
18 DIST_DOCS = $(wildcard doc/*.md) $(wildcard doc/release-notes/*.md)
20 BIN_CHECKS=$(top_srcdir)/contrib/devtools/symbol-check.py \
21 $(top_srcdir)/contrib/devtools/security-check.py
23 COVERAGE_INFO = baseline_filtered_combined.info baseline.info \
24 leveldb_baseline.info test_bitcoin_filtered.info total_coverage.info \
25 baseline_filtered.info \
26 leveldb_baseline_filtered.info test_bitcoin_coverage.info test_bitcoin.info \
27 zcash-gtest.info zcash-gtest_filtered.info zcash-gtest_coverage.info
30 -$(MAKE) -C $(top_distdir)/src/leveldb clean
31 -$(MAKE) -C $(top_distdir)/src/secp256k1 distclean
32 -$(GIT) archive --format=tar HEAD -- src/clientversion.cpp | $(AMTAR) -C $(top_distdir) -xf -
35 $(MKDIR_P) $(top_distdir)/_build/src/leveldb
36 cp -rf $(top_srcdir)/src/leveldb/* $(top_distdir)/_build/src/leveldb/
37 -$(MAKE) -C $(top_distdir)/_build/src/leveldb clean
42 $(if $(findstring src/,$(MAKECMDGOALS)),$(MAKECMDGOALS), none): FORCE
43 $(MAKE) -C src $(patsubst src/%,%,$@)
45 $(BITCOIND_BIN): FORCE
48 $(BITCOIN_CLI_BIN): FORCE
54 $(LCOV) -c -i -d $(abs_builddir)/src -o $@
56 baseline_filtered.info: baseline.info
57 $(LCOV) -r $< "/usr/include/*" \
58 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/*.h" \
59 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/boost/*" \
60 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/gmock/*" \
61 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/gtest/*" \
62 "$(abs_builddir)/src/gtest/*" \
63 "$(abs_builddir)/src/test/*" \
64 "$(abs_builddir)/src/wallet/gtest/*" \
65 "$(abs_builddir)/src/wallet/test/*" \
68 leveldb_baseline.info: baseline_filtered.info
69 $(LCOV) -c -i -d $(abs_builddir)/src/leveldb -b $(abs_builddir)/src/leveldb -o $@
71 leveldb_baseline_filtered.info: leveldb_baseline.info
72 $(LCOV) -r $< "/usr/include/*" \
73 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/*.h" \
74 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/boost/*" \
75 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/gmock/*" \
76 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/gtest/*" \
77 "$(abs_builddir)/src/gtest/*" \
78 "$(abs_builddir)/src/test/*" \
79 "$(abs_builddir)/src/wallet/gtest/*" \
80 "$(abs_builddir)/src/wallet/test/*" \
83 baseline_filtered_combined.info: leveldb_baseline_filtered.info baseline_filtered.info
84 $(LCOV) -a leveldb_baseline_filtered.info -a baseline_filtered.info -o $@
86 test_bitcoin.info: baseline_filtered_combined.info
87 $(MAKE) -C src/ bitcoin_test_check
88 $(LCOV) -c -d $(abs_builddir)/src -t test_bitcoin -o $@
89 $(LCOV) -z -d $(abs_builddir)/src
90 $(LCOV) -z -d $(abs_builddir)/src/leveldb
92 test_bitcoin_filtered.info: test_bitcoin.info
93 $(LCOV) -r $< "/usr/include/*" \
94 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/*.h" \
95 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/boost/*" \
96 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/gmock/*" \
97 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/gtest/*" \
98 "$(abs_builddir)/src/gtest/*" \
99 "$(abs_builddir)/src/test/*" \
100 "$(abs_builddir)/src/wallet/gtest/*" \
101 "$(abs_builddir)/src/wallet/test/*" \
104 zcash-gtest.info: baseline_filtered_combined.info
105 $(MAKE) -C src/ zcash-gtest_check
106 $(LCOV) -c -d $(abs_builddir)/src -t zcash-gtest -o $@
107 $(LCOV) -z -d $(abs_builddir)/src
108 $(LCOV) -z -d $(abs_builddir)/src/leveldb
110 zcash-gtest_filtered.info: zcash-gtest.info
111 $(LCOV) -r $< "/usr/include/*" \
112 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/*.h" \
113 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/boost/*" \
114 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/gmock/*" \
115 "$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/gtest/*" \
116 "$(abs_builddir)/src/gtest/*" \
117 "$(abs_builddir)/src/test/*" \
118 "$(abs_builddir)/src/wallet/gtest/*" \
119 "$(abs_builddir)/src/wallet/test/*" \
122 test_bitcoin_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info
123 $(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -o $@
125 zcash-gtest_coverage.info: baseline_filtered_combined.info zcash-gtest_filtered.info
126 $(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a zcash-gtest_filtered.info -o $@
128 total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info zcash-gtest_filtered.info
129 $(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -a zcash-gtest_filtered.info -o $@ | $(GREP) "\%" | $(AWK) '{ print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
131 test_bitcoin.coverage/.dirstamp: test_bitcoin_coverage.info
132 $(GENHTML) -s $< -o $(@D)
135 zcash-gtest.coverage/.dirstamp: zcash-gtest_coverage.info
136 $(GENHTML) -s $< -o $(@D)
139 cov-zcash: zcash-gtest.coverage/.dirstamp
141 total.coverage/.dirstamp: total_coverage.info
142 $(GENHTML) -s $< -o $(@D)
145 cov: test_bitcoin.coverage/.dirstamp cov-zcash total.coverage/.dirstamp
149 dist_bin_SCRIPTS = zcutil/fetch-params.sh
150 dist_noinst_SCRIPTS = autogen.sh zcutil/build-debian-package.sh zcutil/build.sh
152 EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.sh qa/pull-tester/run-bitcoin-cli qa/rpc-tests qa/zcash $(DIST_DOCS) $(BIN_CHECKS)
155 mv $(DESTDIR)$(bindir)/fetch-params.sh $(DESTDIR)$(bindir)/zcash-fetch-params
157 .INTERMEDIATE: $(COVERAGE_INFO)
159 DISTCHECK_CONFIGURE_FLAGS = --enable-man
162 rm -rf test_bitcoin.coverage/ zcash-gtest.coverage/ total.coverage/