1 ACLOCAL_AMFLAGS = -I m4
2 INCLUDES = $(SECP_INCLUDES)
3 lib_LTLIBRARIES = libsecp256k1.la
5 COMMON_LIB = libsecp256k1_common.la
9 noinst_LTLIBRARIES = $(COMMON_LIB)
10 include_HEADERS = include/secp256k1.h
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/util_impl.h
41 noinst_HEADERS += src/field_gmp.h
42 noinst_HEADERS += src/field_gmp_impl.h
43 noinst_HEADERS += src/field.h
44 noinst_HEADERS += src/field_impl.h
46 pkgconfigdir = $(libdir)/pkgconfig
47 pkgconfig_DATA = libsecp256k1.pc
50 libsecp256k1_common_la_SOURCES = src/field_5x52_asm.asm
53 libsecp256k1_la_SOURCES = src/secp256k1.c
54 libsecp256k1_la_CPPFLAGS = -I$(top_srcdir)/include $(SECP_INCLUDES)
55 libsecp256k1_la_LIBADD = $(COMMON_LIB) $(SECP_LIBS)
60 noinst_PROGRAMS += bench_verify bench_sign bench_inv
61 bench_verify_SOURCES = src/bench_verify.c
62 bench_verify_LDADD = libsecp256k1.la $(SECP_LIBS)
63 bench_verify_LDFLAGS = -static
64 bench_sign_SOURCES = src/bench_sign.c
65 bench_sign_LDADD = libsecp256k1.la $(SECP_LIBS)
66 bench_sign_LDFLAGS = -static
67 bench_inv_SOURCES = src/bench_inv.c
68 bench_inv_LDADD = $(COMMON_LIB) $(SECP_LIBS)
69 bench_inv_LDFLAGS = -static
73 noinst_PROGRAMS += tests
74 tests_SOURCES = src/tests.c
75 tests_CPPFLAGS = -DVERIFY $(SECP_TEST_INCLUDES)
76 tests_LDADD = $(COMMON_LIB) $(SECP_LIBS) $(SECP_TEST_LIBS)
77 tests_LDFLAGS = -static
81 EXTRA_DIST = autogen.sh nasm_lt.sh
86 $(LIBTOOL) --mode=compile --tag YASM $(srcdir)/nasm_lt.sh $(YASM) -f $(YASM_BINFMT) $(YAFLAGS) -I$(srcdir) -I. $< -o $@