include Makefile.include AM_CPPFLAGS += -I$(builddir) noinst_LIBRARIES = \ libdarkcoin_server.a \ libdarkcoin_common.a \ libdarkcoin_cli.a if ENABLE_WALLET noinst_LIBRARIES += libdarkcoin_wallet.a endif bin_PROGRAMS = if BUILD_BITCOIND bin_PROGRAMS += darkcoind endif if BUILD_BITCOIN_CLI bin_PROGRAMS += darkcoin-cli endif SUBDIRS = . $(BUILD_QT) $(BUILD_TEST) DIST_SUBDIRS = . qt test .PHONY: FORCE # darkcoin core # BITCOIN_CORE_H = \ activemasternode.h \ addrman.h \ alert.h \ allocators.h \ base58.h bignum.h \ bloom.h \ chainparams.h \ checkpoints.h \ checkqueue.h \ clientversion.h \ coincontrol.h \ coins.h \ compat.h \ core.h \ crypter.h \ darksend.h \ db.h \ hash.h \ init.h \ instantx.h \ key.h \ keepass.h \ keystore.h \ leveldbwrapper.h \ limitedmap.h \ main.h \ masternode.h \ masternodeconfig.h \ miner.h \ mruset.h \ netbase.h \ net.h \ noui.h \ protocol.h \ rpcclient.h \ rpcprotocol.h \ rpcserver.h \ script.h \ serialize.h \ sph_blake.h \ sph_bmw.h \ sph_cubehash.h \ sph_echo.h \ sph_groestl.h \ sph_jh.h \ sph_keccak.h \ sph_luffa.h \ sph_shavite.h \ sph_simd.h \ sph_skein.h \ sph_types.h \ sync.h \ threadsafety.h \ tinyformat.h \ txdb.h \ txmempool.h \ ui_interface.h \ uint256.h \ util.h \ version.h \ walletdb.h \ wallet.h JSON_H = \ json/json_spirit.h \ json/json_spirit_error_position.h \ json/json_spirit_reader.h \ json/json_spirit_reader_template.h \ json/json_spirit_stream_reader.h \ json/json_spirit_utils.h \ json/json_spirit_value.h \ json/json_spirit_writer.h \ json/json_spirit_writer_template.h obj/build.h: FORCE @$(MKDIR_P) $(abs_top_builddir)/src/obj @$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \ $(abs_top_srcdir) version.o: obj/build.h libdarkcoin_server_a_SOURCES = \ activemasternode.cpp \ addrman.cpp \ alert.cpp \ bloom.cpp \ checkpoints.cpp \ coins.cpp \ init.cpp \ keystore.cpp \ leveldbwrapper.cpp \ main.cpp \ miner.cpp \ net.cpp \ noui.cpp \ rpcblockchain.cpp \ rpcdarksend.cpp \ rpcmining.cpp \ rpcmisc.cpp \ rpcnet.cpp \ rpcrawtransaction.cpp \ rpcserver.cpp \ txdb.cpp \ txmempool.cpp \ $(JSON_H) \ $(BITCOIN_CORE_H) libdarkcoin_wallet_a_SOURCES = \ activemasternode.cpp \ db.cpp \ crypter.cpp \ rpcdump.cpp \ rpcwallet.cpp \ wallet.cpp \ walletdb.cpp \ keepass.cpp \ $(BITCOIN_CORE_H) libdarkcoin_common_a_SOURCES = \ activemasternode.cpp \ base58.cpp \ allocators.cpp \ chainparams.cpp \ core.cpp \ darksend.cpp \ masternode.cpp \ masternodeconfig.cpp \ instantx.cpp \ hash.cpp \ key.cpp \ netbase.cpp \ protocol.cpp \ rpcprotocol.cpp \ script.cpp \ sync.cpp \ util.cpp \ version.cpp \ aes_helper.c \ luffa.c \ groestl.c \ jh.c \ echo.c \ shavite.c \ keccak.c \ skein.c \ bmw.c \ simd.c \ cubehash.c \ blake.c \ $(BITCOIN_CORE_H) if GLIBC_BACK_COMPAT libdarkcoin_common_a_SOURCES += compat/glibc_compat.cpp libdarkcoin_common_a_SOURCES += compat/glibcxx_compat.cpp endif libdarkcoin_cli_a_SOURCES = \ rpcclient.cpp \ $(BITCOIN_CORE_H) nodist_libdarkcoin_common_a_SOURCES = $(top_srcdir)/src/obj/build.h # # darkcoind binary # darkcoind_LDADD = \ libdarkcoin_server.a \ libdarkcoin_cli.a \ libdarkcoin_common.a \ $(LIBLEVELDB) \ $(LIBMEMENV) if ENABLE_WALLET darkcoind_LDADD += libdarkcoin_wallet.a endif darkcoind_SOURCES = darkcoind.cpp # if TARGET_WINDOWS darkcoind_SOURCES += bitcoind-res.rc endif AM_CPPFLAGS += $(BDB_CPPFLAGS) darkcoind_LDADD += $(BOOST_LIBS) $(BDB_LIBS) # darkcoin-cli binary # darkcoin_cli_LDADD = \ libdarkcoin_cli.a \ libdarkcoin_common.a \ $(BOOST_LIBS) darkcoin_cli_SOURCES = darkcoin-cli.cpp # if TARGET_WINDOWS darkcoin_cli_SOURCES += bitcoin-cli-res.rc endif # NOTE: This dependency is not strictly necessary, but without it make may try to build both in parallel, which breaks the LevelDB build system in a race leveldb/libleveldb.a: leveldb/libmemenv.a leveldb/%.a: @echo "Building LevelDB ..." && $(MAKE) -C $(@D) $(@F) CXX="$(CXX)" \ CC="$(CC)" PLATFORM=$(TARGET_OS) AR="$(AR)" $(LEVELDB_TARGET_FLAGS) \ OPT="$(CXXFLAGS) $(CPPFLAGS)" qt/bitcoinstrings.cpp: $(libdarkcoin_server_a_SOURCES) $(libdarkcoin_common_a_SOURCES) $(libdarkcoin_cli_a_SOURCES) @test -n $(XGETTEXT) || echo "xgettext is required for updating translations" @cd $(top_srcdir); XGETTEXT=$(XGETTEXT) share/qt/extract_strings_qt.py CLEANFILES = leveldb/libleveldb.a leveldb/libmemenv.a *.gcda *.gcno DISTCLEANFILES = obj/build.h EXTRA_DIST = leveldb Makefile.include clean-local: -$(MAKE) -C leveldb clean rm -f leveldb/*/*.gcno leveldb/helpers/memenv/*.gcno