forked from dogecoinfoundation/libdogecoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
160 lines (143 loc) · 3.88 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
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)
lib_LTLIBRARIES = libdogecoin.la
include_HEADERS = include/dogecoin/libdogecoin.h
noinst_HEADERS = \
include/dogecoin/address.h \
include/dogecoin/aes.h \
include/dogecoin/base58.h \
include/dogecoin/bip32.h \
include/dogecoin/block.h \
include/dogecoin/buffer.h \
include/dogecoin/byteswap.h \
include/dogecoin/chainparams.h \
include/dogecoin/cstr.h \
include/dogecoin/ctaes.h \
include/dogecoin/dogecoin.h \
include/dogecoin/ecc.h \
include/dogecoin/hash.h \
include/dogecoin/key.h \
include/dogecoin/koinu.h \
include/dogecoin/mem.h \
include/dogecoin/portable_endian.h \
include/dogecoin/random.h \
include/dogecoin/rmd160.h \
include/dogecoin/script.h \
include/dogecoin/serialize.h \
include/dogecoin/sha2.h \
include/dogecoin/tool.h \
include/dogecoin/transaction.h \
include/dogecoin/tx.h \
include/uthash/uthash.h \
include/dogecoin/utils.h \
include/dogecoin/vector.h \
include/dogecoin/wow.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libdogecoin.pc
libdogecoin_la_SOURCES = \
src/address.c \
src/aes.c \
src/base58.c \
src/bip32.c \
src/block.c \
src/buffer.c \
src/chainparams.c \
src/cstr.c \
src/ctaes.c \
src/ecc.c \
src/key.c \
src/koinu.c \
src/mem.c \
src/random.c \
src/rmd160.c \
src/script.c \
src/serialize.c \
src/sha2.c \
src/cli/tool.c \
src/transaction.c \
src/tx.c \
src/utils.c \
src/vector.c
libdogecoin_la_CFLAGS = -I$(top_srcdir)/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/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/opreturn_tests.c \
test/random_tests.c \
test/rmd160_tests.c \
test/serialize_tests.c \
test/sha2_tests.c \
test/transaction_tests.c \
test/tx_tests.c \
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_NET
noinst_HEADERS += \
include/dogecoin/protocol.h \
include/dogecoin/net.h
libdogecoin_la_SOURCES += \
src/net.c \
src/protocol.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
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
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