Commit | Line | Data |
---|---|---|
6fac238f | 1 | ACLOCAL_AMFLAGS = -I build-aux/m4 |
f9aac5b0 | 2 | |
78cd96b1 | 3 | lib_LTLIBRARIES = libsecp256k1.la |
e2d66a2c PD |
4 | if USE_ASM |
5 | COMMON_LIB = libsecp256k1_common.la | |
6 | else | |
7 | COMMON_LIB = | |
8 | endif | |
9 | noinst_LTLIBRARIES = $(COMMON_LIB) | |
78cd96b1 CF |
10 | include_HEADERS = include/secp256k1.h |
11 | noinst_HEADERS = | |
a9f5c8b8 | 12 | noinst_HEADERS += src/scalar.h |
1d52a8b1 PW |
13 | noinst_HEADERS += src/scalar_4x64.h |
14 | noinst_HEADERS += src/scalar_8x32.h | |
a9f5c8b8 | 15 | noinst_HEADERS += src/scalar_impl.h |
1d52a8b1 PW |
16 | noinst_HEADERS += src/scalar_4x64_impl.h |
17 | noinst_HEADERS += src/scalar_8x32_impl.h | |
78cd96b1 | 18 | noinst_HEADERS += src/group.h |
11ab5622 | 19 | noinst_HEADERS += src/group_impl.h |
78cd96b1 | 20 | noinst_HEADERS += src/num_gmp.h |
11ab5622 | 21 | noinst_HEADERS += src/num_gmp_impl.h |
78cd96b1 | 22 | noinst_HEADERS += src/ecdsa.h |
11ab5622 | 23 | noinst_HEADERS += src/ecdsa_impl.h |
e2f71f1e PW |
24 | noinst_HEADERS += src/eckey.h |
25 | noinst_HEADERS += src/eckey_impl.h | |
78cd96b1 | 26 | noinst_HEADERS += src/ecmult.h |
11ab5622 | 27 | noinst_HEADERS += src/ecmult_impl.h |
949c1ebb PW |
28 | noinst_HEADERS += src/ecmult_gen.h |
29 | noinst_HEADERS += src/ecmult_gen_impl.h | |
78cd96b1 | 30 | noinst_HEADERS += src/num.h |
11ab5622 | 31 | noinst_HEADERS += src/num_impl.h |
78cd96b1 | 32 | noinst_HEADERS += src/field_10x26.h |
11ab5622 | 33 | noinst_HEADERS += src/field_10x26_impl.h |
78cd96b1 | 34 | noinst_HEADERS += src/field_5x52.h |
11ab5622 PW |
35 | noinst_HEADERS += src/field_5x52_impl.h |
36 | noinst_HEADERS += src/field_5x52_int128_impl.h | |
37 | noinst_HEADERS += src/field_5x52_asm_impl.h | |
78cd96b1 CF |
38 | noinst_HEADERS += src/java/org_bitcoin_NativeSecp256k1.h |
39 | noinst_HEADERS += src/util.h | |
861f9a59 GM |
40 | noinst_HEADERS += src/testrand.h |
41 | noinst_HEADERS += src/testrand_impl.h | |
78cd96b1 | 42 | noinst_HEADERS += src/field_gmp.h |
11ab5622 | 43 | noinst_HEADERS += src/field_gmp_impl.h |
78cd96b1 | 44 | noinst_HEADERS += src/field.h |
11ab5622 | 45 | noinst_HEADERS += src/field_impl.h |
78cd96b1 | 46 | |
81b2faeb | 47 | pkgconfigdir = $(libdir)/pkgconfig |
c7ee71f7 AT |
48 | pkgconfig_DATA = libsecp256k1.pc |
49 | ||
78cd96b1 | 50 | if USE_ASM |
e2d66a2c | 51 | libsecp256k1_common_la_SOURCES = src/field_5x52_asm.asm |
78cd96b1 CF |
52 | endif |
53 | ||
8881212e PW |
54 | libsecp256k1_la_SOURCES = src/secp256k1.c |
55 | libsecp256k1_la_CPPFLAGS = -I$(top_srcdir)/include $(SECP_INCLUDES) | |
e2d66a2c PD |
56 | libsecp256k1_la_LIBADD = $(COMMON_LIB) $(SECP_LIBS) |
57 | ||
8881212e | 58 | |
78cd96b1 CF |
59 | noinst_PROGRAMS = |
60 | if USE_BENCHMARK | |
fa5c13ff | 61 | noinst_PROGRAMS += bench_verify bench_sign bench_inv |
504c63d7 PW |
62 | bench_verify_SOURCES = src/bench_verify.c |
63 | bench_verify_LDADD = libsecp256k1.la $(SECP_LIBS) | |
64 | bench_verify_LDFLAGS = -static | |
fa5c13ff PW |
65 | bench_sign_SOURCES = src/bench_sign.c |
66 | bench_sign_LDADD = libsecp256k1.la $(SECP_LIBS) | |
67 | bench_sign_LDFLAGS = -static | |
ae2679b6 | 68 | bench_inv_SOURCES = src/bench_inv.c |
e2d66a2c | 69 | bench_inv_LDADD = $(COMMON_LIB) $(SECP_LIBS) |
ae2679b6 | 70 | bench_inv_LDFLAGS = -static |
e2274c58 | 71 | bench_inv_CPPFLAGS = $(SECP_INCLUDES) |
78cd96b1 CF |
72 | endif |
73 | ||
74 | if USE_TESTS | |
75 | noinst_PROGRAMS += tests | |
76 | tests_SOURCES = src/tests.c | |
e2274c58 | 77 | tests_CPPFLAGS = -DVERIFY $(SECP_INCLUDES) $(SECP_TEST_INCLUDES) |
e2d66a2c | 78 | tests_LDADD = $(COMMON_LIB) $(SECP_LIBS) $(SECP_TEST_LIBS) |
78cd96b1 CF |
79 | tests_LDFLAGS = -static |
80 | TESTS = tests | |
81 | endif | |
82 | ||
d4090876 | 83 | EXTRA_DIST = autogen.sh nasm_lt.sh |
78cd96b1 CF |
84 | |
85 | #x86_64 only | |
86 | if USE_ASM | |
87 | .asm.lo: | |
282ebc6d | 88 | $(LIBTOOL) --mode=compile --tag YASM $(srcdir)/nasm_lt.sh $(YASM) -f $(YASM_BINFMT) $(YAFLAGS) -I$(srcdir) -I. $< -o $@ |
78cd96b1 | 89 | endif |