This repository was archived by the owner on Jul 10, 2019. It is now read-only.
forked from FellowTraveler/Open-Transactions-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
439 lines (324 loc) · 11.1 KB
/
Makefile.am
File metadata and controls
439 lines (324 loc) · 11.1 KB
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
# -*- fill-column: 72 -*-
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = -I build-aux/m4
ot_include_dir = $(top_srcdir)/include
ot_source_dir = $(top_srcdir)/src
common_includes = -I$(ot_include_dir) \
-I$(ot_include_dir)/otlib \
$(DEPS_CFLAGS)
## COMMON FLAGS ###
AM_CPPFLAGS = $(common_includes) \
-g3 \
-ggdb \
-rdynamic \
-O0 \
--param ssp-buffer-size=4
## WARNING FLAGS ###
if WARNINGS
AM_CPPFLAGS += -Waddress \
-Woverloaded-virtual \
-Wshadow \
-Wconversion
endif
## RELEASE FLAGS ###
if RELEASE
AM_CPPFLAGS += -Wall \
-D_FORTIFY_SOURCE=2 \
-fstack-protector-all \
-fstack-check \
-Wstack-protector
endif
AM_LDFLAGS = $(DEPS_LDFLAGS)
EXTRA_DIST = docs/GETTING-STARTED.txt \
docs/INSTALL-Android.txt \
docs/INSTALL-Fedora.txt \
docs/INSTALL-Ubuntu.t \
docs/INSTALL-OSX-Homebrew.txt \
docs/INSTALL-Windows.txt \
docs/LICENSE-AND-CREDITS.txt \
PUBKEY-FellowTraveler.asc \
README.md docs/SSL-NOTES.txt \
docs/WIPE-USERS-ACCOUNTS.txt \
VERSION
####################################################################
## BigInt
bigint_headers_dir = $(ot_include_dir)/bigint
bigint_headers = include/bigint/BigInteger.h \
include/bigint/BigIntegerAlgorithms.h \
include/bigint/BigIntegerLibrary.h \
include/bigint/BigIntegerUtils.h \
include/bigint/BigUnsigned.h \
include/bigint/BigUnsignedInABase.h \
include/bigint/NumberlikeArray.h
bigint_sources_dir = $(ot_source_dir)/bigint
bigint_sources = src/bigint/BigInteger.cc \
src/bigint/BigIntegerAlgorithms.cc \
src/bigint/BigIntegerUtils.cc \
src/bigint/BigUnsigned.cc \
src/bigint/BigUnsignedInABase.cc
## Containers
containers_headers_dir = $(ot_include_dir)/containers
containers_headers = include/containers/containers.hpp \
include/containers/containers_fixes.hpp \
include/containers/copy_functors.hpp \
include/containers/digraph.hpp \
include/containers/exceptions.hpp \
include/containers/foursome.hpp \
include/containers/hash.hpp \
include/containers/matrix.hpp \
include/containers/ntree.hpp \
include/containers/safe_iterator.hpp \
include/containers/simple_ptr.hpp \
include/containers/smart_ptr.hpp \
include/containers/triple.hpp
## IrrXML
irrxml_headers_dir = $(ot_include_dir)/irrxml
irrxml_headers = include/irrxml/CXMLReaderImpl.h \
include/irrxml/fast_atof.h \
include/irrxml/heapsort.h \
include/irrxml/irrArray.h \
include/irrxml/irrString.h \
include/irrxml/irrTypes.h \
include/irrxml/irrXML.h
irrxml_sources_dir = $(ot_source_dir)/irrxml
irrxml_sources = src/irrxml/irrXML.cpp
## Lucre
lucre_headers_dir = $(ot_include_dir)/lucre
lucre_headers = include/lucre/bank.h
lucre_sources_dir = $(ot_source_dir)/lucre
lucre_sources = src/lucre/bankdemo.cpp \
src/lucre/bankimp.cpp \
src/lucre/bank-new.cpp \
src/lucre/bank-sign.cpp \
src/lucre/bank-verify.cpp \
src/lucre/coin-request.cpp \
src/lucre/coin-unblind.cpp
## OT API
otapi_headers_dir = $(ot_include_dir)/otapi
otapi_headers = include/otapi/main.h \
include/otapi/OpenTransactions.h \
include/otapi/OTAPI.h \
include/otapi/OTAPI_funcdef.h \
include/otapi/OTAPI_Wrapper.h \
include/otapi/OTClient.h \
include/otapi/OTServerConnection.h
otapi_sources_dir = $(ot_source_dir)/otapi
otapi_sources = src/otapi/OpenTransactions.cpp \
src/otapi/OTAPI.cpp \
src/otapi/OTAPI_Wrapper.cpp \
src/otapi/OTClient.cpp \
src/otapi/OTServerConnection.cpp
## OT LIB
otlib_headers_dir = $(ot_include_dir)/otlib
otlib_headers = include/otlib/anyoption.h \
include/otlib/Bitcoin.pb.h \
include/otlib/easyzlib.h \
include/otlib/fast_mutex.h \
include/otlib/Generics.pb.h \
include/otlib/Markets.pb.h \
include/otlib/Moneychanger.pb.h \
include/otlib/OTAccount.h \
include/otlib/OTAgreement.h \
include/otlib/OTASCIIArmor.h \
include/otlib/OTAssetContract.h \
include/otlib/OTAsymmetricKey.h \
include/otlib/OTBasket.h \
include/otlib/OTBylaw.h \
include/otlib/OTCheque.h \
include/otlib/OTContract.h \
include/otlib/OTCron.h \
include/otlib/OTCronItem.h \
include/otlib/OTData.h \
include/otlib/OTDataCheck.h \
include/otlib/OTEnvelope.h \
include/otlib/OTglobal.h \
include/otlib/OTIdentifier.h \
include/otlib/OTInstrument.h \
include/otlib/OTItem.h \
include/otlib/OTLedger.h \
include/otlib/OTLib.h \
include/otlib/OTLibPriv.h \
include/otlib/OTLog.h \
include/otlib/OTMarket.h \
include/otlib/OTMessage.h \
include/otlib/OTMessageBuffer.h \
include/otlib/OTMint.h \
include/otlib/OTOffer.h \
include/otlib/OTPassword.h \
include/otlib/OTPayload.h \
include/otlib/OTPayment.h \
include/otlib/OTPaymentPlan.h \
include/otlib/OTPseudonym.h \
include/otlib/OTPurse.h \
include/otlib/OTScript.h \
include/otlib/OTScriptable.h \
include/otlib/OTServerContract.h \
include/otlib/OTSignature.h \
include/otlib/OTSignedFile.h \
include/otlib/OTSmartContract.h \
include/otlib/OTStorage.h \
include/otlib/OTString.h \
include/otlib/OTStringXML.h \
include/otlib/OTToken.h \
include/otlib/OTTrackable.h \
include/otlib/OTTrade.h \
include/otlib/OTTransaction.h \
include/otlib/OTTransactionType.h \
include/otlib/OTWallet.h \
include/otlib/stacktrace.h \
include/otlib/Timer.h \
include/otlib/tinythread.h
otlib_sources_dir = $(ot_source_dir)/otlib
otlib_sources = src/otlib/anyoption.cpp \
src/otlib/Bitcoin.pb.cpp \
src/otlib/easyzlib.c \
src/otlib/Generics.pb.cpp \
src/otlib/Markets.pb.cpp \
src/otlib/mkcert.c \
src/otlib/Moneychanger.pb.cpp \
src/otlib/OTAccount.cpp \
src/otlib/OTAgreement.cpp \
src/otlib/OTASCIIArmor.cpp \
src/otlib/OTAssetContract.cpp \
src/otlib/OTAsymmetricKey.cpp \
src/otlib/OTBasket.cpp \
src/otlib/OTBylaw.cpp \
src/otlib/OTCheque.cpp \
src/otlib/OTContract.cpp \
src/otlib/OTCron.cpp \
src/otlib/OTCronItem.cpp \
src/otlib/OTData.cpp \
src/otlib/OTDataCheck.cpp \
src/otlib/OTEnvelope.cpp \
src/otlib/OTIdentifier.cpp \
src/otlib/OTInstrument.cpp \
src/otlib/OTItem.cpp \
src/otlib/OTLedger.cpp \
src/otlib/OTLog.cpp \
src/otlib/OTMarket.cpp \
src/otlib/OTMessage.cpp \
src/otlib/OTMessageBuffer.cpp \
src/otlib/OTMint.cpp \
src/otlib/OTOffer.cpp \
src/otlib/OTPassword.cpp \
src/otlib/OTPayload.cpp \
src/otlib/OTPayment.cpp \
src/otlib/OTPaymentPlan.cpp \
src/otlib/OTPseudonym.cpp \
src/otlib/OTPurse.cpp \
src/otlib/OTScript.cpp \
src/otlib/OTScriptable.cpp \
src/otlib/OTServerContract.cpp \
src/otlib/OTSignature.cpp \
src/otlib/OTSignedFile.cpp \
src/otlib/OTSmartContract.cpp \
src/otlib/OTStorage.cpp \
src/otlib/OTString.cpp \
src/otlib/OTStringXML.cpp \
src/otlib/OTToken.cpp \
src/otlib/OTTrackable.cpp \
src/otlib/OTTrade.cpp \
src/otlib/OTTransaction.cpp \
src/otlib/OTTransactionType.cpp \
src/otlib/OTWallet.cpp \
src/otlib/Timer.cpp \
src/otlib/tinythread.cpp
## OT Server
otserver_headers_dir = $(ot_include_dir)/otserver
otserver_headers = include/otserver/main.h \
include/otserver/OTClientConnection.h \
include/otserver/OTServer.h
otserver_sources_dir = $(ot_source_dir)/otserver
otserver_sources = src/otserver/OTClientConnection.cpp \
src/otserver/OTServer.cpp
#### Simple Ini
simpleini_headers_dir = $(ot_include_dir)/simpleini
simpleini_headers = include/simpleini/ConvertUTF.h \
include/simpleini/SimpleIni.h
simpleini_sources_dir = $(ot_source_dir)/simpleini
simpleini_sources = src/simpleini/ConvertUTF.cpp \
src/simpleini/snippets.cpp
#### OT Createmint
otcreatemint_sources = util/otcreatemint/main.cpp
#### Sign Contract
signcontract_sources = util/signcontract/main.cpp
####################################################################
##########################
## Open Transactions Lib #
##########################
lib_LTLIBRARIES = libot.la \
libotapi.la \
libbigint.la \
libirrxml.la \
liblucre.la
#### LIB BigInt
libbigint_la_SOURCES = $(bigint_sources) $(bigint_headers)
libbigint_la_CPPFLAGS = -I$(bigint_headers_dir) $(DEPS_CFLAGS) -fpic
libbigint_la_LDFLAGS = -static
#### LIB IrrXML
libirrxml_la_SOURCES = $(irrxml_sources) $(irrxml_headers)
libirrxml_la_CPPFLAGS = -I$(irrxml_headers_dir) $(DEPS_CFLAGS) -fpic
libirrxml_la_LDFLAGS = -static
#### LIB Lucre
liblucre_la_SOURCES = $(lucre_sources) $(lucre_headers)
liblucre_la_CPPFLAGS = -I$(lucre_headers_dir) $(DEPS_CFLAGS) -fpic
liblucre_la_LDFLAGS = -static
#### LIB OT
libot_la_SOURCES = $(otlib_sources) $(otlib_headers)
libot_la_CPPFLAGS = $(AM_CPPFLAGS)
libot_la_LIBADD = $(DEPS_LIBS) \
$(BOOST_LDFLAGS) \
$(BOOST_THREAD_LIB) \
libbigint.la libirrxml.la liblucre.la
libot_la_DEPENDENCIES = libbigint.la libirrxml.la liblucre.la
libot_la_LDFLAGS = --no-undefined
#### LIB OT API
libotapi_la_SOURCES = $(otapi_sources) $(otapi_headers)
libotapi_la_CPPFLAGS = -I$(otapi_headers_dir) $(AM_CPPFLAGS) -fpic
libotapi_la_LIBADD = libot.la
libotapi_la_DEPENDENCIES = libot.la
libotapi_la_LDFLAGS = -static
#### Global Hedders
pkginclude_HEADERS = $(otlib_headers)
##########################
## Open Transactions Bin #
##########################
bin_PROGRAMS = otserver \
otcreatemint \
signcontract
#### OT Server
otserver_SOURCES = $(otserver_sources) $(otserver_headers)
otserver_CPPFLAGS = $(AM_CPPFLAGS) -I$(otserver_headers_dir)
otserver_LDADD = libot.la
otserver_DEPENDENCIES = libot.la
#### OT Createmint
otcreatemint_SOURCES = $(otcreatemint_sources)
otcreatemint_LDADD = libot.la
otcreatemint_DEPENDENCIES = libot.la
#### Sign Contract
signcontract_SOURCES = $(signcontract_sources)
signcontract_LDADD = libot.la
signcontract_DEPENDENCIES = libot.la
####################################
## Open Transactions Build Options #
####################################
#### ZMQ
if TRANSPORT_ZMQ
libotapi_la_SOURCES += src/otapi/xmlrpcxx_client.cpp
libotapi_la_CPPFLAGS += -DOT_ZMQ_MODE
otserver_SOURCES += src/otserver/xmlrpcxx_server.cpp
otserver_CPPFLAGS += -DOT_ZMQ_MODE
endif
#### OT API JAVA
if WANT_JAVA
lib_LTLIBRARIES += libotapi-java.la
endif
libotapi_java_la_SOURCES = swig/otapi/OTAPI-java.cxx
libotapi_java_la_CPPFLAGS = $(AM_CPPFLAGS) $(JNI_CPPFLAGS) \
-I$(top_srcdir)/swig/otapi
libotapi_java_la_LIBADD = libotapi.la libot.la
libotapi_java_la_DEPENDENCIES = libotapi.la libot.la
libotapi_java_la_LDFLAGS = --no-undefined
if TRANSPORT_ZMQ
libotapi_java_la_CPPFLAGS += -DOT_ZMQ_MODE
endif