596 lines
15 KiB
Makefile
596 lines
15 KiB
Makefile
# Copyright (c) 2013-2016 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
DIST_SUBDIRS = secp256k1 univalue
|
|
|
|
AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS) $(HARDENED_LDFLAGS) $(GPROF_LDFLAGS) $(SANITIZER_LDFLAGS)
|
|
AM_CXXFLAGS = $(DEBUG_CXXFLAGS) $(HARDENED_CXXFLAGS) $(WARN_CXXFLAGS) $(NOWARN_CXXFLAGS) $(ERROR_CXXFLAGS) $(GPROF_CXXFLAGS) $(SANITIZER_CXXFLAGS)
|
|
AM_CPPFLAGS = $(DEBUG_CPPFLAGS) $(HARDENED_CPPFLAGS)
|
|
AM_LIBTOOLFLAGS = --preserve-dup-deps
|
|
EXTRA_LIBRARIES =
|
|
|
|
if EMBEDDED_UNIVALUE
|
|
LIBUNIVALUE = univalue/libunivalue.la
|
|
|
|
$(LIBUNIVALUE): $(wildcard univalue/lib/*) $(wildcard univalue/include/*)
|
|
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
|
|
else
|
|
LIBUNIVALUE = $(UNIVALUE_LIBS)
|
|
endif
|
|
|
|
BITCOIN_INCLUDES=-I$(builddir) $(BDB_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(SSL_CFLAGS)
|
|
|
|
BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
|
|
BITCOIN_INCLUDES += $(UNIVALUE_CFLAGS)
|
|
|
|
LIBBITCOIN_SERVER=libbitcoin_server.a
|
|
LIBBITCOIN_COMMON=libbitcoin_common.a
|
|
LIBBITCOIN_CLI=libbitcoin_cli.a
|
|
LIBBITCOIN_UTIL=libbitcoin_util.a
|
|
LIBBITCOIN_CRYPTO=crypto/libbitcoin_crypto.a
|
|
LIBBITCOIN_ZEROCOIN=libzerocoin/libbitcoin_zerocoin.a
|
|
LIBBITCOINQT=qt/libbitcoinqt.a
|
|
LIBSECP256K1=secp256k1/libsecp256k1.la
|
|
|
|
if ENABLE_ZMQ
|
|
LIBBITCOIN_ZMQ=libbitcoin_zmq.a
|
|
endif
|
|
if BUILD_BITCOIN_LIBS
|
|
LIBBITCOINCONSENSUS=libbitcoinconsensus.la
|
|
endif
|
|
if ENABLE_WALLET
|
|
LIBBITCOIN_WALLET=libbitcoin_wallet.a
|
|
endif
|
|
|
|
$(LIBSECP256K1): $(wildcard secp256k1/src/*.h) $(wildcard secp256k1/src/*.c) $(wildcard secp256k1/include/*)
|
|
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
|
|
|
|
# Make is not made aware of per-object dependencies to avoid limiting building parallelization
|
|
# But to build the less dependent modules first, we manually select their order here:
|
|
EXTRA_LIBRARIES += \
|
|
$(LIBBITCOIN_CRYPTO) \
|
|
$(LIBBITCOIN_UTIL) \
|
|
$(LIBBITCOIN_COMMON) \
|
|
$(LIBBITCOIN_ZEROCOIN) \
|
|
$(LIBBITCOIN_SERVER) \
|
|
$(LIBBITCOIN_CLI) \
|
|
$(LIBBITCOIN_WALLET) \
|
|
$(LIBBITCOIN_ZMQ)
|
|
|
|
lib_LTLIBRARIES = $(LIBBITCOINCONSENSUS)
|
|
|
|
bin_PROGRAMS =
|
|
noinst_PROGRAMS =
|
|
TESTS =
|
|
BENCHMARKS =
|
|
|
|
if BUILD_BITCOIND
|
|
bin_PROGRAMS += agrariand
|
|
endif
|
|
|
|
if BUILD_BITCOIN_UTILS
|
|
bin_PROGRAMS += agrarian-cli agrarian-tx
|
|
endif
|
|
|
|
.PHONY: FORCE check-symbols check-security
|
|
# agrarian core #
|
|
BITCOIN_CORE_H = \
|
|
activemasternode.h \
|
|
addrman.h \
|
|
alert.h \
|
|
allocators.h \
|
|
amount.h \
|
|
base58.h \
|
|
bip38.h \
|
|
bloom.h \
|
|
blocksignature.h \
|
|
chain.h \
|
|
chainparams.h \
|
|
chainparamsbase.h \
|
|
chainparamsseeds.h \
|
|
checkpoints.h \
|
|
checkqueue.h \
|
|
clientversion.h \
|
|
coincontrol.h \
|
|
coins.h \
|
|
compat.h \
|
|
compat/byteswap.h \
|
|
compat/endian.h \
|
|
compat/sanity.h \
|
|
compressor.h \
|
|
primitives/block.h \
|
|
primitives/transaction.h \
|
|
core_io.h \
|
|
crypter.h \
|
|
denomination_functions.h \
|
|
obfuscation.h \
|
|
obfuscation-relay.h \
|
|
wallet/db.h \
|
|
hash.h \
|
|
httprpc.h \
|
|
httpserver.h \
|
|
init.h \
|
|
invalid.h \
|
|
invalid_outpoints.json.h \
|
|
invalid_serials.json.h \
|
|
kernel.h \
|
|
swifttx.h \
|
|
key.h \
|
|
keystore.h \
|
|
leveldbwrapper.h \
|
|
limitedmap.h \
|
|
main.h \
|
|
masternode.h \
|
|
masternode-payments.h \
|
|
masternode-budget.h \
|
|
masternode-sync.h \
|
|
masternodeman.h \
|
|
masternodeconfig.h \
|
|
merkleblock.h \
|
|
miner.h \
|
|
mruset.h \
|
|
netbase.h \
|
|
net.h \
|
|
noui.h \
|
|
pow.h \
|
|
protocol.h \
|
|
pubkey.h \
|
|
random.h \
|
|
reverselock.h \
|
|
reverse_iterate.h \
|
|
rpc/client.h \
|
|
rpc/protocol.h \
|
|
rpc/server.h \
|
|
scheduler.h \
|
|
script/interpreter.h \
|
|
script/script.h \
|
|
script/sigcache.h \
|
|
script/sign.h \
|
|
script/standard.h \
|
|
script/script_error.h \
|
|
serialize.h \
|
|
spork.h \
|
|
sporkdb.h \
|
|
stakeinput.h \
|
|
streams.h \
|
|
support/cleanse.h \
|
|
sync.h \
|
|
threadsafety.h \
|
|
timedata.h \
|
|
tinyformat.h \
|
|
torcontrol.h \
|
|
txdb.h \
|
|
txmempool.h \
|
|
guiinterface.h \
|
|
uint256.h \
|
|
undo.h \
|
|
util.h \
|
|
utilstrencodings.h \
|
|
utilmoneystr.h \
|
|
utiltime.h \
|
|
validationinterface.h \
|
|
version.h \
|
|
wallet/wallet.h \
|
|
wallet/wallet_ismine.h \
|
|
wallet/walletdb.h \
|
|
zagrchain.h \
|
|
zagr/accumulators.h \
|
|
zagr/accumulatorcheckpoints.h \
|
|
zagr/accumulatorcheckpoints.json.h \
|
|
zagr/accumulatormap.h \
|
|
zagr/deterministicmint.h \
|
|
zagr/mintpool.h \
|
|
zagr/witness.h \
|
|
zagr/zerocoin.h \
|
|
zagr/zagrtracker.h \
|
|
zagr/zagrwallet.h \
|
|
zagr/zagrmodule.h \
|
|
genwit.h \
|
|
concurrentqueue.h \
|
|
lightzagrthread.h \
|
|
zmq/zmqabstractnotifier.h \
|
|
zmq/zmqconfig.h \
|
|
zmq/zmqnotificationinterface.h \
|
|
zmq/zmqpublishnotifier.h
|
|
|
|
obj/build.h: FORCE
|
|
@$(MKDIR_P) $(builddir)/obj
|
|
@$(top_srcdir)/share/genbuild.sh "$(abs_top_builddir)/src/obj/build.h" \
|
|
"$(abs_top_srcdir)"
|
|
libbitcoin_util_a-clientversion.$(OBJEXT): obj/build.h
|
|
|
|
# server: shared between agrariand and agrarian-qt
|
|
libbitcoin_server_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAGS) $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)
|
|
libbitcoin_server_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
libbitcoin_server_a_SOURCES = \
|
|
addrman.cpp \
|
|
alert.cpp \
|
|
bloom.cpp \
|
|
blocksignature.cpp \
|
|
chain.cpp \
|
|
checkpoints.cpp \
|
|
httprpc.cpp \
|
|
httpserver.cpp \
|
|
init.cpp \
|
|
leveldbwrapper.cpp \
|
|
main.cpp \
|
|
merkleblock.cpp \
|
|
miner.cpp \
|
|
net.cpp \
|
|
noui.cpp \
|
|
pow.cpp \
|
|
rest.cpp \
|
|
rpc/blockchain.cpp \
|
|
rpc/masternode.cpp \
|
|
rpc/budget.cpp \
|
|
rpc/mining.cpp \
|
|
rpc/misc.cpp \
|
|
rpc/net.cpp \
|
|
rpc/rawtransaction.cpp \
|
|
rpc/server.cpp \
|
|
script/sigcache.cpp \
|
|
sporkdb.cpp \
|
|
timedata.cpp \
|
|
torcontrol.cpp \
|
|
txdb.cpp \
|
|
txmempool.cpp \
|
|
validationinterface.cpp \
|
|
zagrchain.cpp \
|
|
$(BITCOIN_CORE_H)
|
|
|
|
if ENABLE_ZMQ
|
|
libbitcoin_zmq_a_CPPFLAGS = $(BITCOIN_INCLUDES) $(ZMQ_CFLAGS)
|
|
libbitcoin_zmq_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
libbitcoin_zmq_a_SOURCES = \
|
|
zmq/zmqabstractnotifier.cpp \
|
|
zmq/zmqnotificationinterface.cpp \
|
|
zmq/zmqpublishnotifier.cpp
|
|
endif
|
|
|
|
# wallet: shared between agrariand and agrarian-qt, but only linked
|
|
# when wallet enabled
|
|
libbitcoin_wallet_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
|
libbitcoin_wallet_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
libbitcoin_wallet_a_SOURCES = \
|
|
activemasternode.cpp \
|
|
bip38.cpp \
|
|
denomination_functions.cpp \
|
|
obfuscation.cpp \
|
|
obfuscation-relay.cpp \
|
|
wallet/db.cpp \
|
|
crypter.cpp \
|
|
swifttx.cpp \
|
|
masternode.cpp \
|
|
masternode-budget.cpp \
|
|
masternode-payments.cpp \
|
|
masternode-sync.cpp \
|
|
masternodeconfig.cpp \
|
|
masternodeman.cpp \
|
|
wallet/rpcdump.cpp \
|
|
wallet/rpcwallet.cpp \
|
|
kernel.cpp \
|
|
wallet/wallet.cpp \
|
|
wallet/wallet_ismine.cpp \
|
|
wallet/walletdb.cpp \
|
|
zagr/deterministicmint.cpp \
|
|
zagr/zerocoin.cpp \
|
|
zagr/accumulators.cpp \
|
|
zagr/mintpool.cpp \
|
|
zagr/witness.cpp \
|
|
zagr/zagrwallet.cpp \
|
|
zagr/zagrtracker.cpp \
|
|
stakeinput.cpp \
|
|
genwit.cpp \
|
|
zagr/zagrmodule.cpp \
|
|
lightzagrthread.cpp \
|
|
$(BITCOIN_CORE_H)
|
|
|
|
# crypto primitives library
|
|
crypto_libbitcoin_crypto_a_CPPFLAGS = $(AM_CPPFLAGS) $(PIC_FLAGS)
|
|
crypto_libbitcoin_crypto_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIC_FLAGS)
|
|
crypto_libbitcoin_crypto_a_SOURCES = \
|
|
crypto/sha1.cpp \
|
|
crypto/sha256.cpp \
|
|
crypto/sha512.cpp \
|
|
crypto/hmac_sha256.cpp \
|
|
crypto/rfc6979_hmac_sha256.cpp \
|
|
crypto/hmac_sha512.cpp \
|
|
crypto/scrypt.cpp \
|
|
crypto/ripemd160.cpp \
|
|
crypto/aes_helper.c \
|
|
crypto/blake.c \
|
|
crypto/bmw.c \
|
|
crypto/groestl.c \
|
|
crypto/jh.c \
|
|
crypto/keccak.c \
|
|
crypto/skein.c \
|
|
crypto/common.h \
|
|
crypto/sha256.h \
|
|
crypto/sha512.h \
|
|
crypto/hmac_sha256.h \
|
|
crypto/rfc6979_hmac_sha256.h \
|
|
crypto/hmac_sha512.h \
|
|
crypto/scrypt.h \
|
|
crypto/sha1.h \
|
|
crypto/ripemd160.h \
|
|
crypto/sph_blake.h \
|
|
crypto/sph_bmw.h \
|
|
crypto/sph_groestl.h \
|
|
crypto/sph_jh.h \
|
|
crypto/sph_keccak.h \
|
|
crypto/sph_skein.h \
|
|
crypto/sph_types.h
|
|
|
|
# libzerocoin library
|
|
libzerocoin_libbitcoin_zerocoin_a_CPPFLAGS = $(AM_CPPFLAGS) $(BOOST_CPPFLAGS)
|
|
libzerocoin_libbitcoin_zerocoin_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
libzerocoin_libbitcoin_zerocoin_a_SOURCES = \
|
|
libzerocoin/Accumulator.h \
|
|
libzerocoin/AccumulatorProofOfKnowledge.h \
|
|
libzerocoin/bignum.h \
|
|
libzerocoin/Coin.h \
|
|
libzerocoin/CoinSpend.h \
|
|
libzerocoin/Commitment.h \
|
|
libzerocoin/Denominations.h \
|
|
libzerocoin/ParamGeneration.h \
|
|
libzerocoin/Params.h \
|
|
libzerocoin/SerialNumberSignatureOfKnowledge.h \
|
|
libzerocoin/SpendType.h \
|
|
libzerocoin/ZerocoinDefines.h \
|
|
libzerocoin/bignum.cpp \
|
|
libzerocoin/Accumulator.cpp \
|
|
libzerocoin/AccumulatorProofOfKnowledge.cpp \
|
|
libzerocoin/Coin.cpp \
|
|
libzerocoin/Denominations.cpp \
|
|
libzerocoin/CoinSpend.cpp \
|
|
libzerocoin/Commitment.cpp \
|
|
libzerocoin/ParamGeneration.cpp \
|
|
libzerocoin/Params.cpp \
|
|
libzerocoin/SerialNumberSignatureOfKnowledge.cpp
|
|
if USE_NUM_GMP
|
|
libzerocoin_libbitcoin_zerocoin_a_SOURCES += libzerocoin/bignum_gmp.cpp
|
|
endif
|
|
if USE_NUM_OPENSSL
|
|
libzerocoin_libbitcoin_zerocoin_a_SOURCES += libzerocoin/bignum_openssl.cpp
|
|
endif
|
|
|
|
# common: shared between agrariand, and agrarian-qt and non-server tools
|
|
libbitcoin_common_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
|
libbitcoin_common_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
libbitcoin_common_a_SOURCES = \
|
|
zagr/accumulators.cpp \
|
|
zagr/accumulatorcheckpoints.cpp \
|
|
zagr/accumulatormap.cpp \
|
|
allocators.cpp \
|
|
amount.cpp \
|
|
base58.cpp \
|
|
bip38.cpp \
|
|
chainparams.cpp \
|
|
coins.cpp \
|
|
compressor.cpp \
|
|
primitives/block.cpp \
|
|
zagr/deterministicmint.cpp \
|
|
primitives/transaction.cpp \
|
|
zagr/zerocoin.cpp \
|
|
core_read.cpp \
|
|
core_write.cpp \
|
|
hash.cpp \
|
|
invalid.cpp \
|
|
key.cpp \
|
|
keystore.cpp \
|
|
netbase.cpp \
|
|
protocol.cpp \
|
|
pubkey.cpp \
|
|
scheduler.cpp \
|
|
script/interpreter.cpp \
|
|
script/script.cpp \
|
|
script/sign.cpp \
|
|
script/standard.cpp \
|
|
script/script_error.cpp \
|
|
spork.cpp \
|
|
sporkdb.cpp \
|
|
$(BITCOIN_CORE_H)
|
|
|
|
# util: shared between all executables.
|
|
# This library *must* be included to make sure that the glibc
|
|
# backward-compatibility objects and their sanity checks are linked.
|
|
libbitcoin_util_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
|
libbitcoin_util_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
libbitcoin_util_a_SOURCES = \
|
|
allocators.cpp \
|
|
chainparamsbase.cpp \
|
|
clientversion.cpp \
|
|
compat/glibc_sanity.cpp \
|
|
compat/glibcxx_sanity.cpp \
|
|
compat/strnlen.cpp \
|
|
random.cpp \
|
|
rpc/protocol.cpp \
|
|
support/cleanse.cpp \
|
|
sync.cpp \
|
|
uint256.cpp \
|
|
util.cpp \
|
|
utilmoneystr.cpp \
|
|
utilstrencodings.cpp \
|
|
utiltime.cpp \
|
|
$(BITCOIN_CORE_H)
|
|
|
|
if GLIBC_BACK_COMPAT
|
|
libbitcoin_util_a_SOURCES += compat/glibc_compat.cpp
|
|
AM_LDFLAGS += $(COMPAT_LDFLAGS)
|
|
endif
|
|
|
|
# cli: shared between agrarian-cli and agrarian-qt
|
|
libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
|
libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
libbitcoin_cli_a_SOURCES = \
|
|
rpc/client.cpp \
|
|
$(BITCOIN_CORE_H)
|
|
|
|
nodist_libbitcoin_util_a_SOURCES = $(srcdir)/obj/build.h
|
|
#
|
|
|
|
# agrariand binary #
|
|
agrariand_SOURCES = agrariand.cpp
|
|
agrariand_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
|
agrariand_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
agrariand_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
|
|
|
|
if TARGET_WINDOWS
|
|
agrariand_SOURCES += agrariand-res.rc
|
|
endif
|
|
agrariand_LDADD = \
|
|
$(LIBBITCOIN_SERVER) \
|
|
$(LIBBITCOIN_WALLET) \
|
|
$(LIBBITCOIN_COMMON) \
|
|
$(LIBUNIVALUE) \
|
|
$(LIBBITCOIN_ZEROCOIN) \
|
|
$(LIBBITCOIN_UTIL) \
|
|
$(LIBBITCOIN_ZMQ) \
|
|
$(LIBBITCOIN_CRYPTO) \
|
|
$(LIBLEVELDB) \
|
|
$(LIBLEVELDB_SSE42) \
|
|
$(LIBMEMENV) \
|
|
$(LIBSECP256K1)
|
|
|
|
agrariand_LDADD += $(BOOST_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(ZMQ_LIBS)
|
|
|
|
# agrarian-cli binary #
|
|
agrarian_cli_SOURCES = agrarian-cli.cpp
|
|
agrarian_cli_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(EVENT_CFLAGS)
|
|
agrarian_cli_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
agrarian_cli_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
|
|
|
|
if TARGET_WINDOWS
|
|
agrarian_cli_SOURCES += agrarian-cli-res.rc
|
|
endif
|
|
|
|
agrarian_cli_LDADD = \
|
|
$(LIBBITCOIN_CLI) \
|
|
$(LIBUNIVALUE) \
|
|
$(LIBBITCOIN_UTIL) \
|
|
$(LIBBITCOIN_CRYPTO)
|
|
|
|
agrarian_cli_LDADD += $(BOOST_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(EVENT_LIBS)
|
|
#
|
|
|
|
# agrarian-tx binary #
|
|
agrarian_tx_SOURCES = agrarian-tx.cpp
|
|
agrarian_tx_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
|
agrarian_tx_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
agrarian_tx_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
|
|
|
|
if TARGET_WINDOWS
|
|
agrarian_tx_SOURCES += agrarian-tx-res.rc
|
|
endif
|
|
|
|
agrarian_tx_LDADD = \
|
|
$(LIBUNIVALUE) \
|
|
$(LIBBITCOIN_COMMON) \
|
|
$(LIBBITCOIN_ZEROCOIN) \
|
|
$(LIBBITCOIN_UTIL) \
|
|
$(LIBBITCOIN_CRYPTO) \
|
|
$(LIBSECP256K1)
|
|
|
|
agrarian_tx_LDADD += $(BOOST_LIBS) $(CRYPTO_LIBS)
|
|
#
|
|
|
|
# bitcoinconsensus library #
|
|
if BUILD_BITCOIN_LIBS
|
|
include_HEADERS = script/bitcoinconsensus.h
|
|
libbitcoinconsensus_la_SOURCES = \
|
|
allocators.cpp \
|
|
primitives/transaction.cpp \
|
|
crypto/hmac_sha512.cpp \
|
|
crypto/scrypt.cpp \
|
|
crypto/sha1.cpp \
|
|
crypto/sha256.cpp \
|
|
crypto/sha512.cpp \
|
|
crypto/ripemd160.cpp \
|
|
hash.cpp \
|
|
pubkey.cpp \
|
|
script/script.cpp \
|
|
script/interpreter.cpp \
|
|
script/bitcoinconsensus.cpp \
|
|
uint256.cpp \
|
|
utilstrencodings.cpp
|
|
|
|
if GLIBC_BACK_COMPAT
|
|
libbitcoinconsensus_la_SOURCES += compat/glibc_compat.cpp
|
|
endif
|
|
|
|
libbitcoinconsensus_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(RELDFLAGS)
|
|
libbitcoinconsensus_la_LIBADD = $(LIBSECP256K1)
|
|
libbitcoinconsensus_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir)/obj -I$(srcdir)/secp256k1/include -DBUILD_BITCOIN_INTERNAL
|
|
libbitcoinconsensus_la_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
|
|
endif
|
|
#
|
|
|
|
CLEANFILES = $(EXTRA_LIBRARIES)
|
|
|
|
CLEANFILES += *.gcda *.gcno
|
|
CLEANFILES += compat/*.gcda compat/*.gcno
|
|
CLEANFILES += crypto/*.gcda crypto/*.gcno
|
|
CLEANFILES += libzerocoin/*.gcda libzerocoin/*.gcno
|
|
CLEANFILES += primitives/*.gcda primitives/*.gcno
|
|
CLEANFILES += rpc/*.gcda rpc/*.gcno
|
|
CLEANFILES += script/*.gcda script/*.gcno
|
|
CLEANFILES += support/*.gcda support/*.gcno
|
|
CLEANFILES += univalue/*.gcda univalue/*.gcno
|
|
CLEANFILES += wallet/*.gcda wallet/*.gcno
|
|
CLEANFILES += wallet/test/*.gcda wallet/test/*.gcno
|
|
CLEANFILES += zmq/*.gcda zmq/*.gcno
|
|
CLEANFILES += zagr/*.gcda zagr/*.gcno
|
|
CLEANFILES += obj/build.h
|
|
|
|
EXTRA_DIST =
|
|
|
|
|
|
config/agrarian-config.h: config/stamp-h1
|
|
@$(MAKE) -C $(top_builddir) $(subdir)/$(@)
|
|
config/stamp-h1: $(top_srcdir)/$(subdir)/config/agrarian-config.h.in $(top_builddir)/config.status
|
|
$(AM_V_at)$(MAKE) -C $(top_builddir) $(subdir)/$(@)
|
|
$(top_srcdir)/$(subdir)/config/agrarian-config.h.in: $(am__configure_deps)
|
|
$(AM_V_at)$(MAKE) -C $(top_srcdir) $(subdir)/config/agrarian-config.h.in
|
|
|
|
clean-local:
|
|
-$(MAKE) -C secp256k1 clean
|
|
-$(MAKE) -C univalue clean
|
|
-rm -f leveldb/*/*.gcda leveldb/*/*.gcno leveldb/helpers/memenv/*.gcda leveldb/helpers/memenv/*.gcno
|
|
-rm -f config.h
|
|
-rm -rf test/__pycache__
|
|
|
|
.rc.o:
|
|
@test -f $(WINDRES)
|
|
## FIXME: How to get the appropriate modulename_CPPFLAGS in here?
|
|
$(AM_V_GEN) $(WINDRES) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -DWINDRES_PREPROC -i $< -o $@
|
|
|
|
check-symbols: $(bin_PROGRAMS)
|
|
if GLIBC_BACK_COMPAT
|
|
@echo "Checking glibc back compat..."
|
|
$(AM_V_at) READELF=$(READELF) CPPFILT=$(CPPFILT) $(PYTHON) $(top_srcdir)/contrib/devtools/symbol-check.py < $(bin_PROGRAMS)
|
|
endif
|
|
|
|
check-security: $(bin_PROGRAMS)
|
|
if HARDEN
|
|
@echo "Checking binary security..."
|
|
$(AM_V_at) READELF=$(READELF) OBJDUMP=$(OBJDUMP) $(PYTHON) $(top_srcdir)/contrib/devtools/security-check.py < $(bin_PROGRAMS)
|
|
endif
|
|
|
|
if EMBEDDED_LEVELDB
|
|
include Makefile.leveldb.include
|
|
endif
|
|
|
|
if ENABLE_TESTS
|
|
include Makefile.test.include
|
|
endif
|
|
|
|
if ENABLE_QT
|
|
include Makefile.qt.include
|
|
endif
|
|
|
|
if ENABLE_QT_TESTS
|
|
include Makefile.qttest.include
|
|
endif
|