forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathMakefile.am
246 lines (220 loc) · 4.74 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
include Makefile.include
AM_CPPFLAGS += -I$(builddir)
noinst_LIBRARIES = \
libdarkcoin_server.a \
libdarkcoin_common.a \
libdarkcoin_cli.a
if ENABLE_WALLET
noinst_LIBRARIES += libdarkcoin_wallet.a
endif
bin_PROGRAMS =
if BUILD_BITCOIND
bin_PROGRAMS += darkcoind
endif
if BUILD_BITCOIN_CLI
bin_PROGRAMS += darkcoin-cli
endif
SUBDIRS = . $(BUILD_QT) $(BUILD_TEST)
DIST_SUBDIRS = . qt test
.PHONY: FORCE
# darkcoin core #
BITCOIN_CORE_H = \
activemasternode.h \
addrman.h \
alert.h \
allocators.h \
base58.h bignum.h \
bloom.h \
chainparams.h \
checkpoints.h \
checkqueue.h \
clientversion.h \
coincontrol.h \
coins.h \
compat.h \
core.h \
crypter.h \
darksend.h \
db.h \
hash.h \
init.h \
instantx.h \
key.h \
keepass.h \
keystore.h \
leveldbwrapper.h \
limitedmap.h \
main.h \
masternode.h \
masternodeman.h \
masternodeconfig.h \
miner.h \
mruset.h \
netbase.h \
net.h \
noui.h \
protocol.h \
rpcclient.h \
rpcprotocol.h \
rpcserver.h \
script.h \
serialize.h \
sph_blake.h \
sph_bmw.h \
sph_cubehash.h \
sph_echo.h \
sph_groestl.h \
sph_jh.h \
sph_keccak.h \
sph_luffa.h \
sph_shavite.h \
sph_simd.h \
sph_skein.h \
sph_types.h \
spork.h \
sync.h \
threadsafety.h \
tinyformat.h \
txdb.h \
txmempool.h \
ui_interface.h \
uint256.h \
util.h \
version.h \
walletdb.h \
wallet.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
obj/build.h: FORCE
@$(MKDIR_P) $(abs_top_builddir)/src/obj
@$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
$(abs_top_srcdir)
version.o: obj/build.h
libdarkcoin_server_a_SOURCES = \
activemasternode.cpp \
addrman.cpp \
alert.cpp \
bloom.cpp \
checkpoints.cpp \
coins.cpp \
init.cpp \
keystore.cpp \
leveldbwrapper.cpp \
main.cpp \
miner.cpp \
net.cpp \
noui.cpp \
rpcblockchain.cpp \
rpcdarksend.cpp \
rpcmining.cpp \
rpcmisc.cpp \
rpcnet.cpp \
rpcrawtransaction.cpp \
rpcserver.cpp \
txdb.cpp \
txmempool.cpp \
$(JSON_H) \
$(BITCOIN_CORE_H)
libdarkcoin_wallet_a_SOURCES = \
activemasternode.cpp \
db.cpp \
crypter.cpp \
rpcdump.cpp \
rpcwallet.cpp \
wallet.cpp \
walletdb.cpp \
keepass.cpp \
$(BITCOIN_CORE_H)
libdarkcoin_common_a_SOURCES = \
activemasternode.cpp \
base58.cpp \
allocators.cpp \
chainparams.cpp \
core.cpp \
darksend.cpp \
masternode.cpp \
masternodeman.cpp \
masternodeconfig.cpp \
instantx.cpp \
hash.cpp \
key.cpp \
netbase.cpp \
protocol.cpp \
rpcprotocol.cpp \
script.cpp \
sync.cpp \
util.cpp \
version.cpp \
aes_helper.c \
luffa.c \
groestl.c \
jh.c \
echo.c \
shavite.c \
keccak.c \
skein.c \
spork.cpp \
bmw.c \
simd.c \
cubehash.c \
blake.c \
$(BITCOIN_CORE_H)
if GLIBC_BACK_COMPAT
libdarkcoin_common_a_SOURCES += compat/glibc_compat.cpp
libdarkcoin_common_a_SOURCES += compat/glibcxx_compat.cpp
endif
libdarkcoin_cli_a_SOURCES = \
rpcclient.cpp \
$(BITCOIN_CORE_H)
nodist_libdarkcoin_common_a_SOURCES = $(top_srcdir)/src/obj/build.h
#
# darkcoind binary #
darkcoind_LDADD = \
libdarkcoin_server.a \
libdarkcoin_cli.a \
libdarkcoin_common.a \
$(LIBLEVELDB) \
$(LIBMEMENV)
if ENABLE_WALLET
darkcoind_LDADD += libdarkcoin_wallet.a
endif
darkcoind_SOURCES = darkcoind.cpp
#
if TARGET_WINDOWS
darkcoind_SOURCES += darkcoind-res.rc
endif
AM_CPPFLAGS += $(BDB_CPPFLAGS)
darkcoind_LDADD += $(BOOST_LIBS) $(BDB_LIBS)
# darkcoin-cli binary #
darkcoin_cli_LDADD = \
libdarkcoin_cli.a \
libdarkcoin_common.a \
$(BOOST_LIBS)
darkcoin_cli_SOURCES = darkcoin-cli.cpp
#
if TARGET_WINDOWS
darkcoin_cli_SOURCES += darkcoin-cli-res.rc
endif
# 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
leveldb/libleveldb.a: leveldb/libmemenv.a
leveldb/%.a:
@echo "Building LevelDB ..." && $(MAKE) -C $(@D) $(@F) CXX="$(CXX)" \
CC="$(CC)" PLATFORM=$(TARGET_OS) AR="$(AR)" $(LEVELDB_TARGET_FLAGS) \
OPT="$(CXXFLAGS) $(CPPFLAGS)"
qt/darkcoinstrings.cpp: $(libdarkcoin_server_a_SOURCES) $(libdarkcoin_common_a_SOURCES) $(libdarkcoin_cli_a_SOURCES)
@test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
@cd $(top_srcdir); XGETTEXT=$(XGETTEXT) share/qt/extract_strings_qt.py
CLEANFILES = leveldb/libleveldb.a leveldb/libmemenv.a *.gcda *.gcno
DISTCLEANFILES = obj/build.h
EXTRA_DIST = leveldb Makefile.include
clean-local:
-$(MAKE) -C leveldb clean
rm -f leveldb/*/*.gcno leveldb/helpers/memenv/*.gcno