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