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