-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathmakefile.am
691 lines (612 loc) · 16.3 KB
/
makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
FwalDIST_SUBDIRS = secp256k1
AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS)
CXXFLAGS += -std=c++0x
CPPFLAGS += -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-result -DBOOST_SYSTEM_NO_DEPRECATED=1
if EMBEDDED_LEVELDB
LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/include
LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/helpers/memenv
LEVELDB_CPPFLAGS += -Wno-deprecated
LIBLEVELDB += $(builddir)/leveldb/libleveldb.a
LIBMEMENV += $(builddir)/leveldb/libmemenv.a
# 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
$(LIBLEVELDB): $(LIBMEMENV)
$(LIBLEVELDB) $(LIBMEMENV):
@echo "Building LevelDB ..." && $(MAKE) -C $(@D) $(@F) CXX="$(CXX)" \
CC="$(CC)" PLATFORM=$(TARGET_OS) AR="$(AR)" $(LEVELDB_TARGET_FLAGS) \
OPT="$(CXXFLAGS) $(CPPFLAGS)"
endif
FFF_CONFIG_INCLUDES=-I$(builddir)/config
FFF_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(SSL_CFLAGS)
FFF_INCLUDES += -I$(srcdir)/secp256k1/include
LIBFFF_ENTERPRISE=libFFF_enterprise.a
LIBFFF_COMMUNITY=libFFF_community.a
LIBFFF_SERVER=libFFF_server.a
LIBFFF_WALLET=libFFF_wallet.a
LIBFFF_COMMON=libFFF_common.a
LIBFFF_CLI=libFFF_cli.a
LIBFFF_UTIL=libFFF_util.a
LIBFFF_CRYPTO=crypto/libFFF_crypto.a
LIBFFF_FFF_Core=FFF_Core/libFFF_FFF_Core.a
LIBFFF_UNIVALUE=univalue/libFFF_univalue.a
LIBFFFQT=qt/libFFFqt.a
LIBSECP256K1=secp256k1/libsecp256k1.la
if !TARGET_WINDOWS
LIBFFF_V8=libFFF_v8.a
endif
$(LIBSECP256K1): $(wildcard secp256k1/src/*) $(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 = \
crypto/libFFF_crypto.a \
FFF_Core/libFFF_FFF_Core.a \
libFFF_util.a \
libFFF_common.a \
univalue/libFFF_univalue.a \
libFFF_enterprise.a \
libFFF_community.a \
libFFF_server.a \
libFFF_cli.a
if ENABLE_WALLET
FFF_INCLUDES += $(BDB_CPPFLAGS)
EXTRA_LIBRARIES += libFFF_wallet.a
endif
if !TARGET_WINDOWS
EXTRA_LIBRARIES += $(LIBFFF_V8)
endif
if BUILD_FFF_LIBS
lib_LTLIBRARIES = libFFFconsensus.la
LIBFFF_CONSENSUS=libFFFconsensus.la
else
LIBFFF_CONSENSUS=
endif
bin_PROGRAMS =
TESTS =
if BUILD_FFFD
# bin_PROGRAMS += FFFd FFF_Cored # MCHN
bin_PROGRAMS += FFF_Cored FFF_Cored-cold # MCHN
endif
if BUILD_FFF_UTILS
# bin_PROGRAMS += FFF_Core-util FFF_Core-cli FFF-cli FFF-tx # MCHN
bin_PROGRAMS += FFF_Core-util FFF_Core-cli # MCHN
endif
.PHONY: FORCE
# FFF core #
FFF_CORE_H = \
storage/addrman.h \
structs/alert.h \
utils/allocators.h \
structs/amount.h \
structs/base58.h \
structs/bloom.h \
chain/chain.h \
chainparams/chainparams.h \
chainparams/chainparamsbase.h \
chainparams/chainparamsseeds.h \
chain/checkpoints.h \
checkqueue.h \
version/clientversion.h \
coincontrol.h \
storage/coins.h \
utils/compat.h \
utils/compressor.h \
primitives/block.h \
primitives/transaction.h \
utils/core_io.h \
wallet/crypter.h \
wallet/dbflat.h \
wallet/db.h \
wallet/dbwrap.h \
structs/hash.h \
core/init.h \
keys/key.h \
wallet/keystore.h \
storage/leveldbwrapper.h \
structs/limitedmap.h \
core/main.h \
chain/merkleblock.h \
miner/miner.h \
utils/mruset.h \
net/netbase.h \
net/net.h \
ui/noui.h \
chain/pow.h \
protocol/netprotocol.h \
keys/pubkey.h \
utils/random.h \
utils/utilparse.h \
rpc/rpcclient.h \
rpc/rpcprotocol.h \
rpc/rpcasio.h \
rpc/rpcutils.h \
rpc/rpcwallet.h \
rpc/rpcserver.h \
script/interpreter.h \
script/interpreter.h \
script/script.h \
script/sigcache.h \
script/sign.h \
script/standard.h \
script/script_error.h \
utils/serialize.h \
utils/streams.h \
utils/sync.h \
utils/threadsafety.h \
utils/timedata.h \
utils/tinyformat.h \
storage/txdb.h \
chain/txmempool.h \
ui/ui_interface.h \
structs/uint256.h \
chain/undo.h \
utils/util.h \
utils/utilstrencodings.h \
utils/utilmoneystr.h \
utils/utiltime.h \
version/bcversion.h \
wallet/wallet.h \
wallet/wallettxs.h \
wallet/wallet_ismine.h \
wallet/walletdb.h \
compat/sanity.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 \
json_spirit_ubjson.h
obj/build.h: FORCE
@$(MKDIR_P) $(builddir)/obj
@$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
$(abs_top_srcdir)
libFFF_util_a-clientversion.$(OBJEXT): obj/build.h
libFFF_community_a_CPPFLAGS = $(FFF_INCLUDES)
libFFF_community_a_SOURCES = \
community/community.cpp \
wallet/db.cpp \
wallet/dbwrap_com.cpp
if ENABLE_ENTERPRISE
include entMakefile.am
else
libFFF_enterprise_a_CPPFLAGS = $(FFF_INCLUDES)
libFFF_enterprise_a_SOURCES = \
community/community.cpp \
wallet/db.cpp \
wallet/dbwrap_com.cpp
endif
# server: shared between FFFd and FFF-qt
libFFF_server_a_CPPFLAGS = $(FFF_INCLUDES) $(MINIUPNPC_CPPFLAGS)
libFFF_server_a_SOURCES = \
storage/addrman.cpp \
structs/alert.cpp \
structs/bloom.cpp \
chain/chain.cpp \
chain/checkpoints.cpp \
core/init.cpp \
storage/leveldbwrapper.cpp \
core/main.cpp \
protocol/FFF_Coretx.cpp \
protocol/FFF_Coreblock.cpp \
custom/custom_server.cpp \
filters/FFF_Corefilter.cpp \
protocol/relay.cpp \
protocol/handshake.cpp \
chain/merkleblock.cpp \
miner/miner.cpp \
net/net.cpp \
ui/noui.cpp \
chain/pow.cpp \
net/rest.cpp \
utils/utilparse.cpp \
json/json_spirit_ubjson.cpp \
rpc/rpcrawdata.cpp \
rpc/rpcutils.cpp \
rpc/rpccache.cpp \
rpc/rpcchunks.cpp \
rpc/rpcdebug.cpp \
rpc/rpchelp.cpp \
rpc/rpcblockchain.cpp \
rpc/rpcmining.cpp \
rpc/rpcmisc.cpp \
rpc/rpcnet.cpp \
rpc/rpcrawtransaction.cpp \
rpc/rpcfeeds.cpp \
rpc/rpcserver.cpp \
script/sigcache.cpp \
utils/timedata.cpp \
storage/txdb.cpp \
chain/txmempool.cpp \
$(JSON_H) \
$(FFF_CORE_H)
# wallet: shared between FFFd and FFF-qt, but only linked
# when wallet enabled
libFFF_wallet_a_CPPFLAGS = $(FFF_INCLUDES)
libFFF_wallet_a_SOURCES = \
wallet/dbflat.cpp \
wallet/crypter.cpp \
community/license.cpp \
rpc/rpcdump.cpp \
rpc/rpcwallet.cpp \
rpc/rpcwalletutils.cpp \
rpc/rpcwallettxs.cpp \
rpc/rpcexchange.cpp \
rpc/rpcwalletsend.cpp \
rpc/rpcpermissions.cpp \
rpc/rpcassets.cpp \
rpc/rpcstreams.cpp \
rpc/rpcupgrades.cpp \
rpc/rpcfilters.cpp \
rpc/rpcvariables.cpp \
rpc/rpclibraries.cpp \
rpc/rpclicense.cpp \
rpc/rpcexplorer.cpp \
wallet/wallet.cpp \
wallet/walletcoins.cpp \
wallet/wallettxs.cpp \
wallet/wallet_ismine.cpp \
wallet/walletdb.cpp \
$(FFF_CORE_H)
# crypto primitives library
crypto_libFFF_crypto_a_CPPFLAGS = $(FFF_CONFIG_INCLUDES)
crypto_libFFF_crypto_a_SOURCES = \
crypto/sha1.cpp \
crypto/sha256.cpp \
crypto/sha512.cpp \
crypto/hmac_sha256.cpp \
crypto/hmac_sha512.cpp \
crypto/ripemd160.cpp \
crypto/common.h \
crypto/sha256.h \
crypto/sha512.h \
crypto/hmac_sha256.h \
crypto/hmac_sha512.h \
crypto/sha1.h \
crypto/ripemd160.h
# FFF_Core library
FFF_Core_libFFF_FFF_Core_a_CPPFLAGS = $(FFF_CONFIG_INCLUDES)
FFF_Core_libFFF_FFF_Core_a_SOURCES = \
utils/utility.cpp \
utils/systemdependent.cpp \
utils/tools.cpp \
utils/utilwrapper.cpp \
version/version.cpp \
custom/custom.cpp \
custom/custom_FFF_Core.cpp \
chainparams/params.cpp \
protocol/FFF_Corescript.cpp \
utils/dbwrapper.cpp \
wallet/wallettxdb.cpp \
wallet/chunkdb.cpp \
wallet/chunkcollector.cpp \
permissions/permission.cpp \
entities/asset.cpp
# univalue JSON library
univalue_libFFF_univalue_a_SOURCES = \
univalue/univalue.cpp \
univalue/univalue_read.cpp \
univalue/univalue_write.cpp \
univalue/univalue_escapes.h \
univalue/univalue.h
# common: shared between FFFd, and FFF-qt and non-server tools
libFFF_common_a_CPPFLAGS = $(FFF_INCLUDES)
libFFF_common_a_SOURCES = \
utils/allocators.cpp \
structs/amount.cpp \
structs/base58.cpp \
chainparams/chainparams.cpp \
storage/coins.cpp \
utils/compressor.cpp \
primitives/block.cpp \
primitives/transaction.cpp \
utils/core_read.cpp \
utils/core_write.cpp \
structs/hash.cpp \
keys/key.cpp \
wallet/keystore.cpp \
net/netbase.cpp \
protocol/netprotocol.cpp \
keys/pubkey.cpp \
script/interpreter.cpp \
script/script.cpp \
script/sign.cpp \
script/standard.cpp \
script/script_error.cpp \
$(FFF_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.
libFFF_util_a_CPPFLAGS = $(FFF_INCLUDES)
libFFF_util_a_SOURCES = \
compat/strnlen.cpp \
compat/glibc_sanity.cpp \
compat/glibcxx_sanity.cpp \
chainparams/chainparamsbase.cpp \
version/clientversion.cpp \
utils/random.cpp \
rpc/rpcprotocol.cpp \
utils/sync.cpp \
structs/uint256.cpp \
utils/util.cpp \
utils/utilstrencodings.cpp \
utils/utilmoneystr.cpp \
utils/utiltime.cpp \
$(FFF_CORE_H)
if GLIBC_BACK_COMPAT
libFFF_util_a_SOURCES += compat/glibc_compat.cpp
libFFF_util_a_SOURCES += compat/glibcxx_compat.cpp
endif
# cli: shared between FFF-cli and FFF-qt
libFFF_cli_a_CPPFLAGS = $(FFF_INCLUDES)
libFFF_cli_a_SOURCES = \
rpc/rpcclient.cpp \
$(FFF_CORE_H)
nodist_libFFF_util_a_SOURCES = $(srcdir)/obj/build.h
#
# FFFd binary #
#FFFd_LDADD = \
$(LIBFFF_SERVER) \
$(LIBFFF_COMMON) \
$(LIBFFF_UNIVALUE) \
$(LIBFFF_WALLET) \
$(LIBFFF_FFF_Core) \
$(LIBFFF_UTIL) \
$(LIBFFF_CRYPTO) \
$(LIBLEVELDB) \
$(LIBMEMENV) \
$(LIBSECP256K1)
#if ENABLE_WALLET
#FFFd_LDADD += libFFF_wallet.a
#endif
#FFFd_LDADD += FFF_Core/libFFF_FFF_Core.a
#FFFd_SOURCES = FFFd.cpp chainparams/buildgenesis.cpp
#
if TARGET_WINDOWS
#FFFd_SOURCES += FFFd-res.rc
endif
#FFFd_LDADD += $(BOOST_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS)
#FFFd_CPPFLAGS = $(FFF_INCLUDES)
#FFFd_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
# FFF-cli binary #
#FFF_cli_LDADD = \
$(LIBFFF_CLI) \
$(LIBFFF_UTIL) \
$(LIBFFF_FFF_Core) \
$(LIBFFF_CRYPTO) \
$(LIBLEVELDB) \
$(BOOST_LIBS) \
$(SSL_LIBS) \
$(CRYPTO_LIBS)
#FFF_cli_SOURCES = \
FFF-cli.cpp
#FFF_cli_CPPFLAGS = $(FFF_INCLUDES)
#
# FFF-tx binary #
#FFF_tx_LDADD = \
$(LIBFFF_COMMON) \
$(LIBFFF_UNIVALUE) \
$(LIBFFF_FFF_Core) \
$(LIBFFF_UTIL) \
$(LIBFFF_CRYPTO) \
$(LIBLEVELDB) \
$(LIBSECP256K1) \
$(BOOST_LIBS) \
$(CRYPTO_LIBS)
#FFF_tx_SOURCES = FFF-tx.cpp
#FFF_tx_CPPFLAGS = $(FFF_INCLUDES)
#
#FFF_tx_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
if TARGET_WINDOWS
#FFF_cli_SOURCES += FFF-cli-res.rc
endif
#FFF_cli_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
# MCHN START
V8_ROOT = $(top_builddir)/v8build/v8
V8_INCLUDE = -I$(V8_ROOT)/include
V8_LIB_DIR = $(V8_ROOT)/out.gn/x64.release/obj
V8_LIBS = \
-L$(V8_LIB_DIR) -L$(V8_LIB_DIR)/third_party/icu
if !TARGET_DARWIN
V8_LIBS += \
-Wl,--start-group
endif
V8_LIBS += \
-lv8_libbase \
-lv8_libplatform \
-lv8_base \
-lv8_external_snapshot \
-lv8_libsampler \
-licuuc \
-licui18n \
-lv8_data \
-ldl
if !TARGET_DARWIN
V8_LIBS += \
-lrt
endif
libFFF_v8_a_SOURCES = \
v8/v8engine.cpp \
v8/v8filter.cpp \
v8/callbacks.cpp \
v8/v8json_spirit.cpp
#if TARGET_WINDOWS
#libFFF_v8_a_SOURCES += v8/callbacks_win.cpp v8/v8blob.dpp
#endif
libFFF_v8_a_CPPFLAGS = $(FFF_INCLUDES) $(V8_INCLUDE)
# FFF_Cored binary #
FFF_Cored_LDADD = \
$(LIBFFF_SERVER) \
$(LIBFFF_COMMON) \
$(LIBFFF_UNIVALUE) \
$(LIBFFF_WALLET) \
$(LIBFFF_ENTERPRISE) \
$(LIBFFF_FFF_Core) \
$(LIBFFF_UTIL) \
$(LIBFFF_CRYPTO) \
$(LIBLEVELDB) \
$(LIBMEMENV) \
$(LIBSECP256K1)
if TARGET_WINDOWS
FFF_Cored_LDADD += $(top_builddir)/src/v8_win/build/Release/FFF_Core-v8.lib
else
FFF_Cored_LDADD += $(LIBFFF_V8)
endif
#if ENABLE_WALLET
#FFF_Cored_LDADD += libFFF_wallet.a
#endif
FFF_Cored_SOURCES = \
FFF_Core/FFF_Cored.cpp \
rpc/rpclist.cpp \
chainparams/buildgenesis.cpp \
filters/filtercallback.cpp \
filters/watchdog.cpp \
json/json_spirit_writer.cpp
if TARGET_WINDOWS
FFF_Cored_SOURCES += filters/filter_win.cpp FFF_Cored-res.rc
else
FFF_Cored_SOURCES += filters/filter.cpp
endif
FFF_Cored_LDADD += $(BOOST_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS)
FFF_Cored_CPPFLAGS = $(FFF_INCLUDES) $(V8_INCLUDE)
FFF_Cored_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -pthread
if !TARGET_WINDOWS
FFF_Cored_LDFLAGS += $(V8_LIBS)
endif
# FFF_Cored-cold binary #
FFF_Cored_cold_LDADD = \
$(LIBFFF_SERVER) \
$(LIBFFF_COMMON) \
$(LIBFFF_UNIVALUE) \
$(LIBFFF_WALLET) \
$(LIBFFF_COMMUNITY) \
$(LIBFFF_FFF_Core) \
$(LIBFFF_UTIL) \
$(LIBFFF_CRYPTO) \
$(LIBLEVELDB) \
$(LIBMEMENV) \
$(LIBSECP256K1)
#if ENABLE_WALLET
#FFF_Cored_cold_LDADD += libFFF_wallet.a
#endif
FFF_Cored_cold_SOURCES = \
FFF_Core/FFF_Cored-cold.cpp \
core/init-cold.cpp \
rpc/rpclist-cold.cpp \
chainparams/buildgenesis.cpp \
filters/filter_cold.cpp \
filters/filtercallback_cold.cpp \
filters/watchdog.cpp \
json/json_spirit_writer.cpp
#
if TARGET_WINDOWS
FFF_Cored_cold_SOURCES += FFF_Cored-cold-res.rc
endif
FFF_Cored_cold_LDADD += $(BOOST_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS)
FFF_Cored_cold_CPPFLAGS = $(FFF_INCLUDES)
FFF_Cored_cold_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -pthread
# FFF_Core-cli binary #
FFF_Core_cli_LDADD = \
$(LIBFFF_CLI) \
$(LIBFFF_UTIL) \
$(LIBFFF_FFF_Core) \
$(LIBFFF_CRYPTO) \
$(LIBLEVELDB) \
$(BOOST_LIBS) \
$(SSL_LIBS) \
$(CRYPTO_LIBS)
FFF_Core_cli_SOURCES = FFF_Core/FFF_Core-cli.cpp
FFF_Core_cli_CPPFLAGS = $(FFF_INCLUDES)
#
if TARGET_WINDOWS
FFF_Core_cli_SOURCES += FFF_Core-cli-res.rc
endif
FFF_Core_cli_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
# FFF_Core-util binary #
FFF_Core_util_LDADD = \
$(LIBFFF_UNIVALUE) \
$(LIBFFF_FFF_Core) \
$(LIBFFF_COMMON) \
$(LIBFFF_UTIL) \
$(LIBFFF_CRYPTO) \
$(LIBLEVELDB) \
$(LIBSECP256K1) \
$(BOOST_LIBS) \
$(CRYPTO_LIBS)
FFF_Core_util_SOURCES = FFF_Core/FFF_Core-util.cpp chainparams/buildgenesis.cpp
FFF_Core_util_CPPFLAGS = $(FFF_INCLUDES)
#
if TARGET_WINDOWS
FFF_Core_util_SOURCES += FFF_Core-util-res.rc
endif
FFF_Core_util_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
# MCHN END
if BUILD_FFF_LIBS
include_HEADERS = script/FFFconsensus.h
libFFFconsensus_la_SOURCES = \
primitives/transaction.cpp \
crypto/hmac_sha512.cpp \
crypto/sha1.cpp \
crypto/sha256.cpp \
crypto/sha512.cpp \
crypto/ripemd160.cpp \
utils/utility.cpp \
utils/systemdependent.cpp \
utils/tools.cpp \
utils/utilwrapper.cpp \
chainparams/buildgenesis.cpp \
version/version.cpp \
custom/custom.cpp \
custom/custom_FFF_Core.cpp \
chainparams/chainparams.cpp \
protocol/FFF_Corescript.cpp \
utils/dbwrapper.cpp \
wallet/wallettxdb.cpp \
wallet/chunkdb.cpp \
wallet/chunkcollector.cpp \
permissions/permission.cpp \
entities/asset.cpp \
structs/hash.cpp \
keys/pubkey.cpp \
script/script.cpp \
script/interpreter.cpp \
script/FFFconsensus.cpp \
structs/uint256.cpp \
utils/utilstrencodings.cpp
if GLIBC_BACK_COMPAT
libFFFconsensus_la_SOURCES += compat/glibc_compat.cpp
libFFFconsensus_la_SOURCES += compat/glibcxx_compat.cpp
endif
libFFFconsensus_la_LDFLAGS = -no-undefined $(RELDFLAGS)
libFFFconsensus_la_LIBADD = $(LIBSECP256K1)
libFFFconsensus_la_CPPFLAGS = -I$(builddir)/obj -I$(srcdir)/secp256k1/include -DBUILD_FFF_INTERNAL
endif
CLEANFILES = leveldb/libleveldb.a leveldb/libmemenv.a *.gcda *.gcno
DISTCLEANFILES = obj/build.h
EXTRA_DIST = leveldb
clean-local:
-$(MAKE) -C leveldb clean
-$(MAKE) -C secp256k1 clean
rm -f leveldb/*/*.gcno leveldb/helpers/memenv/*.gcno
-rm -f config.h
.rc.o:
@test -f $(WINDRES)
$(AM_V_GEN) $(WINDRES) -DWINDRES_PREPROC -i $< -o $@
.mm.o:
$(AM_V_CXX) $(OBJCXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CXXFLAGS) $(QT_INCLUDES) $(CXXFLAGS) -c -o $@ $<
%.pb.cc %.pb.h: %.proto
@test -f $(PROTOC)
$(AM_V_GEN) $(PROTOC) --cpp_out=$(@D) --proto_path=$(abspath $(<D) $<)
#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