Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. ACLOCAL_AMFLAGS = -I src/m4
  2. SUBDIRS = src
  3. .PHONY: deploy
  4. GZIP_ENV="-9n"
  5. BITCOIND_BIN=$(top_builddir)/src/bitcoind$(EXEEXT)
  6. BITCOIN_QT_BIN=$(top_builddir)/src/qt/bitcoin-qt$(EXEEXT)
  7. BITCOIN_CLI_BIN=$(top_builddir)/src/bitcoin-cli$(EXEEXT)
  8. BITCOIN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win$(WINDOWS_BITS)-setup$(EXEEXT)
  9. OSX_APP=Bitcoin-Qt.app
  10. OSX_DMG=Bitcoin-Qt.dmg
  11. OSX_DEPLOY_SCRIPT=$(top_srcdir)/contrib/macdeploy/macdeployqtplus
  12. OSX_FANCY_PLIST=$(top_srcdir)/contrib/macdeploy/fancy.plist
  13. OSX_INSTALLER_ICONS=$(top_srcdir)/src/qt/res/icons/bitcoin.icns
  14. OSX_PLIST=$(top_srcdir)/share/qt/Info.plist #not installed
  15. OSX_QT_TRANSLATIONS = da,de,es,hu,ru,uk,zh_CN,zh_TW
  16. DIST_DOCS = $(wildcard doc/*.md) $(wildcard doc/release-notes/*.md)
  17. WINDOWS_PACKAGING = $(top_srcdir)/share/pixmaps/bitcoin.ico \
  18. $(top_srcdir)/share/pixmaps/nsis-header.bmp \
  19. $(top_srcdir)/share/pixmaps/nsis-wizard.bmp \
  20. $(top_srcdir)/doc/README_windows.txt
  21. OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) \
  22. $(top_srcdir)/contrib/macdeploy/background.png \
  23. $(top_srcdir)/contrib/macdeploy/DS_Store
  24. COVERAGE_INFO = baseline_filtered_combined.info baseline.info block_test.info \
  25. leveldb_baseline.info test_bitcoin_filtered.info total_coverage.info \
  26. baseline_filtered.info block_test_filtered.info \
  27. leveldb_baseline_filtered.info test_bitcoin_coverage.info test_bitcoin.info
  28. dist-hook:
  29. -$(MAKE) -C $(top_distdir)/src/leveldb clean
  30. -$(GIT) archive --format=tar HEAD -- src/version.cpp | $(AMTAR) -C $(top_distdir) -xf -
  31. distcheck-hook:
  32. $(MKDIR_P) $(top_distdir)/_build/src/leveldb
  33. cp -rf $(top_srcdir)/src/leveldb/* $(top_distdir)/_build/src/leveldb/
  34. -$(MAKE) -C $(top_distdir)/_build/src/leveldb clean
  35. distcleancheck:
  36. @:
  37. $(BITCOIN_WIN_INSTALLER): $(BITCOIND_BIN) $(BITCOIN_QT_BIN) $(BITCOIN_CLI_BIN)
  38. $(MKDIR_P) $(top_builddir)/release
  39. STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIND_BIN) $(top_builddir)/release
  40. STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIN_QT_BIN) $(top_builddir)/release
  41. STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIN_CLI_BIN) $(top_builddir)/release
  42. @test -f $(MAKENSIS) && $(MAKENSIS) $(top_builddir)/share/setup.nsi || \
  43. echo error: could not build $@
  44. $(BITCOIND_BIN) $(BITCOIN_QT_BIN) $(BITCOIN_CLI_BIN):
  45. make -C $(dir $@) $(notdir $@)
  46. $(OSX_APP)/Contents/PkgInfo:
  47. $(MKDIR_P) $(@D)
  48. @echo "APPL????" > $@
  49. $(OSX_APP)/Contents/Resources/empty.lproj:
  50. $(MKDIR_P) $(@D)
  51. @touch $@
  52. $(OSX_APP)/Contents/Info.plist: $(OSX_PLIST)
  53. $(MKDIR_P) $(@D)
  54. $(INSTALL_DATA) $< $@
  55. $(OSX_APP)/Contents/Resources/bitcoin.icns: $(OSX_INSTALLER_ICONS)
  56. $(MKDIR_P) $(@D)
  57. $(INSTALL_DATA) $< $@
  58. $(OSX_APP)/Contents/MacOS/Bitcoin-Qt: $(BITCOIN_QT_BIN)
  59. $(MKDIR_P) $(@D)
  60. STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $< $@
  61. OSX_APP_BUILT=$(OSX_APP)/Contents/PkgInfo $(OSX_APP)/Contents/Resources/empty.lproj \
  62. $(OSX_APP)/Contents/Resources/bitcoin.icns $(OSX_APP)/Contents/Info.plist \
  63. $(OSX_APP)/Contents/MacOS/Bitcoin-Qt
  64. if BUILD_DARWIN
  65. $(OSX_DMG): $(OSX_APP_BUILT) $(OSX_PACKAGING)
  66. $(OSX_DEPLOY_SCRIPT) $(OSX_APP) -add-qt-tr $(OSX_QT_TRANSLATIONS) -dmg -fancy $(OSX_FANCY_PLIST) -verbose 2
  67. else
  68. $(OSX_DMG): $(OSX_APP_BUILT) $(OSX_PACKAGING)
  69. INSTALLNAMETOOL=$(INSTALLNAMETOOL) OTOOL=$(OTOOL) STRIP=$(STRIP) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) -add-qt-tr $(OSX_QT_TRANSLATIONS) -verbose 2
  70. $(MKDIR_P) dist/.background
  71. $(INSTALL) contrib/macdeploy/background.png dist/.background
  72. $(INSTALL) contrib/macdeploy/DS_Store dist/.DS_Store
  73. cd dist; $(LN_S) /Applications Applications
  74. $(GENISOIMAGE) -no-cache-inodes -l -probe -V "Bitcoin-Qt" -no-pad -r -apple -o $@ dist
  75. endif
  76. if TARGET_DARWIN
  77. appbundle: $(OSX_APP_BUILT)
  78. deploy: $(OSX_DMG)
  79. endif
  80. if TARGET_WINDOWS
  81. deploy: $(BITCOIN_WIN_INSTALLER)
  82. endif
  83. if USE_LCOV
  84. baseline.info:
  85. $(LCOV) -c -i -d $(abs_builddir)/src -o $@
  86. baseline_filtered.info: baseline.info
  87. $(LCOV) -r $< "/usr/include/*" -o $@
  88. leveldb_baseline.info: baseline_filtered.info
  89. $(LCOV) -c -i -d $(abs_builddir)/src/leveldb -b $(abs_builddir)/src/leveldb -o $@
  90. leveldb_baseline_filtered.info: leveldb_baseline.info
  91. $(LCOV) -r $< "/usr/include/*" -o $@
  92. baseline_filtered_combined.info: leveldb_baseline_filtered.info baseline_filtered.info
  93. $(LCOV) -a leveldb_baseline_filtered.info -a baseline_filtered.info -o $@
  94. test_bitcoin.info: baseline_filtered_combined.info
  95. $(MAKE) -C src/ check
  96. $(LCOV) -c -d $(abs_builddir)/src -t test_bitcoin -o $@
  97. $(LCOV) -z -d $(abs_builddir)/src
  98. $(LCOV) -z -d $(abs_builddir)/src/leveldb
  99. test_bitcoin_filtered.info: test_bitcoin.info
  100. $(LCOV) -r $< "/usr/include/*" -o $@
  101. block_test.info: test_bitcoin_filtered.info
  102. $(MKDIR_P) qa/tmp
  103. -@TIMEOUT=15 qa/pull-tester/run-bitcoind-for-test.sh $(JAVA) -jar $(JAVA_COMPARISON_TOOL) qa/tmp/compTool 0
  104. $(LCOV) -c -d $(abs_builddir)/src --t BitcoinJBlockTest -o $@
  105. $(LCOV) -z -d $(abs_builddir)/src
  106. $(LCOV) -z -d $(abs_builddir)/src/leveldb
  107. block_test_filtered.info: block_test.info
  108. $(LCOV) -r $< "/usr/include/*" -o $@
  109. test_bitcoin_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info
  110. $(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -o $@
  111. total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info block_test_filtered.info
  112. $(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -a block_test_filtered.info -o $@ | $(GREP) "\%" | $(AWK) '{ print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
  113. test_bitcoin.coverage/.dirstamp: test_bitcoin_coverage.info
  114. $(GENHTML) -s $< -o $(@D)
  115. @touch $@
  116. total.coverage/.dirstamp: total_coverage.info
  117. $(GENHTML) -s $< -o $(@D)
  118. @touch $@
  119. cov: test_bitcoin.coverage/.dirstamp total.coverage/.dirstamp
  120. endif
  121. if USE_COMPARISON_TOOL
  122. check-local:
  123. $(MKDIR_P) qa/tmp
  124. @qa/pull-tester/run-bitcoind-for-test.sh $(JAVA) -jar $(JAVA_COMPARISON_TOOL) qa/tmp/compTool $(COMPARISON_TOOL_REORG_TESTS)
  125. endif
  126. EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/pull-tester.sh qa/rpc-tests $(DIST_DOCS) $(WINDOWS_PACKAGING) $(OSX_PACKAGING)
  127. CLEANFILES = $(OSX_DMG) $(BITCOIN_WIN_INSTALLER)
  128. .INTERMEDIATE: $(COVERAGE_INFO)
  129. clean-local:
  130. rm -rf test_bitcoin.coverage/ total.coverage/ $(OSX_APP)