b2135359b3
7a49cac Merge #410: Add string.h include to ecmult_impl 0bbd5d4 Add string.h include to ecmult_impl c5b32e1 Merge #405: Make secp256k1_fe_sqrt constant time 926836a Make secp256k1_fe_sqrt constant time e2a8e92 Merge #404: Replace 3M + 4S doubling formula with 2M + 5S one 8ec49d8 Add note about 2M + 5S doubling formula 5a91bd7 Merge #400: A couple minor cleanups ac01378 build: add -DSECP256K1_BUILD to benchmark_internal build flags a6c6f99 Remove a bunch of unused stdlib #includes 65285a6 Merge #403: configure: add flag to disable OpenSSL tests a9b2a5d configure: add flag to disable OpenSSL tests b340123 Merge #402: Add support for testing quadratic residues e6e9805 Add function for testing quadratic residue field/group elements. efd953a Add Jacobi symbol test via GMP fa36a0d Merge #401: ecmult_const: unify endomorphism and non-endomorphism skew cases c6191fd ecmult_const: unify endomorphism and non-endomorphism skew cases 0b3e618 Merge #378: .gitignore build-aux cleanup 6042217 Merge #384: JNI: align shared files copyright/comments to bitcoinj's 24ad20f Merge #399: build: verify that the native compiler works for static precomp b3be852 Merge #398: Test whether ECDH and Schnorr are enabled for JNI aa0b1fd build: verify that the native compiler works for static precomp eee808d Test whether ECDH and Schnorr are enabled for JNI 7b0fb18 Merge #366: ARM assembly implementation of field_10x26 inner (rebase of #173) 001f176 ARM assembly implementation of field_10x26 inner 0172be9 Merge #397: Small fixes for sha256 3f8b78e Fix undefs in hash_impl.h 2ab4695 Fix state size in sha256 struct 6875b01 Merge #386: Add some missing `VERIFY_CHECK(ctx != NULL)` 2c52b5d Merge #389: Cast pointers through uintptr_t under JNI 43097a4 Merge #390: Update bitcoin-core GitHub links 31c9c12 Merge #391: JNI: Only call ecdsa_verify if its inputs parsed correctly 1cb2302 Merge #392: Add testcase which hits additional branch in secp256k1_scalar_sqr d2ee340 Merge #388: bench_ecdh: fix call to secp256k1_context_create 093a497 Add testcase which hits additional branch in secp256k1_scalar_sqr a40c701 JNI: Only call ecdsa_verify if its inputs parsed correctly faa2a11 Update bitcoin-core GitHub links 47b9e78 Cast pointers through uintptr_t under JNI f36f9c6 bench_ecdh: fix call to secp256k1_context_create bcc4881 Add some missing `VERIFY_CHECK(ctx != NULL)` for functions that use `ARG_CHECK` 6ceea2c align shared files copyright/comments to bitcoinj's 70141a8 Update .gitignore 7b549b1 Merge #373: build: fix x86_64 asm detection for some compilers bc7c93c Merge #374: Add note about y=0 being possible on one of the sextic twists e457018 Merge #364: JNI rebased 86e2d07 JNI library: cleanup, removed unimplemented code 3093576a JNI library bd2895f Merge pull request #371 e72e93a Add note about y=0 being possible on one of the sextic twists 3f8fdfb build: fix x86_64 asm detection for some compilers e5a9047 [Trivial] Remove double semicolons c18b869 Merge pull request #360 3026daa Merge pull request #302 03d4611 Add sage verification script for the group laws a965937 Merge pull request #361 83221ec Add experimental features to configure 5d4c5a3 Prevent damage_array in the signature test from going out of bounds. 419bf7f Merge pull request #356 03d84a4 Benchmark against OpenSSL verification git-subtree-dir: src/secp256k1 git-subtree-split: 7a49cacd3937311fcb1cb36b6ba3336fca811991
234 lines
8.5 KiB
Makefile
234 lines
8.5 KiB
Makefile
ACLOCAL_AMFLAGS = -I build-aux/m4
|
|
SUBDIRS = src
|
|
.PHONY: deploy FORCE
|
|
|
|
GZIP_ENV="-9n"
|
|
export PYTHONPATH
|
|
|
|
if BUILD_BITCOIN_LIBS
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = libbitcoinconsensus.pc
|
|
endif
|
|
|
|
BITCOIND_BIN=$(top_builddir)/src/$(BITCOIN_DAEMON_NAME)$(EXEEXT)
|
|
BITCOIN_QT_BIN=$(top_builddir)/src/qt/$(BITCOIN_GUI_NAME)$(EXEEXT)
|
|
BITCOIN_CLI_BIN=$(top_builddir)/src/$(BITCOIN_CLI_NAME)$(EXEEXT)
|
|
BITCOIN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win$(WINDOWS_BITS)-setup$(EXEEXT)
|
|
|
|
empty :=
|
|
space := $(empty) $(empty)
|
|
|
|
OSX_APP=Bitcoin-Qt.app
|
|
OSX_VOLNAME = $(subst $(space),-,$(PACKAGE_NAME))
|
|
OSX_DMG = $(OSX_VOLNAME).dmg
|
|
OSX_BACKGROUND_SVG=background.svg
|
|
OSX_BACKGROUND_IMAGE=background.tiff
|
|
OSX_BACKGROUND_IMAGE_DPIS=36 72
|
|
OSX_DSSTORE_GEN=$(top_srcdir)/contrib/macdeploy/custom_dsstore.py
|
|
OSX_DEPLOY_SCRIPT=$(top_srcdir)/contrib/macdeploy/macdeployqtplus
|
|
OSX_FANCY_PLIST=$(top_srcdir)/contrib/macdeploy/fancy.plist
|
|
OSX_INSTALLER_ICONS=$(top_srcdir)/src/qt/res/icons/bitcoin.icns
|
|
OSX_PLIST=$(top_builddir)/share/qt/Info.plist #not installed
|
|
OSX_QT_TRANSLATIONS = da,de,es,hu,ru,uk,zh_CN,zh_TW
|
|
|
|
DIST_DOCS = $(wildcard doc/*.md) $(wildcard doc/release-notes/*.md)
|
|
|
|
BIN_CHECKS=$(top_srcdir)/contrib/devtools/symbol-check.py \
|
|
$(top_srcdir)/contrib/devtools/security-check.py
|
|
|
|
WINDOWS_PACKAGING = $(top_srcdir)/share/pixmaps/bitcoin.ico \
|
|
$(top_srcdir)/share/pixmaps/nsis-header.bmp \
|
|
$(top_srcdir)/share/pixmaps/nsis-wizard.bmp \
|
|
$(top_srcdir)/doc/README_windows.txt
|
|
|
|
OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) \
|
|
$(top_srcdir)/contrib/macdeploy/$(OSX_BACKGROUND_SVG) \
|
|
$(OSX_DSSTORE_GEN) \
|
|
$(top_srcdir)/contrib/macdeploy/detached-sig-apply.sh \
|
|
$(top_srcdir)/contrib/macdeploy/detached-sig-create.sh
|
|
|
|
COVERAGE_INFO = baseline_filtered_combined.info baseline.info block_test.info \
|
|
leveldb_baseline.info test_bitcoin_filtered.info total_coverage.info \
|
|
baseline_filtered.info block_test_filtered.info rpc_test.info rpc_test_filtered.info \
|
|
leveldb_baseline_filtered.info test_bitcoin_coverage.info test_bitcoin.info
|
|
|
|
dist-hook:
|
|
-$(GIT) archive --format=tar HEAD -- src/clientversion.cpp | $(AMTAR) -C $(top_distdir) -xf -
|
|
|
|
$(BITCOIN_WIN_INSTALLER): all-recursive
|
|
$(MKDIR_P) $(top_builddir)/release
|
|
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIND_BIN) $(top_builddir)/release
|
|
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIN_QT_BIN) $(top_builddir)/release
|
|
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIN_CLI_BIN) $(top_builddir)/release
|
|
@test -f $(MAKENSIS) && $(MAKENSIS) -V2 $(top_builddir)/share/setup.nsi || \
|
|
echo error: could not build $@
|
|
@echo built $@
|
|
|
|
$(if $(findstring src/,$(MAKECMDGOALS)),$(MAKECMDGOALS), none): FORCE
|
|
$(MAKE) -C src $(patsubst src/%,%,$@)
|
|
|
|
$(OSX_APP)/Contents/PkgInfo:
|
|
$(MKDIR_P) $(@D)
|
|
@echo "APPL????" > $@
|
|
|
|
$(OSX_APP)/Contents/Resources/empty.lproj:
|
|
$(MKDIR_P) $(@D)
|
|
@touch $@
|
|
|
|
$(OSX_APP)/Contents/Info.plist: $(OSX_PLIST)
|
|
$(MKDIR_P) $(@D)
|
|
$(INSTALL_DATA) $< $@
|
|
|
|
$(OSX_APP)/Contents/Resources/bitcoin.icns: $(OSX_INSTALLER_ICONS)
|
|
$(MKDIR_P) $(@D)
|
|
$(INSTALL_DATA) $< $@
|
|
|
|
$(OSX_APP)/Contents/MacOS/Bitcoin-Qt: $(BITCOIN_QT_BIN)
|
|
$(MKDIR_P) $(@D)
|
|
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $< $@
|
|
|
|
$(OSX_APP)/Contents/Resources/Base.lproj/InfoPlist.strings:
|
|
$(MKDIR_P) $(@D)
|
|
echo '{ CFBundleDisplayName = "$(PACKAGE_NAME)"; CFBundleName = "$(PACKAGE_NAME)"; }' > $@
|
|
|
|
OSX_APP_BUILT=$(OSX_APP)/Contents/PkgInfo $(OSX_APP)/Contents/Resources/empty.lproj \
|
|
$(OSX_APP)/Contents/Resources/bitcoin.icns $(OSX_APP)/Contents/Info.plist \
|
|
$(OSX_APP)/Contents/MacOS/Bitcoin-Qt $(OSX_APP)/Contents/Resources/Base.lproj/InfoPlist.strings
|
|
|
|
osx_volname:
|
|
echo $(OSX_VOLNAME) >$@
|
|
|
|
if BUILD_DARWIN
|
|
$(OSX_DMG): $(OSX_APP_BUILT) $(OSX_PACKAGING)
|
|
$(PYTHON) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) -add-qt-tr $(OSX_QT_TRANSLATIONS) -translations-dir=$(QT_TRANSLATION_DIR) -dmg -fancy $(OSX_FANCY_PLIST) -verbose 2 -volname $(OSX_VOLNAME)
|
|
|
|
deploydir: $(OSX_DMG)
|
|
else
|
|
APP_DIST_DIR=$(top_builddir)/dist
|
|
APP_DIST_EXTRAS=$(APP_DIST_DIR)/.background/$(OSX_BACKGROUND_IMAGE) $(APP_DIST_DIR)/.DS_Store $(APP_DIST_DIR)/Applications
|
|
|
|
$(APP_DIST_DIR)/Applications:
|
|
@rm -f $@
|
|
@cd $(@D); $(LN_S) /Applications $(@F)
|
|
|
|
$(APP_DIST_EXTRAS): $(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/Bitcoin-Qt
|
|
|
|
$(OSX_DMG): $(APP_DIST_EXTRAS)
|
|
$(GENISOIMAGE) -no-cache-inodes -D -l -probe -V "$(OSX_VOLNAME)" -no-pad -r -dir-mode 0755 -apple -o $@ dist
|
|
|
|
dpi%.$(OSX_BACKGROUND_IMAGE): contrib/macdeploy/$(OSX_BACKGROUND_SVG)
|
|
sed 's/PACKAGE_NAME/$(PACKAGE_NAME)/' < "$<" | $(RSVG_CONVERT) -f png -d $* -p $* | $(IMAGEMAGICK_CONVERT) - $@
|
|
OSX_BACKGROUND_IMAGE_DPIFILES := $(foreach dpi,$(OSX_BACKGROUND_IMAGE_DPIS),dpi$(dpi).$(OSX_BACKGROUND_IMAGE))
|
|
$(APP_DIST_DIR)/.background/$(OSX_BACKGROUND_IMAGE): $(OSX_BACKGROUND_IMAGE_DPIFILES)
|
|
$(MKDIR_P) $(@D)
|
|
$(TIFFCP) -c none $(OSX_BACKGROUND_IMAGE_DPIFILES) $@
|
|
|
|
$(APP_DIST_DIR)/.DS_Store: $(OSX_DSSTORE_GEN)
|
|
$(PYTHON) $< "$@" "$(OSX_VOLNAME)"
|
|
|
|
$(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/Bitcoin-Qt: $(OSX_APP_BUILT) $(OSX_PACKAGING)
|
|
INSTALLNAMETOOL=$(INSTALLNAMETOOL) OTOOL=$(OTOOL) STRIP=$(STRIP) $(PYTHON) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) -translations-dir=$(QT_TRANSLATION_DIR) -add-qt-tr $(OSX_QT_TRANSLATIONS) -verbose 2
|
|
|
|
deploydir: $(APP_DIST_EXTRAS)
|
|
endif
|
|
|
|
if TARGET_DARWIN
|
|
appbundle: $(OSX_APP_BUILT)
|
|
deploy: $(OSX_DMG)
|
|
endif
|
|
if TARGET_WINDOWS
|
|
deploy: $(BITCOIN_WIN_INSTALLER)
|
|
endif
|
|
|
|
$(BITCOIN_QT_BIN): FORCE
|
|
$(MAKE) -C src qt/$(@F)
|
|
|
|
$(BITCOIND_BIN): FORCE
|
|
$(MAKE) -C src $(@F)
|
|
|
|
$(BITCOIN_CLI_BIN): FORCE
|
|
$(MAKE) -C src $(@F)
|
|
|
|
if USE_LCOV
|
|
|
|
baseline.info:
|
|
$(LCOV) -c -i -d $(abs_builddir)/src -o $@
|
|
|
|
baseline_filtered.info: baseline.info
|
|
$(LCOV) -r $< "/usr/include/*" -o $@
|
|
|
|
leveldb_baseline.info: baseline_filtered.info
|
|
$(LCOV) -c -i -d $(abs_builddir)/src/leveldb -b $(abs_builddir)/src/leveldb -o $@
|
|
|
|
leveldb_baseline_filtered.info: leveldb_baseline.info
|
|
$(LCOV) -r $< "/usr/include/*" -o $@
|
|
|
|
baseline_filtered_combined.info: leveldb_baseline_filtered.info baseline_filtered.info
|
|
$(LCOV) -a leveldb_baseline_filtered.info -a baseline_filtered.info -o $@
|
|
|
|
test_bitcoin.info: baseline_filtered_combined.info
|
|
$(MAKE) -C src/ check
|
|
$(LCOV) -c -d $(abs_builddir)/src -t test_bitcoin -o $@
|
|
$(LCOV) -z -d $(abs_builddir)/src
|
|
$(LCOV) -z -d $(abs_builddir)/src/leveldb
|
|
|
|
test_bitcoin_filtered.info: test_bitcoin.info
|
|
$(LCOV) -r $< "/usr/include/*" -o $@
|
|
|
|
block_test.info: test_bitcoin_filtered.info
|
|
$(MKDIR_P) qa/tmp
|
|
-@TIMEOUT=15 qa/pull-tester/run-bitcoind-for-test.sh $(JAVA) -jar $(JAVA_COMPARISON_TOOL) qa/tmp/compTool $(COMPARISON_TOOL_REORG_TESTS)
|
|
$(LCOV) -c -d $(abs_builddir)/src --t BitcoinJBlockTest -o $@
|
|
$(LCOV) -z -d $(abs_builddir)/src
|
|
$(LCOV) -z -d $(abs_builddir)/src/leveldb
|
|
|
|
block_test_filtered.info: block_test.info
|
|
$(LCOV) -r $< "/usr/include/*" -o $@
|
|
|
|
rpc_test.info: test_bitcoin_filtered.info
|
|
-@TIMEOUT=15 python qa/pull-tester/rpc-tests.py $(EXTENDED_RPC_TESTS)
|
|
$(LCOV) -c -d $(abs_builddir)/src --t rpc-tests -o $@
|
|
$(LCOV) -z -d $(abs_builddir)/src
|
|
$(LCOV) -z -d $(abs_builddir)/src/leveldb
|
|
|
|
rpc_test_filtered.info: rpc_test.info
|
|
$(LCOV) -r $< "/usr/include/*" -o $@
|
|
|
|
test_bitcoin_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info
|
|
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -o $@
|
|
|
|
total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info block_test_filtered.info rpc_test_filtered.info
|
|
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -a block_test_filtered.info -a rpc_test_filtered.info -o $@ | $(GREP) "\%" | $(AWK) '{ print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
|
|
|
|
test_bitcoin.coverage/.dirstamp: test_bitcoin_coverage.info
|
|
$(GENHTML) -s $< -o $(@D)
|
|
@touch $@
|
|
|
|
total.coverage/.dirstamp: total_coverage.info
|
|
$(GENHTML) -s $< -o $(@D)
|
|
@touch $@
|
|
|
|
cov: test_bitcoin.coverage/.dirstamp total.coverage/.dirstamp
|
|
|
|
endif
|
|
|
|
if USE_COMPARISON_TOOL
|
|
check-local:
|
|
$(MKDIR_P) qa/tmp
|
|
@qa/pull-tester/run-bitcoind-for-test.sh $(JAVA) -jar $(JAVA_COMPARISON_TOOL) qa/tmp/compTool $(COMPARISON_TOOL_REORG_TESTS) 2>&1
|
|
endif
|
|
|
|
dist_noinst_SCRIPTS = autogen.sh
|
|
|
|
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.py qa/rpc-tests $(DIST_DOCS) $(WINDOWS_PACKAGING) $(OSX_PACKAGING) $(BIN_CHECKS)
|
|
|
|
CLEANFILES = $(OSX_DMG) $(BITCOIN_WIN_INSTALLER)
|
|
|
|
# This file is problematic for out-of-tree builds if it exists.
|
|
DISTCLEANFILES = qa/pull-tester/tests_config.pyc
|
|
|
|
.INTERMEDIATE: $(COVERAGE_INFO)
|
|
|
|
clean-local:
|
|
rm -rf coverage_percent.txt test_bitcoin.coverage/ total.coverage/ qa/tmp/ cache/ $(OSX_APP)
|
|
rm -rf qa/pull-tester/__pycache__
|