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