]>
Commit | Line | Data |
---|---|---|
78cd96b1 CF |
1 | ACLOCAL_AMFLAGS = -I m4 |
2 | INCLUDES = $(SECP_INCLUDES) | |
3 | lib_LTLIBRARIES = libsecp256k1.la | |
8881212e | 4 | noinst_LTLIBRARIES = libsecp256k1_common.la |
78cd96b1 CF |
5 | include_HEADERS = include/secp256k1.h |
6 | noinst_HEADERS = | |
a9f5c8b8 PW |
7 | noinst_HEADERS += src/scalar.h |
8 | noinst_HEADERS += src/scalar_impl.h | |
78cd96b1 | 9 | noinst_HEADERS += src/group.h |
11ab5622 | 10 | noinst_HEADERS += src/group_impl.h |
78cd96b1 | 11 | noinst_HEADERS += src/num_gmp.h |
11ab5622 | 12 | noinst_HEADERS += src/num_gmp_impl.h |
78cd96b1 | 13 | noinst_HEADERS += src/ecdsa.h |
11ab5622 | 14 | noinst_HEADERS += src/ecdsa_impl.h |
e2f71f1e PW |
15 | noinst_HEADERS += src/eckey.h |
16 | noinst_HEADERS += src/eckey_impl.h | |
78cd96b1 | 17 | noinst_HEADERS += src/ecmult.h |
11ab5622 | 18 | noinst_HEADERS += src/ecmult_impl.h |
949c1ebb PW |
19 | noinst_HEADERS += src/ecmult_gen.h |
20 | noinst_HEADERS += src/ecmult_gen_impl.h | |
78cd96b1 | 21 | noinst_HEADERS += src/num.h |
11ab5622 | 22 | noinst_HEADERS += src/num_impl.h |
78cd96b1 | 23 | noinst_HEADERS += src/field_10x26.h |
11ab5622 | 24 | noinst_HEADERS += src/field_10x26_impl.h |
78cd96b1 | 25 | noinst_HEADERS += src/field_5x52.h |
11ab5622 PW |
26 | noinst_HEADERS += src/field_5x52_impl.h |
27 | noinst_HEADERS += src/field_5x52_int128_impl.h | |
28 | noinst_HEADERS += src/field_5x52_asm_impl.h | |
78cd96b1 CF |
29 | noinst_HEADERS += src/java/org_bitcoin_NativeSecp256k1.h |
30 | noinst_HEADERS += src/util.h | |
11ab5622 | 31 | noinst_HEADERS += src/util_impl.h |
78cd96b1 | 32 | noinst_HEADERS += src/field_gmp.h |
11ab5622 | 33 | noinst_HEADERS += src/field_gmp_impl.h |
78cd96b1 | 34 | noinst_HEADERS += src/field.h |
11ab5622 | 35 | noinst_HEADERS += src/field_impl.h |
78cd96b1 | 36 | |
81b2faeb | 37 | pkgconfigdir = $(libdir)/pkgconfig |
c7ee71f7 AT |
38 | pkgconfig_DATA = libsecp256k1.pc |
39 | ||
8881212e | 40 | libsecp256k1_common_la_SOURCES = |
78cd96b1 | 41 | if USE_ASM |
8881212e | 42 | libsecp256k1_common_la_SOURCES += src/field_5x52_asm.asm |
78cd96b1 CF |
43 | endif |
44 | ||
8881212e PW |
45 | libsecp256k1_la_SOURCES = src/secp256k1.c |
46 | libsecp256k1_la_CPPFLAGS = -I$(top_srcdir)/include $(SECP_INCLUDES) | |
47 | libsecp256k1_la_LIBADD = libsecp256k1_common.la $(SECP_LIBS) | |
48 | ||
78cd96b1 CF |
49 | noinst_PROGRAMS = |
50 | if USE_BENCHMARK | |
51 | noinst_PROGRAMS += bench | |
52 | bench_SOURCES = src/bench.c | |
bae6a42b | 53 | bench_LDADD = libsecp256k1.la $(SECP_LIBS) |
78cd96b1 CF |
54 | bench_LDFLAGS = -static |
55 | endif | |
56 | ||
57 | if USE_TESTS | |
58 | noinst_PROGRAMS += tests | |
59 | tests_SOURCES = src/tests.c | |
60 | tests_CPPFLAGS = -DVERIFY $(SECP_TEST_INCLUDES) | |
8881212e | 61 | tests_LDADD = libsecp256k1_common.la $(SECP_LIBS) $(SECP_TEST_LIBS) |
78cd96b1 CF |
62 | tests_LDFLAGS = -static |
63 | TESTS = tests | |
64 | endif | |
65 | ||
d4090876 | 66 | EXTRA_DIST = autogen.sh nasm_lt.sh |
78cd96b1 CF |
67 | |
68 | #x86_64 only | |
69 | if USE_ASM | |
70 | .asm.lo: | |
282ebc6d | 71 | $(LIBTOOL) --mode=compile --tag YASM $(srcdir)/nasm_lt.sh $(YASM) -f $(YASM_BINFMT) $(YAFLAGS) -I$(srcdir) -I. $< -o $@ |
78cd96b1 | 72 | endif |