-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile.am
269 lines (243 loc) · 6.52 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
ACLOCAL_AMFLAGS = -I build-aux/m4
AUTOMAKE_OPTIONS = serial-tests
.PHONY: gen
.INTERMEDIATE: $(GENBIN)
DIST_SUBDIRS = src/secp256k1
LIBSECP256K1=src/secp256k1/libsecp256k1.la
$(LIBSECP256K1): $(wildcard src/secp256k1/src/*) $(wildcard src/secp256k1/include/*)
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F)
includedir = $(prefix)/include/dogecoin
lib_LTLIBRARIES = libdogecoin.la
include_HEADERS = \
include/dogecoin/constants.h \
include/dogecoin/dogecoin.h \
include/dogecoin/libdogecoin.h \
include/dogecoin/uthash.h \
config/libdogecoin-config.h
noinst_HEADERS = \
include/bip39/index.h \
include/dogecoin/address.h \
include/dogecoin/aes.h \
include/dogecoin/arith_uint256.h \
include/dogecoin/auxpow.h \
include/dogecoin/base58.h \
include/dogecoin/bip32.h \
include/dogecoin/bip39.h \
include/dogecoin/bip44.h \
include/dogecoin/block.h \
include/dogecoin/blockchain.h \
include/dogecoin/buffer.h \
include/dogecoin/byteswap.h \
include/dogecoin/chainparams.h \
include/dogecoin/common.h \
include/dogecoin/cstr.h \
include/dogecoin/ctaes.h \
include/dogecoin/ecc.h \
include/dogecoin/eckey.h \
include/dogecoin/hash.h \
include/dogecoin/key.h \
include/dogecoin/koinu.h \
include/dogecoin/map.h \
include/dogecoin/mem.h \
include/dogecoin/moon.h \
include/dogecoin/portable_endian.h \
include/dogecoin/pow.h \
include/qr/png.h \
include/qr/qr.h \
include/qr/jpeg.h \
include/dogecoin/random.h \
include/dogecoin/rmd160.h \
include/dogecoin/script.h \
include/dogecoin/scrypt.h \
include/dogecoin/sign.h \
include/dogecoin/serialize.h \
include/dogecoin/seal.h \
include/dogecoin/sha2.h \
include/dogecoin/tool.h \
include/dogecoin/transaction.h \
include/dogecoin/tx.h \
include/dogecoin/utils.h \
include/dogecoin/validation.h \
include/dogecoin/vector.h \
include/dogecoin/version.h \
include/dogecoin/wow.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libdogecoin.pc
libdogecoin_la_SOURCES = \
src/address.c \
src/aes.c \
src/arith_uint256.c \
src/auxpow.c \
src/base58.c \
src/bip32.c \
src/bip39.c \
src/bip44.c \
src/block.c \
src/buffer.c \
src/chainparams.c \
src/cstr.c \
src/ctaes.c \
src/ecc.c \
src/eckey.c \
src/key.c \
src/koinu.c \
src/map.c \
src/mem.c \
src/moon.c \
src/pow.c \
src/png.c \
src/jpeg.c \
src/qrengine.c \
src/qr.c \
src/random.c \
src/rmd160.c \
src/script.c \
src/scrypt.c \
src/seal.c \
src/sign.c \
src/serialize.c \
src/sha2.c \
src/cli/tool.c \
src/transaction.c \
src/tx.c \
src/utils.c \
src/validation.c \
src/vector.c
if USE_SSE2
libdogecoin_la_SOURCES += \
src/scrypt-sse2.c
endif
libdogecoin_la_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src/logdb/include -fPIC
libdogecoin_la_LIBADD = $(LIBSECP256K1)
if USE_TESTS
noinst_PROGRAMS = tests
tests_LDADD = libdogecoin.la
tests_SOURCES = \
test/address_tests.c \
test/aes_tests.c \
test/base58_tests.c \
test/bip32_tests.c \
test/bip39_tests.c \
test/bip44_tests.c \
test/block_tests.c \
test/buffer_tests.c \
test/cstr_tests.c \
test/ecc_tests.c \
test/hash_tests.c \
test/key_tests.c \
test/koinu_tests.c \
test/mem_tests.c \
test/moon_tests.c \
test/opreturn_tests.c \
test/qr_tests.c \
test/random_tests.c \
test/rmd160_tests.c \
test/scrypt_tests.c \
test/serialize_tests.c \
test/sha2_tests.c \
test/signmsg_tests.c \
test/tpm_tests.c \
test/transaction_tests.c \
test/tx_tests.c \
include/test/utest.h \
test/unittester.c \
test/utils_tests.c \
test/vector_tests.c
tests_CFLAGS = $(libdogecoin_la_CFLAGS)
tests_CPPFLAGS = -I$(top_srcdir)/src
tests_LDADD += $(LIBSECP256K1)
tests_LDFLAGS = -static
TESTS = tests
endif
if WITH_LOGDB
libdogecoin_la_SOURCES += \
src/logdb/logdb_core.c \
src/logdb/logdb_memdb_llist.c \
src/logdb/logdb_memdb_rbtree.c \
src/logdb/logdb_rec.c \
src/logdb/misc.c \
src/logdb/red_black_tree.c \
src/logdb/stack.c
logdbincludedir = $(prefix)/include/logdb
logdbinclude_HEADERS = \
src/logdb/include/logdb/logdb_base.h \
src/logdb/include/logdb/logdb_core.h \
src/logdb/include/logdb/logdb_memdb_llist.h \
src/logdb/include/logdb/logdb_memdb_rbtree.h \
src/logdb/include/logdb/logdb_rec.h \
src/logdb/include/logdb/logdb.h \
src/logdb/include/logdb/misc.h \
src/logdb/include/logdb/red_black_tree.h \
src/logdb/include/logdb/stack.h
if USE_TESTS
tests_SOURCES += \
src/logdb/test/logdb_tests.c \
src/logdb/test/tests_red_black_tree.c \
src/logdb/test/logdb_tests_sample.h
endif
endif
if WITH_WALLET
noinst_HEADERS += \
include/dogecoin/wallet.h
libdogecoin_la_SOURCES += \
src/wallet.c
if USE_TESTS
tests_SOURCES += \
test/wallet_tests.c
endif
endif
if WITH_NET
noinst_HEADERS += \
include/dogecoin/headersdb.h \
include/dogecoin/headersdb_file.h \
include/dogecoin/protocol.h \
include/dogecoin/net.h \
include/dogecoin/spv.h
libdogecoin_la_SOURCES += \
src/headersdb_file.c \
src/net.c \
src/protocol.c \
src/spv.c
libdogecoin_la_LIBADD += $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
libdogecoin_la_CFLAGS += $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)
if USE_TESTS
tests_SOURCES += \
test/net_tests.c \
test/protocol_tests.c \
test/spv_tests.c
tests_LDADD += $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
endif
endif
if WITH_TOOLS
if USE_TESTS
tests_SOURCES += \
test/tool_tests.c
endif
instdir=$(prefix)/bin
inst_PROGRAMS = such
such_LDADD = libdogecoin.la $(LIBSECP256K1)
such_SOURCES = \
src/cli/such.c
such_CFLAGS = $(libdogecoin_la_CFLAGS)
such_CPPFLAGS = -I$(top_srcdir)/src
such_LDFLAGS = -static
if WITH_NET
inst_PROGRAMS += sendtx
sendtx_LDADD = libdogecoin.la $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(LIBSECP256K1)
sendtx_SOURCES = \
src/cli/sendtx.c
sendtx_CFLAGS = $(libdogecoin_la_CFLAGS) $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)
sendtx_CPPFLAGS = -I$(top_srcdir)/src
sendtx_LDFLAGS = -static
inst_PROGRAMS += spvnode
spvnode_LDADD = libdogecoin.la
spvnode_SOURCES = \
src/cli/spvnode.c
spvnode_CFLAGS = $(libdogecoin_la_CFLAGS)
spvnode_CPPFLAGS = -I$(top_srcdir)/src
spvnode_LDFLAGS = -static
endif
endif
libdogecoin_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_CURRENT):$(LIB_VERSION_REVISION):$(LIB_VERSION_AGE)
clean-local:
-$(MAKE) -C src/secp256k1 clean