Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Makefile.am 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  1. # Copyright (c) 2013-2016 The Bitcoin Core developers
  2. # Distributed under the MIT software license, see the accompanying
  3. # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. DIST_SUBDIRS = secp256k1 univalue
  5. AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS) $(HARDENED_LDFLAGS)
  6. AM_CXXFLAGS = $(HARDENED_CXXFLAGS) $(ERROR_CXXFLAGS)
  7. AM_CPPFLAGS = $(HARDENED_CPPFLAGS)
  8. EXTRA_LIBRARIES =
  9. if EMBEDDED_UNIVALUE
  10. LIBUNIVALUE = univalue/libunivalue.la
  11. $(LIBUNIVALUE): $(wildcard univalue/lib/*) $(wildcard univalue/include/*)
  12. $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
  13. else
  14. LIBUNIVALUE = $(UNIVALUE_LIBS)
  15. endif
  16. BITCOIN_CONFIG_INCLUDES=-I$(builddir)/config
  17. BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BDB_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(SSL_CFLAGS)
  18. BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
  19. BITCOIN_INCLUDES += $(UNIVALUE_CFLAGS)
  20. LIBBITCOIN_SERVER=libbitcoin_server.a
  21. LIBBITCOIN_COMMON=libbitcoin_common.a
  22. LIBBITCOIN_CONSENSUS=libbitcoin_consensus.a
  23. LIBBITCOIN_CLI=libbitcoin_cli.a
  24. LIBBITCOIN_UTIL=libbitcoin_util.a
  25. LIBBITCOIN_CRYPTO=crypto/libbitcoin_crypto.a
  26. LIBBITCOINQT=qt/libbitcoinqt.a
  27. LIBSECP256K1=secp256k1/libsecp256k1.la
  28. if ENABLE_ZMQ
  29. LIBBITCOIN_ZMQ=libbitcoin_zmq.a
  30. endif
  31. if BUILD_BITCOIN_LIBS
  32. LIBBITCOINCONSENSUS=libbitcoinconsensus.la
  33. endif
  34. if ENABLE_WALLET
  35. LIBBITCOIN_WALLET=libbitcoin_wallet.a
  36. endif
  37. $(LIBSECP256K1): $(wildcard secp256k1/src/*) $(wildcard secp256k1/include/*)
  38. $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
  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:
  41. EXTRA_LIBRARIES += \
  42. $(LIBBITCOIN_CRYPTO) \
  43. $(LIBBITCOIN_UTIL) \
  44. $(LIBBITCOIN_COMMON) \
  45. $(LIBBITCOIN_CONSENSUS) \
  46. $(LIBBITCOIN_SERVER) \
  47. $(LIBBITCOIN_CLI) \
  48. $(LIBBITCOIN_WALLET) \
  49. $(LIBBITCOIN_ZMQ)
  50. lib_LTLIBRARIES = $(LIBBITCOINCONSENSUS)
  51. bin_PROGRAMS =
  52. noinst_PROGRAMS =
  53. TESTS =
  54. BENCHMARKS =
  55. if BUILD_BITCOIND
  56. bin_PROGRAMS += bitcoind
  57. endif
  58. if BUILD_BITCOIN_UTILS
  59. bin_PROGRAMS += bitcoin-cli bitcoin-tx
  60. endif
  61. .PHONY: FORCE check-symbols check-security
  62. # bitcoin core #
  63. BITCOIN_CORE_H = \
  64. addrdb.h \
  65. addrman.h \
  66. base58.h \
  67. bloom.h \
  68. blockencodings.h \
  69. chain.h \
  70. chainparams.h \
  71. chainparamsbase.h \
  72. chainparamsseeds.h \
  73. checkpoints.h \
  74. checkqueue.h \
  75. clientversion.h \
  76. coins.h \
  77. compat.h \
  78. compat/byteswap.h \
  79. compat/endian.h \
  80. compat/sanity.h \
  81. compressor.h \
  82. consensus/consensus.h \
  83. core_io.h \
  84. core_memusage.h \
  85. cuckoocache.h \
  86. fs.h \
  87. httprpc.h \
  88. httpserver.h \
  89. indirectmap.h \
  90. init.h \
  91. key.h \
  92. keystore.h \
  93. dbwrapper.h \
  94. limitedmap.h \
  95. memusage.h \
  96. merkleblock.h \
  97. miner.h \
  98. net.h \
  99. net_processing.h \
  100. netaddress.h \
  101. netbase.h \
  102. netmessagemaker.h \
  103. noui.h \
  104. policy/fees.h \
  105. policy/policy.h \
  106. policy/rbf.h \
  107. pow.h \
  108. protocol.h \
  109. random.h \
  110. reverselock.h \
  111. rpc/blockchain.h \
  112. rpc/client.h \
  113. rpc/protocol.h \
  114. rpc/server.h \
  115. rpc/register.h \
  116. scheduler.h \
  117. script/sigcache.h \
  118. script/sign.h \
  119. script/standard.h \
  120. script/ismine.h \
  121. streams.h \
  122. support/allocators/secure.h \
  123. support/allocators/zeroafterfree.h \
  124. support/cleanse.h \
  125. support/events.h \
  126. support/lockedpool.h \
  127. sync.h \
  128. threadsafety.h \
  129. threadinterrupt.h \
  130. timedata.h \
  131. torcontrol.h \
  132. txdb.h \
  133. txmempool.h \
  134. ui_interface.h \
  135. undo.h \
  136. util.h \
  137. utilmoneystr.h \
  138. utiltime.h \
  139. validation.h \
  140. validationinterface.h \
  141. versionbits.h \
  142. wallet/coincontrol.h \
  143. wallet/crypter.h \
  144. wallet/db.h \
  145. wallet/feebumper.h \
  146. wallet/rpcwallet.h \
  147. wallet/wallet.h \
  148. wallet/walletdb.h \
  149. warnings.h \
  150. zmq/zmqabstractnotifier.h \
  151. zmq/zmqconfig.h\
  152. zmq/zmqnotificationinterface.h \
  153. zmq/zmqpublishnotifier.h
  154. obj/build.h: FORCE
  155. @$(MKDIR_P) $(builddir)/obj
  156. @$(top_srcdir)/share/genbuild.sh "$(abs_top_builddir)/src/obj/build.h" \
  157. "$(abs_top_srcdir)"
  158. libbitcoin_util_a-clientversion.$(OBJEXT): obj/build.h
  159. # server: shared between bitcoind and bitcoin-qt
  160. libbitcoin_server_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAGS) $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)
  161. libbitcoin_server_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  162. libbitcoin_server_a_SOURCES = \
  163. addrdb.cpp \
  164. addrman.cpp \
  165. bloom.cpp \
  166. blockencodings.cpp \
  167. chain.cpp \
  168. checkpoints.cpp \
  169. httprpc.cpp \
  170. httpserver.cpp \
  171. init.cpp \
  172. dbwrapper.cpp \
  173. merkleblock.cpp \
  174. miner.cpp \
  175. net.cpp \
  176. net_processing.cpp \
  177. noui.cpp \
  178. policy/fees.cpp \
  179. policy/policy.cpp \
  180. pow.cpp \
  181. rest.cpp \
  182. rpc/blockchain.cpp \
  183. rpc/mining.cpp \
  184. rpc/misc.cpp \
  185. rpc/net.cpp \
  186. rpc/rawtransaction.cpp \
  187. rpc/server.cpp \
  188. script/sigcache.cpp \
  189. script/ismine.cpp \
  190. timedata.cpp \
  191. torcontrol.cpp \
  192. txdb.cpp \
  193. txmempool.cpp \
  194. ui_interface.cpp \
  195. validation.cpp \
  196. validationinterface.cpp \
  197. versionbits.cpp \
  198. $(BITCOIN_CORE_H)
  199. if ENABLE_ZMQ
  200. libbitcoin_zmq_a_CPPFLAGS = $(BITCOIN_INCLUDES) $(ZMQ_CFLAGS)
  201. libbitcoin_zmq_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  202. libbitcoin_zmq_a_SOURCES = \
  203. zmq/zmqabstractnotifier.cpp \
  204. zmq/zmqnotificationinterface.cpp \
  205. zmq/zmqpublishnotifier.cpp
  206. endif
  207. # wallet: shared between bitcoind and bitcoin-qt, but only linked
  208. # when wallet enabled
  209. libbitcoin_wallet_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
  210. libbitcoin_wallet_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  211. libbitcoin_wallet_a_SOURCES = \
  212. wallet/crypter.cpp \
  213. wallet/db.cpp \
  214. wallet/feebumper.cpp \
  215. wallet/rpcdump.cpp \
  216. wallet/rpcwallet.cpp \
  217. wallet/wallet.cpp \
  218. wallet/walletdb.cpp \
  219. policy/rbf.cpp \
  220. $(BITCOIN_CORE_H)
  221. # crypto primitives library
  222. crypto_libbitcoin_crypto_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_CONFIG_INCLUDES)
  223. crypto_libbitcoin_crypto_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  224. crypto_libbitcoin_crypto_a_SOURCES = \
  225. crypto/aes.cpp \
  226. crypto/aes.h \
  227. crypto/chacha20.h \
  228. crypto/chacha20.cpp \
  229. crypto/common.h \
  230. crypto/hmac_sha256.cpp \
  231. crypto/hmac_sha256.h \
  232. crypto/hmac_sha512.cpp \
  233. crypto/hmac_sha512.h \
  234. crypto/ripemd160.cpp \
  235. crypto/ripemd160.h \
  236. crypto/sha1.cpp \
  237. crypto/sha1.h \
  238. crypto/sha256.cpp \
  239. crypto/sha256.h \
  240. crypto/sha512.cpp \
  241. crypto/sha512.h
  242. # consensus: shared between all executables that validate any consensus rules.
  243. libbitcoin_consensus_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
  244. libbitcoin_consensus_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  245. libbitcoin_consensus_a_SOURCES = \
  246. amount.h \
  247. arith_uint256.cpp \
  248. arith_uint256.h \
  249. consensus/merkle.cpp \
  250. consensus/merkle.h \
  251. consensus/params.h \
  252. consensus/validation.h \
  253. hash.cpp \
  254. hash.h \
  255. prevector.h \
  256. primitives/block.cpp \
  257. primitives/block.h \
  258. primitives/transaction.cpp \
  259. primitives/transaction.h \
  260. pubkey.cpp \
  261. pubkey.h \
  262. script/bitcoinconsensus.cpp \
  263. script/interpreter.cpp \
  264. script/interpreter.h \
  265. script/script.cpp \
  266. script/script.h \
  267. script/script_error.cpp \
  268. script/script_error.h \
  269. serialize.h \
  270. tinyformat.h \
  271. uint256.cpp \
  272. uint256.h \
  273. utilstrencodings.cpp \
  274. utilstrencodings.h \
  275. version.h
  276. # common: shared between bitcoind, and bitcoin-qt and non-server tools
  277. libbitcoin_common_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
  278. libbitcoin_common_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  279. libbitcoin_common_a_SOURCES = \
  280. amount.cpp \
  281. base58.cpp \
  282. chainparams.cpp \
  283. coins.cpp \
  284. compressor.cpp \
  285. core_read.cpp \
  286. core_write.cpp \
  287. key.cpp \
  288. keystore.cpp \
  289. netaddress.cpp \
  290. netbase.cpp \
  291. protocol.cpp \
  292. scheduler.cpp \
  293. script/sign.cpp \
  294. script/standard.cpp \
  295. warnings.cpp \
  296. $(BITCOIN_CORE_H)
  297. # util: shared between all executables.
  298. # This library *must* be included to make sure that the glibc
  299. # backward-compatibility objects and their sanity checks are linked.
  300. libbitcoin_util_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
  301. libbitcoin_util_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  302. libbitcoin_util_a_SOURCES = \
  303. support/lockedpool.cpp \
  304. chainparamsbase.cpp \
  305. clientversion.cpp \
  306. compat/glibc_sanity.cpp \
  307. compat/glibcxx_sanity.cpp \
  308. compat/strnlen.cpp \
  309. fs.cpp \
  310. random.cpp \
  311. rpc/protocol.cpp \
  312. support/cleanse.cpp \
  313. sync.cpp \
  314. threadinterrupt.cpp \
  315. util.cpp \
  316. utilmoneystr.cpp \
  317. utilstrencodings.cpp \
  318. utiltime.cpp \
  319. $(BITCOIN_CORE_H)
  320. if GLIBC_BACK_COMPAT
  321. libbitcoin_util_a_SOURCES += compat/glibc_compat.cpp
  322. endif
  323. # cli: shared between bitcoin-cli and bitcoin-qt
  324. libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
  325. libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  326. libbitcoin_cli_a_SOURCES = \
  327. rpc/client.cpp \
  328. $(BITCOIN_CORE_H)
  329. nodist_libbitcoin_util_a_SOURCES = $(srcdir)/obj/build.h
  330. #
  331. # bitcoind binary #
  332. bitcoind_SOURCES = bitcoind.cpp
  333. bitcoind_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
  334. bitcoind_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  335. bitcoind_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
  336. if TARGET_WINDOWS
  337. bitcoind_SOURCES += bitcoind-res.rc
  338. endif
  339. bitcoind_LDADD = \
  340. $(LIBBITCOIN_SERVER) \
  341. $(LIBBITCOIN_COMMON) \
  342. $(LIBUNIVALUE) \
  343. $(LIBBITCOIN_UTIL) \
  344. $(LIBBITCOIN_WALLET) \
  345. $(LIBBITCOIN_ZMQ) \
  346. $(LIBBITCOIN_CONSENSUS) \
  347. $(LIBBITCOIN_CRYPTO) \
  348. $(LIBLEVELDB) \
  349. $(LIBMEMENV) \
  350. $(LIBSECP256K1)
  351. bitcoind_LDADD += $(BOOST_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(ZMQ_LIBS)
  352. # bitcoin-cli binary #
  353. bitcoin_cli_SOURCES = bitcoin-cli.cpp
  354. bitcoin_cli_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(EVENT_CFLAGS)
  355. bitcoin_cli_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  356. bitcoin_cli_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
  357. if TARGET_WINDOWS
  358. bitcoin_cli_SOURCES += bitcoin-cli-res.rc
  359. endif
  360. bitcoin_cli_LDADD = \
  361. $(LIBBITCOIN_CLI) \
  362. $(LIBUNIVALUE) \
  363. $(LIBBITCOIN_UTIL) \
  364. $(LIBBITCOIN_CRYPTO)
  365. bitcoin_cli_LDADD += $(BOOST_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(EVENT_LIBS)
  366. #
  367. # bitcoin-tx binary #
  368. bitcoin_tx_SOURCES = bitcoin-tx.cpp
  369. bitcoin_tx_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
  370. bitcoin_tx_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  371. bitcoin_tx_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
  372. if TARGET_WINDOWS
  373. bitcoin_tx_SOURCES += bitcoin-tx-res.rc
  374. endif
  375. bitcoin_tx_LDADD = \
  376. $(LIBUNIVALUE) \
  377. $(LIBBITCOIN_COMMON) \
  378. $(LIBBITCOIN_UTIL) \
  379. $(LIBBITCOIN_CONSENSUS) \
  380. $(LIBBITCOIN_CRYPTO) \
  381. $(LIBSECP256K1)
  382. bitcoin_tx_LDADD += $(BOOST_LIBS) $(CRYPTO_LIBS)
  383. #
  384. # bitcoinconsensus library #
  385. if BUILD_BITCOIN_LIBS
  386. include_HEADERS = script/bitcoinconsensus.h
  387. libbitcoinconsensus_la_SOURCES = $(crypto_libbitcoin_crypto_a_SOURCES) $(libbitcoin_consensus_a_SOURCES)
  388. if GLIBC_BACK_COMPAT
  389. libbitcoinconsensus_la_SOURCES += compat/glibc_compat.cpp
  390. endif
  391. libbitcoinconsensus_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(RELDFLAGS)
  392. libbitcoinconsensus_la_LIBADD = $(LIBSECP256K1)
  393. libbitcoinconsensus_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir)/obj -I$(srcdir)/secp256k1/include -DBUILD_BITCOIN_INTERNAL
  394. libbitcoinconsensus_la_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
  395. endif
  396. #
  397. CTAES_DIST = crypto/ctaes/bench.c
  398. CTAES_DIST += crypto/ctaes/ctaes.c
  399. CTAES_DIST += crypto/ctaes/ctaes.h
  400. CTAES_DIST += crypto/ctaes/README.md
  401. CTAES_DIST += crypto/ctaes/test.c
  402. CLEANFILES = $(EXTRA_LIBRARIES)
  403. CLEANFILES += *.gcda *.gcno
  404. CLEANFILES += compat/*.gcda compat/*.gcno
  405. CLEANFILES += consensus/*.gcda consensus/*.gcno
  406. CLEANFILES += crypto/*.gcda crypto/*.gcno
  407. CLEANFILES += policy/*.gcda policy/*.gcno
  408. CLEANFILES += primitives/*.gcda primitives/*.gcno
  409. CLEANFILES += script/*.gcda script/*.gcno
  410. CLEANFILES += support/*.gcda support/*.gcno
  411. CLEANFILES += univalue/*.gcda univalue/*.gcno
  412. CLEANFILES += wallet/*.gcda wallet/*.gcno
  413. CLEANFILES += wallet/test/*.gcda wallet/test/*.gcno
  414. CLEANFILES += zmq/*.gcda zmq/*.gcno
  415. DISTCLEANFILES = obj/build.h
  416. EXTRA_DIST = $(CTAES_DIST)
  417. config/bitcoin-config.h: config/stamp-h1
  418. @$(MAKE) -C $(top_builddir) $(subdir)/$(@)
  419. config/stamp-h1: $(top_srcdir)/$(subdir)/config/bitcoin-config.h.in $(top_builddir)/config.status
  420. $(AM_V_at)$(MAKE) -C $(top_builddir) $(subdir)/$(@)
  421. $(top_srcdir)/$(subdir)/config/bitcoin-config.h.in: $(am__configure_deps)
  422. $(AM_V_at)$(MAKE) -C $(top_srcdir) $(subdir)/config/bitcoin-config.h.in
  423. clean-local:
  424. -$(MAKE) -C secp256k1 clean
  425. -$(MAKE) -C univalue clean
  426. -rm -f leveldb/*/*.gcda leveldb/*/*.gcno leveldb/helpers/memenv/*.gcda leveldb/helpers/memenv/*.gcno
  427. -rm -f config.h
  428. -rm -rf test/__pycache__
  429. .rc.o:
  430. @test -f $(WINDRES)
  431. ## FIXME: How to get the appropriate modulename_CPPFLAGS in here?
  432. $(AM_V_GEN) $(WINDRES) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -DWINDRES_PREPROC -i $< -o $@
  433. .mm.o:
  434. $(AM_V_CXX) $(OBJCXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  435. $(CPPFLAGS) $(AM_CXXFLAGS) $(QT_INCLUDES) $(AM_CXXFLAGS) $(PIE_FLAGS) $(CXXFLAGS) -c -o $@ $<
  436. check-symbols: $(bin_PROGRAMS)
  437. if GLIBC_BACK_COMPAT
  438. @echo "Checking glibc back compat..."
  439. $(AM_V_at) READELF=$(READELF) CPPFILT=$(CPPFILT) $(top_srcdir)/contrib/devtools/symbol-check.py < $(bin_PROGRAMS)
  440. endif
  441. check-security: $(bin_PROGRAMS)
  442. if HARDEN
  443. @echo "Checking binary security..."
  444. $(AM_V_at) READELF=$(READELF) OBJDUMP=$(OBJDUMP) $(top_srcdir)/contrib/devtools/security-check.py < $(bin_PROGRAMS)
  445. endif
  446. %.pb.cc %.pb.h: %.proto
  447. @test -f $(PROTOC)
  448. $(AM_V_GEN) $(PROTOC) --cpp_out=$(@D) --proto_path=$(<D) $<
  449. if EMBEDDED_LEVELDB
  450. include Makefile.leveldb.include
  451. endif
  452. if ENABLE_TESTS
  453. include Makefile.test.include
  454. endif
  455. if ENABLE_BENCH
  456. include Makefile.bench.include
  457. endif
  458. if ENABLE_QT
  459. include Makefile.qt.include
  460. endif
  461. if ENABLE_QT_TESTS
  462. include Makefile.qttest.include
  463. endif