You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 3.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. include Makefile.include
  2. AM_CPPFLAGS = $(INCLUDES) -I$(top_builddir)/src/obj \
  3. -I$(top_srcdir)/src/leveldb/include -I$(top_srcdir)/src/leveldb/helpers \
  4. -I$(builddir) $(BOOST_INCLUDES) $(BDB_CPPFLAGS)
  5. AM_LDFLAGS = $(PTHREAD_CFLAGS)
  6. noinst_LIBRARIES = libbitcoin.a
  7. bin_PROGRAMS = bitcoind bitcoin-cli
  8. SUBDIRS = . $(BUILD_QT) $(BUILD_TEST)
  9. DIST_SUBDIRS = . qt test
  10. .PHONY: FORCE
  11. # bitcoin core #
  12. BITCOIN_CORE_H = addrman.h alert.h allocators.h base58.h bignum.h \
  13. bitcoinrpc.h bloom.h chainparams.h checkpoints.h checkqueue.h \
  14. clientversion.h compat.h core.h crypter.h db.h hash.h init.h \
  15. key.h keystore.h leveldbwrapper.h limitedmap.h main.h miner.h mruset.h \
  16. netbase.h net.h noui.h protocol.h script.h serialize.h sync.h threadsafety.h \
  17. txdb.h txmempool.h ui_interface.h uint256.h util.h version.h walletdb.h wallet.h
  18. JSON_H = json/json_spirit.h json/json_spirit_error_position.h \
  19. json/json_spirit_reader.h json/json_spirit_reader_template.h \
  20. json/json_spirit_stream_reader.h json/json_spirit_utils.h \
  21. json/json_spirit_value.h json/json_spirit_writer.h \
  22. json/json_spirit_writer_template.h
  23. obj/build.h: FORCE
  24. @$(MKDIR_P) $(abs_top_builddir)/src/obj
  25. @$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
  26. $(abs_top_srcdir)
  27. version.o: obj/build.h
  28. libbitcoin_a_SOURCES = addrman.cpp alert.cpp allocators.cpp bitcoinrpc.cpp bloom.cpp \
  29. chainparams.cpp checkpoints.cpp core.cpp crypter.cpp db.cpp hash.cpp \
  30. init.cpp key.cpp keystore.cpp leveldbwrapper.cpp main.cpp miner.cpp \
  31. netbase.cpp net.cpp noui.cpp protocol.cpp rpcblockchain.cpp rpcdump.cpp \
  32. rpcmining.cpp rpcnet.cpp rpcrawtransaction.cpp rpcwallet.cpp script.cpp \
  33. sync.cpp txdb.cpp txmempool.cpp util.cpp version.cpp wallet.cpp walletdb.cpp $(JSON_H) \
  34. $(BITCOIN_CORE_H)
  35. nodist_libbitcoin_a_SOURCES = $(top_srcdir)/src/obj/build.h
  36. #
  37. # bitcoind binary #
  38. bitcoind_LDADD = libbitcoin.a leveldb/libleveldb.a leveldb/libmemenv.a \
  39. $(BOOST_LIBS)
  40. bitcoind_SOURCES = bitcoind.cpp
  41. #
  42. if TARGET_WINDOWS
  43. bitcoind_SOURCES += bitcoind-res.rc
  44. endif
  45. AM_CPPFLAGS += $(BDB_CPPFLAGS)
  46. bitcoind_LDADD += $(BDB_LIBS)
  47. # bitcoin-cli binary #
  48. bitcoin_cli_LDADD = libbitcoin.a leveldb/libleveldb.a leveldb/libmemenv.a \
  49. $(BOOST_LIBS)
  50. bitcoin_cli_SOURCES = bitcoin-cli.cpp
  51. #
  52. if TARGET_WINDOWS
  53. bitcoin_cli_SOURCES += bitcoin-cli-res.rc
  54. endif
  55. bitcoin_cli_LDADD += $(BDB_LIBS)
  56. leveldb/libleveldb.a: leveldb/libmemenv.a
  57. leveldb/%.a:
  58. @echo "Building LevelDB ..." && $(MAKE) -C $(@D) $(@F) CXX="$(CXX)" \
  59. CC="$(CC)" PLATFORM=$(TARGET_OS) AR="$(AR)" $(LEVELDB_TARGET_FLAGS) \
  60. OPT="$(CXXFLAGS) $(CPPFLAGS)"
  61. qt/bitcoinstrings.cpp: $(libbitcoin_a_SOURCES)
  62. @test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
  63. @cd $(top_srcdir); XGETTEXT=$(XGETTEXT) share/qt/extract_strings_qt.py
  64. CLEANFILES = leveldb/libleveldb.a leveldb/libmemenv.a *.gcda *.gcno
  65. DISTCLEANFILES = obj/build.h
  66. EXTRA_DIST = leveldb Makefile.include
  67. clean-local:
  68. -$(MAKE) -C leveldb clean
  69. rm -f leveldb/port/*.gcno leveldb/db/*.gcno leveldb/table/*.gcno leveldb/helpers/*.gcno
  70. rm -f leveldb/util/*.gcno leveldb/helpers/memenv/*.gcno