]> Git Repo - VerusCoin.git/blame - src/Makefile.am
test
[VerusCoin.git] / src / Makefile.am
CommitLineData
4300876c 1DIST_SUBDIRS = secp256k1
575e70c0 2AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS)
eb12a14d 3
35b8af92 4
6b9f0d55 5if EMBEDDED_LEVELDB
56c157d5
CF
6LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/include
7LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/helpers/memenv
8LIBLEVELDB += $(builddir)/leveldb/libleveldb.a
9LIBMEMENV += $(builddir)/leveldb/libmemenv.a
6b9f0d55
CF
10
11# 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
12$(LIBLEVELDB): $(LIBMEMENV)
13
14$(LIBLEVELDB) $(LIBMEMENV):
15 @echo "Building LevelDB ..." && $(MAKE) -C $(@D) $(@F) CXX="$(CXX)" \
16 CC="$(CC)" PLATFORM=$(TARGET_OS) AR="$(AR)" $(LEVELDB_TARGET_FLAGS) \
ff7fe8b1 17 OPT="$(CXXFLAGS) $(CPPFLAGS) -D__STDC_LIMIT_MACROS"
6b9f0d55
CF
18endif
19
54372482 20BITCOIN_CONFIG_INCLUDES=-I$(builddir)/config
6b099402 21BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(SSL_CFLAGS)
f4d81129 22
55668266 23BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
55668266 24
84ce18ca
WL
25LIBBITCOIN_SERVER=libbitcoin_server.a
26LIBBITCOIN_WALLET=libbitcoin_wallet.a
27LIBBITCOIN_COMMON=libbitcoin_common.a
28LIBBITCOIN_CLI=libbitcoin_cli.a
29LIBBITCOIN_UTIL=libbitcoin_util.a
30LIBBITCOIN_CRYPTO=crypto/libbitcoin_crypto.a
cbe39a38 31LIBBITCOIN_UNIVALUE=univalue/libbitcoin_univalue.a
84ce18ca 32LIBBITCOINQT=qt/libbitcoinqt.a
07a99017 33LIBSECP256K1=secp256k1/libsecp256k1.la
cc686fe5 34LIBZCASH=libzcash.a -lcurl
07a99017
PW
35
36$(LIBSECP256K1): $(wildcard secp256k1/src/*) $(wildcard secp256k1/include/*)
4300876c 37 $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
84ce18ca 38
071473c5 39# Make is not made aware of per-object dependencies to avoid limiting building parallelization
40# But to build the less dependent modules first, we manually select their order here:
fe925e22 41EXTRA_LIBRARIES = \
071473c5 42 crypto/libbitcoin_crypto.a \
84ce18ca 43 libbitcoin_util.a \
071473c5 44 libbitcoin_common.a \
cbe39a38 45 univalue/libbitcoin_univalue.a \
071473c5 46 libbitcoin_server.a \
e463edc1 47 libbitcoin_cli.a \
1785bdb9 48 libzcash.a
4f9e993b 49if ENABLE_WALLET
f4d81129 50BITCOIN_INCLUDES += $(BDB_CPPFLAGS)
fe925e22 51EXTRA_LIBRARIES += libbitcoin_wallet.a
4f9e993b 52endif
35b8af92 53
cdd36c6c 54if BUILD_BITCOIN_LIBS
08d6b02d
JG
55lib_LTLIBRARIES = libzcashconsensus.la
56LIBZCASH_CONSENSUS=libzcashconsensus.la
cdd36c6c 57else
08d6b02d 58LIBZCASH_CONSENSUS=
cdd36c6c 59endif
2cf5f16c 60
f930341d 61bin_PROGRAMS =
65e8ba4d 62TESTS =
f930341d
LD
63
64if BUILD_BITCOIND
5166804f 65 bin_PROGRAMS += komodod
f930341d
LD
66endif
67
c101c769 68if BUILD_BITCOIN_UTILS
4d65d051 69 bin_PROGRAMS += komodo-cli komodo-tx
f930341d 70endif
35b8af92 71
1785bdb9 72LIBZCASH_H = \
c06664fb 73 zcash/IncrementalMerkleTree.hpp \
6c36a9fe 74 zcash/NoteEncryption.hpp \
369df065
SB
75 zcash/Address.hpp \
76 zcash/JoinSplit.hpp \
77 zcash/Note.hpp \
81469bbb 78 zcash/prf.h \
9ffe371d 79 zcash/Proof.hpp \
cc552e4d
KG
80 zcash/util.h \
81 zcash/Zcash.h
e463edc1 82
a5e918a0 83.PHONY: FORCE check-symbols check-security
35b8af92 84# bitcoin core #
5a407bd0
WL
85BITCOIN_CORE_H = \
86 addrman.h \
87 alert.h \
a372168e 88 amount.h \
bfc60703 89 arith_uint256.h \
fc72c078
S
90 asyncrpcoperation.h \
91 asyncrpcqueue.h \
7cd0af7c 92 base58.h \
5a407bd0 93 bloom.h \
e8b5f0d5 94 chain.h \
bfc60703 95 chainparams.h \
ff734e90 96 chainparamsbase.h \
a60120e9 97 chainparamsseeds.h \
5a407bd0
WL
98 checkpoints.h \
99 checkqueue.h \
100 clientversion.h \
101 coincontrol.h \
102 coins.h \
103 compat.h \
ff734e90
JT
104 compat/byteswap.h \
105 compat/endian.h \
106 compat/sanity.h \
561e9e9d 107 compressor.h \
691161d4 108 consensus/consensus.h \
bd006110 109 consensus/params.h \
da29ecbc 110 consensus/validation.h \
ae775b5b 111 core_io.h \
900078ae 112 eccryptoverify.h \
50f71cd5 113 ecwrapper.h \
5a407bd0
WL
114 hash.h \
115 init.h \
116 key.h \
117 keystore.h \
118 leveldbwrapper.h \
119 limitedmap.h \
120 main.h \
540629c6 121 memusage.h \
afd4b94b 122 merkleblock.h \
a6df7ab5 123 metrics.h \
5a407bd0
WL
124 miner.h \
125 mruset.h \
5a407bd0 126 net.h \
ff734e90 127 netbase.h \
5a407bd0 128 noui.h \
b649e039 129 policy/fees.h \
df852d2b 130 pow.h \
bfc60703
WL
131 primitives/block.h \
132 primitives/transaction.h \
5a407bd0 133 protocol.h \
d2e74c55 134 pubkey.h \
6354935c 135 random.h \
6b51b9b1 136 reverselock.h \
fb78cc23
WL
137 rpcclient.h \
138 rpcprotocol.h \
139 rpcserver.h \
928b950e 140 scheduler.h \
611116d4 141 script/interpreter.h \
cbd22a50 142 script/script.h \
ff734e90 143 script/script_error.h \
5c1e798a 144 script/sigcache.h \
e088d65a 145 script/sign.h \
c4408a6c 146 script/standard.h \
5a407bd0 147 serialize.h \
fa736190 148 streams.h \
d7d187e8
CF
149 support/allocators/secure.h \
150 support/allocators/zeroafterfree.h \
1630219d 151 support/cleanse.h \
d7d187e8 152 support/pagelocker.h \
5a407bd0
WL
153 sync.h \
154 threadsafety.h \
14f888ca 155 timedata.h \
b77dfdc9 156 tinyformat.h \
5a407bd0
WL
157 txdb.h \
158 txmempool.h \
159 ui_interface.h \
160 uint256.h \
defe37a6 161 uint252.h \
999a2ab4 162 undo.h \
5a407bd0 163 util.h \
ad49c256 164 utilmoneystr.h \
bfc60703 165 utilstrencodings.h \
ad49c256 166 utiltime.h \
26c16d9d 167 validationinterface.h \
5a407bd0 168 version.h \
fc72c078 169 wallet/asyncrpcoperation_sendmany.h \
a354a59f 170 wallet/crypter.h \
ff734e90 171 wallet/db.h \
50c72f23
JS
172 wallet/wallet.h \
173 wallet/wallet_ismine.h \
ff734e90 174 wallet/walletdb.h
5a407bd0
WL
175
176JSON_H = \
177 json/json_spirit.h \
178 json/json_spirit_error_position.h \
179 json/json_spirit_reader.h \
180 json/json_spirit_reader_template.h \
181 json/json_spirit_stream_reader.h \
182 json/json_spirit_utils.h \
183 json/json_spirit_value.h \
184 json/json_spirit_writer.h \
35b8af92
CF
185 json/json_spirit_writer_template.h
186
187obj/build.h: FORCE
56c157d5 188 @$(MKDIR_P) $(builddir)/obj
35b8af92
CF
189 @$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
190 $(abs_top_srcdir)
71697f97 191libbitcoin_util_a-clientversion.$(OBJEXT): obj/build.h
35b8af92 192
84ce18ca 193# server: shared between bitcoind and bitcoin-qt
9f7f504e 194libbitcoin_server_a_CPPFLAGS = $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAGS)
4f9e993b 195libbitcoin_server_a_SOURCES = \
b39e1bdb 196 sendalert.cpp \
4f9e993b
WL
197 addrman.cpp \
198 alert.cpp \
7553b173 199 alertkeys.h \
fc72c078
S
200 asyncrpcoperation.cpp \
201 asyncrpcqueue.cpp \
fb78cc23 202 bloom.cpp \
e8b5f0d5 203 chain.cpp \
4f9e993b 204 checkpoints.cpp \
4f9e993b 205 init.cpp \
4f9e993b
WL
206 leveldbwrapper.cpp \
207 main.cpp \
afd4b94b 208 merkleblock.cpp \
a6df7ab5 209 metrics.cpp \
4a85e067 210 miner.cpp \
4f9e993b
WL
211 net.cpp \
212 noui.cpp \
b649e039 213 policy/fees.cpp \
df852d2b 214 pow.cpp \
e2655e0a 215 rest.cpp \
4f9e993b 216 rpcblockchain.cpp \
4a85e067 217 rpcmining.cpp \
652e1569 218 rpcmisc.cpp \
4f9e993b
WL
219 rpcnet.cpp \
220 rpcrawtransaction.cpp \
dfd39962 221 rpcserver.cpp \
bfe029fe 222 script/sigcache.cpp \
14f888ca 223 timedata.cpp \
4f9e993b
WL
224 txdb.cpp \
225 txmempool.cpp \
26c16d9d 226 validationinterface.cpp \
4f9e993b 227 $(JSON_H) \
e463edc1 228 $(BITCOIN_CORE_H) \
1785bdb9 229 $(LIBZCASH_H)
4f9e993b 230
84ce18ca
WL
231# wallet: shared between bitcoind and bitcoin-qt, but only linked
232# when wallet enabled
f4d81129 233libbitcoin_wallet_a_CPPFLAGS = $(BITCOIN_INCLUDES)
4f9e993b 234libbitcoin_wallet_a_SOURCES = \
6962bb3d 235 zcbenchmarks.cpp \
2f3ecb44 236 zcbenchmarks.h \
fc72c078 237 wallet/asyncrpcoperation_sendmany.cpp \
a354a59f 238 wallet/crypter.cpp \
50c72f23 239 wallet/db.cpp \
50c72f23
JS
240 wallet/rpcdump.cpp \
241 wallet/rpcwallet.cpp \
242 wallet/wallet.cpp \
243 wallet/wallet_ismine.cpp \
244 wallet/walletdb.cpp \
e463edc1 245 $(BITCOIN_CORE_H) \
1785bdb9 246 $(LIBZCASH_H)
0b47fe6b 247
c7aaab7a
DH
248EQUIHASH_TROMP_SOURCES = \
249 pow/tromp/equi_miner.h \
250 pow/tromp/equi.h \
251 pow/tromp/osx_barrier.h
252
84ce18ca 253# crypto primitives library
c7aaab7a 254crypto_libbitcoin_crypto_a_CPPFLAGS = $(BITCOIN_CONFIG_INCLUDES) -DEQUIHASH_TROMP_ATOMIC
4791b99e 255crypto_libbitcoin_crypto_a_SOURCES = \
4791b99e 256 crypto/common.h \
6d25662f
JG
257 crypto/equihash.cpp \
258 crypto/equihash.h \
60157808 259 crypto/equihash.tcc \
ff734e90 260 crypto/hmac_sha256.cpp \
a8f5087e 261 crypto/hmac_sha256.h \
ff734e90 262 crypto/hmac_sha512.cpp \
36fa4a78 263 crypto/hmac_sha512.h \
ff734e90
JT
264 crypto/ripemd160.cpp \
265 crypto/ripemd160.h \
266 crypto/sha1.cpp \
4791b99e 267 crypto/sha1.h \
ff734e90
JT
268 crypto/sha256.cpp \
269 crypto/sha256.h \
270 crypto/sha512.cpp \
c7aaab7a
DH
271 crypto/sha512.h \
272 ${EQUIHASH_TROMP_SOURCES}
4791b99e 273
cbe39a38
JG
274# univalue JSON library
275univalue_libbitcoin_univalue_a_SOURCES = \
276 univalue/univalue.cpp \
ff734e90 277 univalue/univalue.h \
3cceba7a 278 univalue/univalue_escapes.h \
ff734e90
JT
279 univalue/univalue_read.cpp \
280 univalue/univalue_write.cpp
cbe39a38 281
84ce18ca 282# common: shared between bitcoind, and bitcoin-qt and non-server tools
f4d81129 283libbitcoin_common_a_CPPFLAGS = $(BITCOIN_INCLUDES)
0b47fe6b 284libbitcoin_common_a_SOURCES = \
eda37330 285 amount.cpp \
ff734e90 286 arith_uint256.cpp \
75c82d49 287 base58.cpp \
0b47fe6b 288 chainparams.cpp \
75c82d49 289 coins.cpp \
561e9e9d 290 compressor.cpp \
ae775b5b
JG
291 core_read.cpp \
292 core_write.cpp \
900078ae 293 eccryptoverify.cpp \
50f71cd5 294 ecwrapper.cpp \
0b47fe6b
WL
295 hash.cpp \
296 key.cpp \
75c82d49 297 keystore.cpp \
0b47fe6b 298 netbase.cpp \
ff734e90
JT
299 primitives/block.cpp \
300 primitives/transaction.cpp \
0b47fe6b 301 protocol.cpp \
d2e74c55 302 pubkey.cpp \
928b950e 303 scheduler.cpp \
611116d4 304 script/interpreter.cpp \
cbd22a50 305 script/script.cpp \
ff734e90 306 script/script_error.cpp \
e088d65a 307 script/sign.cpp \
c4408a6c 308 script/standard.cpp \
e463edc1 309 $(BITCOIN_CORE_H) \
1785bdb9 310 $(LIBZCASH_H)
84ce18ca
WL
311
312# util: shared between all executables.
313# This library *must* be included to make sure that the glibc
314# backward-compatibility objects and their sanity checks are linked.
315libbitcoin_util_a_CPPFLAGS = $(BITCOIN_INCLUDES)
316libbitcoin_util_a_SOURCES = \
d7d187e8 317 support/pagelocker.cpp \
84ce18ca 318 chainparamsbase.cpp \
71697f97 319 clientversion.cpp \
bfc60703
WL
320 compat/glibc_sanity.cpp \
321 compat/glibcxx_sanity.cpp \
322 compat/strnlen.cpp \
6354935c 323 random.cpp \
84ce18ca 324 rpcprotocol.cpp \
1630219d 325 support/cleanse.cpp \
0b47fe6b 326 sync.cpp \
de79aaa7 327 uint256.cpp \
0b47fe6b 328 util.cpp \
ad49c256 329 utilmoneystr.cpp \
bfc60703 330 utilstrencodings.cpp \
ad49c256 331 utiltime.cpp \
e463edc1 332 $(BITCOIN_CORE_H) \
1785bdb9 333 $(LIBZCASH_H)
35b8af92 334
d5aab704 335if GLIBC_BACK_COMPAT
84ce18ca 336libbitcoin_util_a_SOURCES += compat/glibc_compat.cpp
d5aab704
CF
337endif
338
84ce18ca 339# cli: shared between bitcoin-cli and bitcoin-qt
a65668dd 340libbitcoin_cli_a_CPPFLAGS = $(BITCOIN_INCLUDES)
0b47fe6b
WL
341libbitcoin_cli_a_SOURCES = \
342 rpcclient.cpp \
e463edc1 343 $(BITCOIN_CORE_H) \
1785bdb9 344 $(LIBZCASH_H)
0b47fe6b 345
84ce18ca 346nodist_libbitcoin_util_a_SOURCES = $(srcdir)/obj/build.h
35b8af92
CF
347#
348
349# bitcoind binary #
5166804f 350komodod_SOURCES = bitcoind.cpp
351komodod_CPPFLAGS = $(BITCOIN_INCLUDES)
352komodod_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
72ac792b 353
354if TARGET_WINDOWS
5166804f 355komodod_SOURCES += bitcoind-res.rc
72ac792b 356endif
357
5166804f 358komodod_LDADD = \
84ce18ca
WL
359 $(LIBBITCOIN_SERVER) \
360 $(LIBBITCOIN_COMMON) \
cbe39a38 361 $(LIBBITCOIN_UNIVALUE) \
84ce18ca
WL
362 $(LIBBITCOIN_UTIL) \
363 $(LIBBITCOIN_CRYPTO) \
1785bdb9 364 $(LIBZCASH) \
4a290b52 365 $(LIBLEVELDB) \
07a99017
PW
366 $(LIBMEMENV) \
367 $(LIBSECP256K1)
55668266 368
4f9e993b 369if ENABLE_WALLET
5166804f 370komodod_LDADD += libbitcoin_wallet.a
4f9e993b 371endif
72ac792b 372
5166804f 373komodod_LDADD += \
c4da0970
NW
374 $(BOOST_LIBS) \
375 $(BDB_LIBS) \
376 $(SSL_LIBS) \
377 $(CRYPTO_LIBS) \
378 $(MINIUPNPC_LIBS) \
1785bdb9 379 $(LIBZCASH) \
d3612b1c 380 $(LIBBITCOIN_CRYPTO) \
1785bdb9 381 $(LIBZCASH_LIBS)
35b8af92
CF
382#
383
72ac792b 384# bitcoin-cli binary #
5166804f 385komodo_cli_SOURCES = bitcoin-cli.cpp
386komodo_cli_CPPFLAGS = $(BITCOIN_INCLUDES)
387komodo_cli_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
72ac792b 388
dee632cc 389if TARGET_WINDOWS
5166804f 390komodo_cli_SOURCES += bitcoin-cli-res.rc
dee632cc
CF
391endif
392
5166804f 393komodo_cli_LDADD = \
84ce18ca 394 $(LIBBITCOIN_CLI) \
c4da0970
NW
395 $(LIBBITCOIN_UTIL) \
396 $(BOOST_LIBS) \
397 $(SSL_LIBS) \
398 $(CRYPTO_LIBS) \
1785bdb9 399 $(LIBZCASH) \
d3612b1c 400 $(LIBBITCOIN_CRYPTO) \
1785bdb9 401 $(LIBZCASH_LIBS)
2a03a390
WL
402#
403
66a89c08 404# zcash-tx binary #
4d65d051 405komodo_tx_SOURCES = komodo-tx.cpp
406komodo_tx_CPPFLAGS = $(BITCOIN_INCLUDES)
407komodo_tx_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
72ac792b 408
cc24610f 409if TARGET_WINDOWS
4d65d051 410komodo_tx_SOURCES += bitcoin-tx-res.rc
cc24610f
LD
411endif
412
66a89c08 413# FIXME: Is libzcash needed for zcash_tx?
4d65d051 414komodo_tx_LDADD = \
cbe39a38
JG
415 $(LIBBITCOIN_UNIVALUE) \
416 $(LIBBITCOIN_COMMON) \
417 $(LIBBITCOIN_UTIL) \
c4da0970 418 $(LIBSECP256K1) \
1785bdb9 419 $(LIBZCASH) \
d3612b1c 420 $(LIBBITCOIN_CRYPTO) \
1785bdb9 421 $(LIBZCASH_LIBS)
28d412ff 422
4d65d051 423komodo_tx_LDADD += $(BOOST_LIBS) $(CRYPTO_LIBS)
cbe39a38 424#
2a03a390 425
c9c4611d 426# zcash protocol primitives #
1785bdb9 427libzcash_a_SOURCES = \
e1ff849d 428 zcash/IncrementalMerkleTree.cpp \
6c36a9fe 429 zcash/NoteEncryption.cpp \
369df065
SB
430 zcash/Address.cpp \
431 zcash/JoinSplit.cpp \
f0dab51c 432 zcash/Proof.cpp \
369df065 433 zcash/Note.cpp \
81469bbb 434 zcash/prf.cpp \
58d09f27
KG
435 zcash/util.cpp \
436 zcash/circuit/commitment.tcc \
437 zcash/circuit/gadget.tcc \
438 zcash/circuit/merkle.tcc \
439 zcash/circuit/note.tcc \
440 zcash/circuit/prfs.tcc \
441 zcash/circuit/utils.tcc
e463edc1 442
f5d3d420
TH
443libzcash_a_CPPFLAGS = -DMULTICORE -fopenmp -fPIC -DBINARY_OUTPUT -DCURVE_ALT_BN128 -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS $(HARDENED_CPPFLAGS) -pipe -O1 -g -Wstack-protector -fstack-protector-all -fPIE -fvisibility=hidden -DSTATIC $(BITCOIN_INCLUDES)
444
445libzcash_a_CXXFLAGS = $(HARDENED_CXXFLAGS) -fwrapv -fno-strict-aliasing
446
447libzcash_a_LDFLAGS = $(HARDENED_LDFLAGS)
e463edc1 448
decde386
SB
449libzcash_a_CPPFLAGS += -DMONTGOMERY_OUTPUT
450
08d6b02d 451# zcashconsensus library #
2cf5f16c 452if BUILD_BITCOIN_LIBS
08d6b02d
JG
453include_HEADERS = script/zcashconsensus.h
454libzcashconsensus_la_SOURCES = \
6d25662f 455 crypto/equihash.cpp \
36fa4a78 456 crypto/hmac_sha512.cpp \
bfc60703 457 crypto/ripemd160.cpp \
2cf5f16c 458 crypto/sha1.cpp \
36fa4a78
PW
459 crypto/sha256.cpp \
460 crypto/sha512.cpp \
2cf5f16c
CF
461 eccryptoverify.cpp \
462 ecwrapper.cpp \
463 hash.cpp \
bfc60703 464 primitives/transaction.cpp \
2cf5f16c 465 pubkey.cpp \
08d6b02d 466 script/zcashconsensus.cpp \
bfc60703
WL
467 script/interpreter.cpp \
468 script/script.cpp \
2cf5f16c
CF
469 uint256.cpp \
470 utilstrencodings.cpp
471
472if GLIBC_BACK_COMPAT
08d6b02d 473 libzcashconsensus_la_SOURCES += compat/glibc_compat.cpp
2cf5f16c
CF
474endif
475
08d6b02d
JG
476libzcashconsensus_la_LDFLAGS = -no-undefined $(RELDFLAGS)
477libzcashconsensus_la_LIBADD = $(CRYPTO_LIBS)
478libzcashconsensus_la_CPPFLAGS = $(CRYPTO_CFLAGS) -I$(builddir)/obj -DBUILD_BITCOIN_INTERNAL
72ac792b 479
cdd36c6c 480endif
72ac792b 481#
2cf5f16c 482
35b8af92
CF
483CLEANFILES = leveldb/libleveldb.a leveldb/libmemenv.a *.gcda *.gcno
484
485DISTCLEANFILES = obj/build.h
486
4ec57478 487EXTRA_DIST = leveldb
35b8af92
CF
488
489clean-local:
490 -$(MAKE) -C leveldb clean
4300876c 491 -$(MAKE) -C secp256k1 clean
26d1b65c 492 rm -f leveldb/*/*.gcno leveldb/helpers/memenv/*.gcno
54372482 493 -rm -f config.h
65e8ba4d 494
6b9f0d55 495.rc.o:
70c71c50 496 @test -f $(WINDRES)
71697f97 497 $(AM_V_GEN) $(WINDRES) -DWINDRES_PREPROC -i $< -o $@
6b9f0d55
CF
498
499.mm.o:
70c71c50 500 $(AM_V_CXX) $(OBJCXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
6b9f0d55
CF
501 $(CPPFLAGS) $(AM_CXXFLAGS) $(QT_INCLUDES) $(CXXFLAGS) -c -o $@ $<
502
a5e918a0
CF
503check-symbols: $(bin_PROGRAMS)
504if GLIBC_BACK_COMPAT
505 @echo "Checking glibc back compat of [$(bin_PROGRAMS)]..."
506 $(AM_V_at) READELF=$(READELF) CPPFILT=$(CPPFILT) $(top_srcdir)/contrib/devtools/symbol-check.py < $(bin_PROGRAMS)
507endif
508
56734f4b
TH
509check-security: $(bin_PROGRAMS)
510if HARDEN
511 @echo "Checking binary security of [$(bin_PROGRAMS)]..."
512 $(AM_V_at) READELF=$(READELF) OBJDUMP=$(OBJDUMP) $(top_srcdir)/contrib/devtools/security-check.py < $(bin_PROGRAMS)
513endif
514
6b9f0d55 515%.pb.cc %.pb.h: %.proto
70c71c50
CF
516 @test -f $(PROTOC)
517 $(AM_V_GEN) $(PROTOC) --cpp_out=$(@D) --proto_path=$(abspath $(<D) $<)
6b9f0d55 518
65e8ba4d
CF
519if ENABLE_TESTS
520include Makefile.test.include
6bd8e469 521include Makefile.gtest.include
65e8ba4d
CF
522endif
523
524if ENABLE_QT
525include Makefile.qt.include
526endif
527
528if ENABLE_QT_TESTS
529include Makefile.qttest.include
530endif
6e96cf08
SB
531
532include Makefile.zcash.include
This page took 0.254415 seconds and 4 git commands to generate.