]>
Commit | Line | Data |
---|---|---|
6fac238f | 1 | ACLOCAL_AMFLAGS = -I build-aux/m4 |
f9aac5b0 | 2 | |
78cd96b1 | 3 | lib_LTLIBRARIES = libsecp256k1.la |
78cd96b1 CF |
4 | include_HEADERS = include/secp256k1.h |
5 | noinst_HEADERS = | |
a9f5c8b8 | 6 | noinst_HEADERS += src/scalar.h |
1d52a8b1 PW |
7 | noinst_HEADERS += src/scalar_4x64.h |
8 | noinst_HEADERS += src/scalar_8x32.h | |
a9f5c8b8 | 9 | noinst_HEADERS += src/scalar_impl.h |
1d52a8b1 PW |
10 | noinst_HEADERS += src/scalar_4x64_impl.h |
11 | noinst_HEADERS += src/scalar_8x32_impl.h | |
78cd96b1 | 12 | noinst_HEADERS += src/group.h |
11ab5622 | 13 | noinst_HEADERS += src/group_impl.h |
78cd96b1 | 14 | noinst_HEADERS += src/num_gmp.h |
11ab5622 | 15 | noinst_HEADERS += src/num_gmp_impl.h |
78cd96b1 | 16 | noinst_HEADERS += src/ecdsa.h |
11ab5622 | 17 | noinst_HEADERS += src/ecdsa_impl.h |
e2f71f1e PW |
18 | noinst_HEADERS += src/eckey.h |
19 | noinst_HEADERS += src/eckey_impl.h | |
78cd96b1 | 20 | noinst_HEADERS += src/ecmult.h |
11ab5622 | 21 | noinst_HEADERS += src/ecmult_impl.h |
44015000 AP |
22 | noinst_HEADERS += src/ecmult_const.h |
23 | noinst_HEADERS += src/ecmult_const_impl.h | |
949c1ebb PW |
24 | noinst_HEADERS += src/ecmult_gen.h |
25 | noinst_HEADERS += src/ecmult_gen_impl.h | |
78cd96b1 | 26 | noinst_HEADERS += src/num.h |
11ab5622 | 27 | noinst_HEADERS += src/num_impl.h |
78cd96b1 | 28 | noinst_HEADERS += src/field_10x26.h |
11ab5622 | 29 | noinst_HEADERS += src/field_10x26_impl.h |
78cd96b1 | 30 | noinst_HEADERS += src/field_5x52.h |
11ab5622 PW |
31 | noinst_HEADERS += src/field_5x52_impl.h |
32 | noinst_HEADERS += src/field_5x52_int128_impl.h | |
33 | noinst_HEADERS += src/field_5x52_asm_impl.h | |
78cd96b1 CF |
34 | noinst_HEADERS += src/java/org_bitcoin_NativeSecp256k1.h |
35 | noinst_HEADERS += src/util.h | |
861f9a59 GM |
36 | noinst_HEADERS += src/testrand.h |
37 | noinst_HEADERS += src/testrand_impl.h | |
bbd5ba7c PW |
38 | noinst_HEADERS += src/hash.h |
39 | noinst_HEADERS += src/hash_impl.h | |
78cd96b1 | 40 | noinst_HEADERS += src/field.h |
11ab5622 | 41 | noinst_HEADERS += src/field_impl.h |
6558a267 | 42 | noinst_HEADERS += src/bench.h |
78cd96b1 | 43 | |
81b2faeb | 44 | pkgconfigdir = $(libdir)/pkgconfig |
c7ee71f7 AT |
45 | pkgconfig_DATA = libsecp256k1.pc |
46 | ||
8881212e | 47 | libsecp256k1_la_SOURCES = src/secp256k1.c |
76f67697 | 48 | libsecp256k1_la_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src $(SECP_INCLUDES) |
67935050 | 49 | libsecp256k1_la_LIBADD = $(SECP_LIBS) |
e2d66a2c | 50 | |
8881212e | 51 | |
78cd96b1 CF |
52 | noinst_PROGRAMS = |
53 | if USE_BENCHMARK | |
9f443be0 | 54 | noinst_PROGRAMS += bench_verify bench_sign bench_internal |
504c63d7 PW |
55 | bench_verify_SOURCES = src/bench_verify.c |
56 | bench_verify_LDADD = libsecp256k1.la $(SECP_LIBS) | |
fa5c13ff PW |
57 | bench_sign_SOURCES = src/bench_sign.c |
58 | bench_sign_LDADD = libsecp256k1.la $(SECP_LIBS) | |
039723d5 PW |
59 | bench_internal_SOURCES = src/bench_internal.c |
60 | bench_internal_LDADD = $(SECP_LIBS) | |
039723d5 | 61 | bench_internal_CPPFLAGS = $(SECP_INCLUDES) |
78cd96b1 CF |
62 | endif |
63 | ||
64 | if USE_TESTS | |
65 | noinst_PROGRAMS += tests | |
66 | tests_SOURCES = src/tests.c | |
76f67697 | 67 | tests_CPPFLAGS = -DVERIFY -I$(top_srcdir)/src $(SECP_INCLUDES) $(SECP_TEST_INCLUDES) |
67935050 | 68 | tests_LDADD = $(SECP_LIBS) $(SECP_TEST_LIBS) |
78cd96b1 CF |
69 | tests_LDFLAGS = -static |
70 | TESTS = tests | |
71 | endif | |
72 | ||
fbecc38a | 73 | if USE_ECMULT_STATIC_PRECOMPUTATION |
76f67697 | 74 | CPPFLAGS_FOR_BUILD +=-I$(top_srcdir)/ |
fbecc38a TD |
75 | CFLAGS_FOR_BUILD += -Wall -Wextra -Wno-unused-function |
76 | ||
77 | gen_context_OBJECTS = gen_context.o | |
e4ce3936 | 78 | gen_context_BIN = gen_context$(BUILD_EXEEXT) |
fbecc38a TD |
79 | gen_%.o: src/gen_%.c |
80 | $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $< -o $@ | |
81 | ||
e4ce3936 | 82 | $(gen_context_BIN): $(gen_context_OBJECTS) |
fbecc38a TD |
83 | $(CC_FOR_BUILD) $^ -o $@ |
84 | ||
b8e39ac5 CF |
85 | $(libsecp256k1_la_OBJECTS): src/ecmult_static_context.h |
86 | $(tests_OBJECTS): src/ecmult_static_context.h | |
6da1446d | 87 | $(bench_internal_OBJECTS): src/ecmult_static_context.h |
fbecc38a | 88 | |
e4ce3936 CF |
89 | src/ecmult_static_context.h: $(gen_context_BIN) |
90 | ./$(gen_context_BIN) | |
c37812f5 | 91 | |
e4ce3936 | 92 | CLEANFILES = $(gen_context_BIN) src/ecmult_static_context.h |
fbecc38a TD |
93 | endif |
94 | ||
76f67697 | 95 | EXTRA_DIST = autogen.sh src/gen_context.c src/basic-config.h |
0739bbb6 AP |
96 | |
97 | if ENABLE_MODULE_ECDH | |
98 | include src/modules/ecdh/Makefile.am.include | |
99 | endif | |
a5a66c70 PW |
100 | |
101 | if ENABLE_MODULE_SCHNORR | |
102 | include src/modules/schnorr/Makefile.am.include | |
103 | endif | |
9f443be0 PW |
104 | |
105 | if ENABLE_MODULE_RECOVERY | |
106 | include src/modules/recovery/Makefile.am.include | |
107 | endif |