Makefile.am 12.7 KB
Newer Older
Luke Dashjr's avatar
Luke Dashjr committed
1
2
3
4
# 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.

5
DIST_SUBDIRS = secp256k1 univalue
6

7
8
9
AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS) $(HARDENED_LDFLAGS)
AM_CXXFLAGS = $(HARDENED_CXXFLAGS)
AM_CPPFLAGS = $(HARDENED_CPPFLAGS)
10
EXTRA_LIBRARIES =
11

12
13
14
15
16
17
18
19
20
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

21
BITCOIN_CONFIG_INCLUDES=-I$(builddir)/config
22
BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BDB_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(SSL_CFLAGS)
Cory Fields's avatar
Cory Fields committed
23

24
BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
25
BITCOIN_INCLUDES += $(UNIVALUE_CFLAGS)
26

27
28
LIBBITCOIN_SERVER=libbitcoin_server.a
LIBBITCOIN_COMMON=libbitcoin_common.a
29
LIBBITCOIN_CONSENSUS=libbitcoin_consensus.a
30
31
32
33
LIBBITCOIN_CLI=libbitcoin_cli.a
LIBBITCOIN_UTIL=libbitcoin_util.a
LIBBITCOIN_CRYPTO=crypto/libbitcoin_crypto.a
LIBBITCOINQT=qt/libbitcoinqt.a
34
35
LIBSECP256K1=secp256k1/libsecp256k1.la

36
37
38
39
40
41
42
43
44
45
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

46
$(LIBSECP256K1): $(wildcard secp256k1/src/*) $(wildcard secp256k1/include/*)
47
	$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
48

49
50
# 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:
51
EXTRA_LIBRARIES += \
52
53
54
55
56
57
58
59
  $(LIBBITCOIN_CRYPTO) \
  $(LIBBITCOIN_UTIL) \
  $(LIBBITCOIN_COMMON) \
  $(LIBBITCOIN_CONSENSUS) \
  $(LIBBITCOIN_SERVER) \
  $(LIBBITCOIN_CLI) \
  $(LIBBITCOIN_WALLET) \
  $(LIBBITCOIN_ZMQ)
60

61
lib_LTLIBRARIES = $(LIBBITCOINCONSENSUS)
62

63
bin_PROGRAMS =
Patrick Strateman's avatar
Patrick Strateman committed
64
noinst_PROGRAMS =
65
TESTS =
66
BENCHMARKS =
67
68
69
70
71

if BUILD_BITCOIND
  bin_PROGRAMS += bitcoind
endif

72
73
if BUILD_BITCOIN_UTILS
  bin_PROGRAMS += bitcoin-cli bitcoin-tx
74
endif
75

76
.PHONY: FORCE check-symbols check-security
77
# bitcoin core #
78
BITCOIN_CORE_H = \
79
  addrdb.h \
80
  addrman.h \
Pieter Wuille's avatar
Pieter Wuille committed
81
  base58.h \
82
  bloom.h \
83
  blockencodings.h \
84
  chain.h \
85
  chainparams.h \
Jorge Timón's avatar
Jorge Timón committed
86
  chainparamsbase.h \
87
  chainparamsseeds.h \
88
89
90
91
92
  checkpoints.h \
  checkqueue.h \
  clientversion.h \
  coins.h \
  compat.h \
Jorge Timón's avatar
Jorge Timón committed
93
94
95
  compat/byteswap.h \
  compat/endian.h \
  compat/sanity.h \
96
  compressor.h \
97
  consensus/consensus.h \
98
  core_io.h \
99
  core_memusage.h \
100
101
  httprpc.h \
  httpserver.h \
102
  indirectmap.h \
103
104
105
  init.h \
  key.h \
  keystore.h \
106
  dbwrapper.h \
107
  limitedmap.h \
Pieter Wuille's avatar
Pieter Wuille committed
108
  memusage.h \
109
  merkleblock.h \
110
111
  miner.h \
  net.h \
112
  net_processing.h \
113
  netaddress.h \
Cory Fields's avatar
Cory Fields committed
114
  netbase.h \
115
  netmessagemaker.h \
116
  noui.h \
117
  policy/fees.h \
118
  policy/policy.h \
119
  policy/rbf.h \
120
  pow.h \
121
  protocol.h \
122
  random.h \
123
  reverselock.h \
Daniel Cousens's avatar
Daniel Cousens committed
124
125
126
  rpc/client.h \
  rpc/protocol.h \
  rpc/server.h \
127
  rpc/register.h \
128
  scheduler.h \
Pieter Wuille's avatar
Pieter Wuille committed
129
  script/sigcache.h \
jtimon's avatar
jtimon committed
130
  script/sign.h \
jtimon's avatar
jtimon committed
131
  script/standard.h \
132
  script/ismine.h \
133
  streams.h \
134
135
  support/allocators/secure.h \
  support/allocators/zeroafterfree.h \
136
  support/cleanse.h \
137
  support/lockedpool.h \
138
139
  sync.h \
  threadsafety.h \
140
  timedata.h \
141
  torcontrol.h \
142
143
144
  txdb.h \
  txmempool.h \
  ui_interface.h \
145
  undo.h \
146
  util.h \
Wladimir J. van der Laan's avatar
Wladimir J. van der Laan committed
147
148
  utilmoneystr.h \
  utiltime.h \
149
  validation.h \
150
  validationinterface.h \
Pieter Wuille's avatar
Pieter Wuille committed
151
  versionbits.h \
152
  wallet/coincontrol.h \
Cory Fields's avatar
Cory Fields committed
153
  wallet/crypter.h \
Jorge Timón's avatar
Jorge Timón committed
154
  wallet/db.h \
155
  wallet/rpcwallet.h \
156
  wallet/wallet.h \
157
  wallet/walletdb.h \
158
  warnings.h \
159
160
161
162
163
  zmq/zmqabstractnotifier.h \
  zmq/zmqconfig.h\
  zmq/zmqnotificationinterface.h \
  zmq/zmqpublishnotifier.h

164

165
obj/build.h: FORCE
166
	@$(MKDIR_P) $(builddir)/obj
167
168
	@$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
	  $(abs_top_srcdir)
169
libbitcoin_util_a-clientversion.$(OBJEXT): obj/build.h
170

171
# server: shared between bitcoind and bitcoin-qt
172
173
libbitcoin_server_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAGS) $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)
libbitcoin_server_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
174
175
libbitcoin_server_a_SOURCES = \
  addrman.cpp \
176
  addrdb.cpp \
177
  bloom.cpp \
178
  blockencodings.cpp \
179
  chain.cpp \
180
  checkpoints.cpp \
181
182
  httprpc.cpp \
  httpserver.cpp \
183
  init.cpp \
184
  dbwrapper.cpp \
185
  merkleblock.cpp \
186
  miner.cpp \
187
  net.cpp \
188
  net_processing.cpp \
189
  noui.cpp \
190
  policy/fees.cpp \
191
  policy/policy.cpp \
192
  pow.cpp \
193
  rest.cpp \
Daniel Cousens's avatar
Daniel Cousens committed
194
195
196
197
198
199
  rpc/blockchain.cpp \
  rpc/mining.cpp \
  rpc/misc.cpp \
  rpc/net.cpp \
  rpc/rawtransaction.cpp \
  rpc/server.cpp \
Pieter Wuille's avatar
Pieter Wuille committed
200
  script/sigcache.cpp \
201
  script/ismine.cpp \
202
  timedata.cpp \
203
  torcontrol.cpp \
204
205
  txdb.cpp \
  txmempool.cpp \
206
  ui_interface.cpp \
207
  validation.cpp \
208
  validationinterface.cpp \
Pieter Wuille's avatar
Pieter Wuille committed
209
  versionbits.cpp \
210
211
  $(BITCOIN_CORE_H)

212
if ENABLE_ZMQ
Cory Fields's avatar
Cory Fields committed
213
libbitcoin_zmq_a_CPPFLAGS = $(BITCOIN_INCLUDES) $(ZMQ_CFLAGS)
214
libbitcoin_zmq_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
215
216
217
218
219
220
221
libbitcoin_zmq_a_SOURCES = \
  zmq/zmqabstractnotifier.cpp \
  zmq/zmqnotificationinterface.cpp \
  zmq/zmqpublishnotifier.cpp
endif


222
223
# wallet: shared between bitcoind and bitcoin-qt, but only linked
# when wallet enabled
224
225
libbitcoin_wallet_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
libbitcoin_wallet_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
226
libbitcoin_wallet_a_SOURCES = \
Cory Fields's avatar
Cory Fields committed
227
  wallet/crypter.cpp \
228
229
230
231
232
  wallet/db.cpp \
  wallet/rpcdump.cpp \
  wallet/rpcwallet.cpp \
  wallet/wallet.cpp \
  wallet/walletdb.cpp \
233
  policy/rbf.cpp \
234
235
  $(BITCOIN_CORE_H)

236
# crypto primitives library
237
238
crypto_libbitcoin_crypto_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_CONFIG_INCLUDES)
crypto_libbitcoin_crypto_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
239
crypto_libbitcoin_crypto_a_SOURCES = \
240
241
  crypto/aes.cpp \
  crypto/aes.h \
242
  crypto/common.h \
Jorge Timón's avatar
Jorge Timón committed
243
  crypto/hmac_sha256.cpp \
Pieter Wuille's avatar
Pieter Wuille committed
244
  crypto/hmac_sha256.h \
Jorge Timón's avatar
Jorge Timón committed
245
  crypto/hmac_sha512.cpp \
Pieter Wuille's avatar
Pieter Wuille committed
246
  crypto/hmac_sha512.h \
Jorge Timón's avatar
Jorge Timón committed
247
248
249
  crypto/ripemd160.cpp \
  crypto/ripemd160.h \
  crypto/sha1.cpp \
250
  crypto/sha1.h \
Jorge Timón's avatar
Jorge Timón committed
251
252
253
254
  crypto/sha256.cpp \
  crypto/sha256.h \
  crypto/sha512.cpp \
  crypto/sha512.h
255

256
257
258
259
260
# consensus: shared between all executables that validate any consensus rules.
libbitcoin_consensus_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
libbitcoin_consensus_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
libbitcoin_consensus_a_SOURCES = \
  amount.h \
261
262
263
264
265
266
  arith_uint256.cpp \
  arith_uint256.h \
  consensus/merkle.cpp \
  consensus/merkle.h \
  consensus/params.h \
  consensus/validation.h \
267
268
269
  hash.cpp \
  hash.h \
  prevector.h \
270
271
  primitives/block.cpp \
  primitives/block.h \
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
  primitives/transaction.cpp \
  primitives/transaction.h \
  pubkey.cpp \
  pubkey.h \
  script/bitcoinconsensus.cpp \
  script/interpreter.cpp \
  script/interpreter.h \
  script/script.cpp \
  script/script.h \
  script/script_error.cpp \
  script/script_error.h \
  serialize.h \
  tinyformat.h \
  uint256.cpp \
  uint256.h \
  utilstrencodings.cpp \
  utilstrencodings.h \
  version.h

291
# common: shared between bitcoind, and bitcoin-qt and non-server tools
292
293
libbitcoin_common_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
libbitcoin_common_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
294
libbitcoin_common_a_SOURCES = \
295
  amount.cpp \
296
  base58.cpp \
297
  chainparams.cpp \
298
  coins.cpp \
299
  compressor.cpp \
300
301
  core_read.cpp \
  core_write.cpp \
302
  key.cpp \
303
  keystore.cpp \
304
  netaddress.cpp \
305
306
  netbase.cpp \
  protocol.cpp \
307
  scheduler.cpp \
jtimon's avatar
jtimon committed
308
  script/sign.cpp \
jtimon's avatar
jtimon committed
309
  script/standard.cpp \
310
  warnings.cpp \
311
312
313
314
315
  $(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.
316
317
libbitcoin_util_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
libbitcoin_util_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
318
libbitcoin_util_a_SOURCES = \
319
  support/lockedpool.cpp \
320
  chainparamsbase.cpp \
321
  clientversion.cpp \
322
323
324
  compat/glibc_sanity.cpp \
  compat/glibcxx_sanity.cpp \
  compat/strnlen.cpp \
325
  random.cpp \
Daniel Cousens's avatar
Daniel Cousens committed
326
  rpc/protocol.cpp \
327
  support/cleanse.cpp \
328
329
  sync.cpp \
  util.cpp \
Wladimir J. van der Laan's avatar
Wladimir J. van der Laan committed
330
  utilmoneystr.cpp \
331
  utilstrencodings.cpp \
Wladimir J. van der Laan's avatar
Wladimir J. van der Laan committed
332
  utiltime.cpp \
333
334
  $(BITCOIN_CORE_H)

335
if GLIBC_BACK_COMPAT
336
libbitcoin_util_a_SOURCES += compat/glibc_compat.cpp
337
338
endif

339
# cli: shared between bitcoin-cli and bitcoin-qt
340
341
libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
342
libbitcoin_cli_a_SOURCES = \
Daniel Cousens's avatar
Daniel Cousens committed
343
  rpc/client.cpp \
344
345
  $(BITCOIN_CORE_H)

346
nodist_libbitcoin_util_a_SOURCES = $(srcdir)/obj/build.h
347
348
349
#

# bitcoind binary #
350
bitcoind_SOURCES = bitcoind.cpp
351
352
bitcoind_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
bitcoind_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
353
354
355
356
357
358
bitcoind_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)

if TARGET_WINDOWS
bitcoind_SOURCES += bitcoind-res.rc
endif

359
bitcoind_LDADD = \
360
361
  $(LIBBITCOIN_SERVER) \
  $(LIBBITCOIN_COMMON) \
362
  $(LIBUNIVALUE) \
363
  $(LIBBITCOIN_UTIL) \
364
365
  $(LIBBITCOIN_WALLET) \
  $(LIBBITCOIN_ZMQ) \
366
  $(LIBBITCOIN_CONSENSUS) \
367
  $(LIBBITCOIN_CRYPTO) \
368
  $(LIBLEVELDB) \
369
370
  $(LIBMEMENV) \
  $(LIBSECP256K1)
371

372
bitcoind_LDADD += $(BOOST_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(ZMQ_LIBS)
373

374
375
# bitcoin-cli binary #
bitcoin_cli_SOURCES = bitcoin-cli.cpp
376
377
bitcoin_cli_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(EVENT_CFLAGS)
bitcoin_cli_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
378
379
bitcoin_cli_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)

380
if TARGET_WINDOWS
381
bitcoin_cli_SOURCES += bitcoin-cli-res.rc
382
383
endif

384
bitcoin_cli_LDADD = \
385
  $(LIBBITCOIN_CLI) \
386
  $(LIBUNIVALUE) \
387
388
  $(LIBBITCOIN_UTIL) \
  $(LIBBITCOIN_CRYPTO)
389

390
bitcoin_cli_LDADD += $(BOOST_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(EVENT_LIBS)
391
392
#

393
# bitcoin-tx binary #
394
bitcoin_tx_SOURCES = bitcoin-tx.cpp
395
396
bitcoin_tx_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
bitcoin_tx_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
397
398
bitcoin_tx_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)

399
400
401
402
if TARGET_WINDOWS
bitcoin_tx_SOURCES += bitcoin-tx-res.rc
endif

403
bitcoin_tx_LDADD = \
404
  $(LIBUNIVALUE) \
405
406
  $(LIBBITCOIN_COMMON) \
  $(LIBBITCOIN_UTIL) \
407
  $(LIBBITCOIN_CONSENSUS) \
408
  $(LIBBITCOIN_CRYPTO) \
409
  $(LIBSECP256K1)
410

411
bitcoin_tx_LDADD += $(BOOST_LIBS) $(CRYPTO_LIBS)
412
#
413

414
# bitcoinconsensus library #
415
416
if BUILD_BITCOIN_LIBS
include_HEADERS = script/bitcoinconsensus.h
417
libbitcoinconsensus_la_SOURCES = $(crypto_libbitcoin_crypto_a_SOURCES) $(libbitcoin_consensus_a_SOURCES)
418
419
420
421
422

if GLIBC_BACK_COMPAT
  libbitcoinconsensus_la_SOURCES += compat/glibc_compat.cpp
endif

423
libbitcoinconsensus_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(RELDFLAGS)
424
425
libbitcoinconsensus_la_LIBADD = $(LIBSECP256K1)
libbitcoinconsensus_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir)/obj -I$(srcdir)/secp256k1/include -DBUILD_BITCOIN_INTERNAL
426
libbitcoinconsensus_la_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
427

428
endif
429
#
430

431
432
433
434
435
436
CTAES_DIST =  crypto/ctaes/bench.c
CTAES_DIST += crypto/ctaes/ctaes.c
CTAES_DIST += crypto/ctaes/ctaes.h
CTAES_DIST += crypto/ctaes/README.md
CTAES_DIST += crypto/ctaes/test.c

Cory Fields's avatar
Cory Fields committed
437
438
CLEANFILES = $(EXTRA_LIBRARIES)

439
440
441
442
443
444
445
446
447
448
449
450
CLEANFILES += *.gcda *.gcno
CLEANFILES += compat/*.gcda compat/*.gcno
CLEANFILES += consensus/*.gcda consensus/*.gcno
CLEANFILES += crypto/*.gcda crypto/*.gcno
CLEANFILES += policy/*.gcda policy/*.gcno
CLEANFILES += primitives/*.gcda primitives/*.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
451
452
453

DISTCLEANFILES = obj/build.h

Cory Fields's avatar
Cory Fields committed
454
EXTRA_DIST = $(CTAES_DIST)
455
456

clean-local:
457
	-$(MAKE) -C secp256k1 clean
458
	-$(MAKE) -C univalue clean
459
	-rm -f leveldb/*/*.gcda leveldb/*/*.gcno leveldb/helpers/memenv/*.gcda leveldb/helpers/memenv/*.gcno
460
	-rm -f config.h
Cory Fields's avatar
Cory Fields committed
461
	-rm -rf test/__pycache__
462

463
.rc.o:
464
	@test -f $(WINDRES)
465
466
	## FIXME: How to get the appropriate modulename_CPPFLAGS in here?
	$(AM_V_GEN) $(WINDRES) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -DWINDRES_PREPROC -i $< -o $@
467
468

.mm.o:
469
	$(AM_V_CXX) $(OBJCXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
470
	  $(CPPFLAGS) $(AM_CXXFLAGS) $(QT_INCLUDES) $(AM_CXXFLAGS) $(PIE_FLAGS) $(CXXFLAGS) -c -o $@ $<
471

472
473
474
475
476
477
478
479
480
481
482
483
check-symbols: $(bin_PROGRAMS)
if GLIBC_BACK_COMPAT
	@echo "Checking glibc back compat..."
	$(AM_V_at) READELF=$(READELF) CPPFILT=$(CPPFILT) $(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) $(top_srcdir)/contrib/devtools/security-check.py < $(bin_PROGRAMS)
endif

484
%.pb.cc %.pb.h: %.proto
485
	@test -f $(PROTOC)
486
	$(AM_V_GEN) $(PROTOC) --cpp_out=$(@D) --proto_path=$(<D) $<
487

488
489
490
491
if EMBEDDED_LEVELDB
include Makefile.leveldb.include
endif

492
493
494
495
if ENABLE_TESTS
include Makefile.test.include
endif

496
497
498
499
if ENABLE_BENCH
include Makefile.bench.include
endif

500
501
502
503
504
505
506
if ENABLE_QT
include Makefile.qt.include
endif

if ENABLE_QT_TESTS
include Makefile.qttest.include
endif