1 include Makefile.include
3 AM_CPPFLAGS += -I$(top_srcdir)/src/leveldb/helpers/memenv \
6 noinst_LIBRARIES = libbitcoin_server.a libbitcoin_common.a libbitcoin_cli.a
8 noinst_LIBRARIES += libbitcoin_wallet.a
11 bin_PROGRAMS = bitcoind bitcoin-cli
13 SUBDIRS = . $(BUILD_QT) $(BUILD_TEST)
14 DIST_SUBDIRS = . qt test
17 BITCOIN_CORE_H = addrman.h alert.h allocators.h base58.h bignum.h \
21 bloom.h chainparams.h checkpoints.h checkqueue.h \
22 clientversion.h coincontrol.h compat.h core.h coins.h crypter.h db.h hash.h init.h \
23 key.h keystore.h leveldbwrapper.h limitedmap.h main.h miner.h mruset.h \
24 netbase.h net.h noui.h protocol.h script.h serialize.h sync.h threadsafety.h \
25 txdb.h txmempool.h ui_interface.h uint256.h util.h version.h walletdb.h wallet.h
27 JSON_H = json/json_spirit.h json/json_spirit_error_position.h \
28 json/json_spirit_reader.h json/json_spirit_reader_template.h \
29 json/json_spirit_stream_reader.h json/json_spirit_utils.h \
30 json/json_spirit_value.h json/json_spirit_writer.h \
31 json/json_spirit_writer_template.h
34 @$(MKDIR_P) $(abs_top_builddir)/src/obj
35 @$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
37 version.o: obj/build.h
39 libbitcoin_server_a_SOURCES = \
55 rpcrawtransaction.cpp \
61 libbitcoin_wallet_a_SOURCES = \
72 libbitcoin_common_a_SOURCES = \
87 libbitcoin_cli_a_SOURCES = \
91 nodist_libbitcoin_common_a_SOURCES = $(top_srcdir)/src/obj/build.h
95 bitcoind_LDADD = libbitcoin_server.a libbitcoin_cli.a libbitcoin_common.a leveldb/libleveldb.a leveldb/libmemenv.a \
98 bitcoind_LDADD += libbitcoin_wallet.a
100 bitcoind_SOURCES = bitcoind.cpp
104 bitcoind_SOURCES += bitcoind-res.rc
107 AM_CPPFLAGS += $(BDB_CPPFLAGS)
108 bitcoind_LDADD += $(BDB_LIBS)
110 # bitcoin-cli binary #
111 bitcoin_cli_LDADD = libbitcoin_cli.a libbitcoin_common.a $(BOOST_LIBS)
112 bitcoin_cli_SOURCES = bitcoin-cli.cpp
116 bitcoin_cli_SOURCES += bitcoin-cli-res.rc
119 leveldb/libleveldb.a: leveldb/libmemenv.a
122 @echo "Building LevelDB ..." && $(MAKE) -C $(@D) $(@F) CXX="$(CXX)" \
123 CC="$(CC)" PLATFORM=$(TARGET_OS) AR="$(AR)" $(LEVELDB_TARGET_FLAGS) \
124 OPT="$(CXXFLAGS) $(CPPFLAGS)"
126 qt/bitcoinstrings.cpp: $(libbitcoin_server_a_SOURCES) $(libbitcoin_common_a_SOURCES) $(libbitcoin_cli_a_SOURCES)
127 @test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
128 @cd $(top_srcdir); XGETTEXT=$(XGETTEXT) share/qt/extract_strings_qt.py
130 CLEANFILES = leveldb/libleveldb.a leveldb/libmemenv.a *.gcda *.gcno
132 DISTCLEANFILES = obj/build.h
134 EXTRA_DIST = leveldb Makefile.include
137 -$(MAKE) -C leveldb clean
138 rm -f leveldb/*/*.gcno leveldb/helpers/memenv/*.gcno