]> Git Repo - secp256k1.git/blame - Makefile.am
Fix for Windows compile issue
[secp256k1.git] / Makefile.am
CommitLineData
6fac238f 1ACLOCAL_AMFLAGS = -I build-aux/m4
f9aac5b0 2
78cd96b1 3lib_LTLIBRARIES = libsecp256k1.la
78cd96b1
CF
4include_HEADERS = include/secp256k1.h
5noinst_HEADERS =
a9f5c8b8 6noinst_HEADERS += src/scalar.h
1d52a8b1
PW
7noinst_HEADERS += src/scalar_4x64.h
8noinst_HEADERS += src/scalar_8x32.h
a9f5c8b8 9noinst_HEADERS += src/scalar_impl.h
1d52a8b1
PW
10noinst_HEADERS += src/scalar_4x64_impl.h
11noinst_HEADERS += src/scalar_8x32_impl.h
78cd96b1 12noinst_HEADERS += src/group.h
11ab5622 13noinst_HEADERS += src/group_impl.h
78cd96b1 14noinst_HEADERS += src/num_gmp.h
11ab5622 15noinst_HEADERS += src/num_gmp_impl.h
78cd96b1 16noinst_HEADERS += src/ecdsa.h
11ab5622 17noinst_HEADERS += src/ecdsa_impl.h
e2f71f1e
PW
18noinst_HEADERS += src/eckey.h
19noinst_HEADERS += src/eckey_impl.h
78cd96b1 20noinst_HEADERS += src/ecmult.h
11ab5622 21noinst_HEADERS += src/ecmult_impl.h
44015000
AP
22noinst_HEADERS += src/ecmult_const.h
23noinst_HEADERS += src/ecmult_const_impl.h
949c1ebb
PW
24noinst_HEADERS += src/ecmult_gen.h
25noinst_HEADERS += src/ecmult_gen_impl.h
78cd96b1 26noinst_HEADERS += src/num.h
11ab5622 27noinst_HEADERS += src/num_impl.h
78cd96b1 28noinst_HEADERS += src/field_10x26.h
11ab5622 29noinst_HEADERS += src/field_10x26_impl.h
78cd96b1 30noinst_HEADERS += src/field_5x52.h
11ab5622
PW
31noinst_HEADERS += src/field_5x52_impl.h
32noinst_HEADERS += src/field_5x52_int128_impl.h
33noinst_HEADERS += src/field_5x52_asm_impl.h
78cd96b1
CF
34noinst_HEADERS += src/java/org_bitcoin_NativeSecp256k1.h
35noinst_HEADERS += src/util.h
861f9a59
GM
36noinst_HEADERS += src/testrand.h
37noinst_HEADERS += src/testrand_impl.h
bbd5ba7c
PW
38noinst_HEADERS += src/hash.h
39noinst_HEADERS += src/hash_impl.h
78cd96b1 40noinst_HEADERS += src/field.h
11ab5622 41noinst_HEADERS += src/field_impl.h
6558a267 42noinst_HEADERS += src/bench.h
fea19e7b 43noinst_HEADERS += contrib/lax_der_parsing.h
eed87af1 44noinst_HEADERS += contrib/lax_der_parsing.c
4a243da4 45noinst_HEADERS += contrib/lax_der_privatekey_parsing.h
eed87af1 46noinst_HEADERS += contrib/lax_der_privatekey_parsing.c
78cd96b1 47
81b2faeb 48pkgconfigdir = $(libdir)/pkgconfig
c7ee71f7
AT
49pkgconfig_DATA = libsecp256k1.pc
50
8881212e 51libsecp256k1_la_SOURCES = src/secp256k1.c
76f67697 52libsecp256k1_la_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src $(SECP_INCLUDES)
67935050 53libsecp256k1_la_LIBADD = $(SECP_LIBS)
e2d66a2c 54
8881212e 55
78cd96b1
CF
56noinst_PROGRAMS =
57if USE_BENCHMARK
9f443be0 58noinst_PROGRAMS += bench_verify bench_sign bench_internal
504c63d7
PW
59bench_verify_SOURCES = src/bench_verify.c
60bench_verify_LDADD = libsecp256k1.la $(SECP_LIBS)
fa5c13ff
PW
61bench_sign_SOURCES = src/bench_sign.c
62bench_sign_LDADD = libsecp256k1.la $(SECP_LIBS)
039723d5
PW
63bench_internal_SOURCES = src/bench_internal.c
64bench_internal_LDADD = $(SECP_LIBS)
039723d5 65bench_internal_CPPFLAGS = $(SECP_INCLUDES)
78cd96b1
CF
66endif
67
68if USE_TESTS
69noinst_PROGRAMS += tests
70tests_SOURCES = src/tests.c
fea19e7b 71tests_CPPFLAGS = -DVERIFY -I$(top_srcdir)/src -I$(top_srcdir)/include $(SECP_INCLUDES) $(SECP_TEST_INCLUDES)
67935050 72tests_LDADD = $(SECP_LIBS) $(SECP_TEST_LIBS)
78cd96b1
CF
73tests_LDFLAGS = -static
74TESTS = tests
75endif
76
fbecc38a 77if USE_ECMULT_STATIC_PRECOMPUTATION
445f7f10 78CPPFLAGS_FOR_BUILD +=-I$(top_srcdir)
fbecc38a
TD
79CFLAGS_FOR_BUILD += -Wall -Wextra -Wno-unused-function
80
81gen_context_OBJECTS = gen_context.o
e4ce3936 82gen_context_BIN = gen_context$(BUILD_EXEEXT)
fbecc38a
TD
83gen_%.o: src/gen_%.c
84 $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $< -o $@
85
e4ce3936 86$(gen_context_BIN): $(gen_context_OBJECTS)
fbecc38a
TD
87 $(CC_FOR_BUILD) $^ -o $@
88
b8e39ac5
CF
89$(libsecp256k1_la_OBJECTS): src/ecmult_static_context.h
90$(tests_OBJECTS): src/ecmult_static_context.h
6da1446d 91$(bench_internal_OBJECTS): src/ecmult_static_context.h
fbecc38a 92
e4ce3936
CF
93src/ecmult_static_context.h: $(gen_context_BIN)
94 ./$(gen_context_BIN)
c37812f5 95
e4ce3936 96CLEANFILES = $(gen_context_BIN) src/ecmult_static_context.h
fbecc38a
TD
97endif
98
76f67697 99EXTRA_DIST = autogen.sh src/gen_context.c src/basic-config.h
0739bbb6
AP
100
101if ENABLE_MODULE_ECDH
102include src/modules/ecdh/Makefile.am.include
103endif
a5a66c70
PW
104
105if ENABLE_MODULE_SCHNORR
106include src/modules/schnorr/Makefile.am.include
107endif
9f443be0
PW
108
109if ENABLE_MODULE_RECOVERY
110include src/modules/recovery/Makefile.am.include
111endif
This page took 0.042682 seconds and 4 git commands to generate.