Commit | Line | Data |
---|---|---|
78cd96b1 CF |
1 | ACLOCAL_AMFLAGS = -I m4 |
2 | INCLUDES = $(SECP_INCLUDES) | |
3 | lib_LTLIBRARIES = libsecp256k1.la | |
4 | libsecp256k1_la_SOURCES = src/secp256k1.c | |
5 | libsecp256k1_la_CPPFLAGS = -I$(top_srcdir)/include $(SECP_INCLUDES) | |
6 | libsecp256k1_la_LIBADD = $(SECP_LIBS) | |
7 | include_HEADERS = include/secp256k1.h | |
8 | noinst_HEADERS = | |
9 | noinst_HEADERS += src/group.h | |
10 | noinst_HEADERS += src/num_openssl.h | |
11 | noinst_HEADERS += src/num_gmp.h | |
12 | noinst_HEADERS += src/ecdsa.h | |
13 | noinst_HEADERS += src/ecmult.h | |
14 | noinst_HEADERS += src/num.h | |
15 | noinst_HEADERS += src/field_10x26.h | |
16 | noinst_HEADERS += src/field_5x52.h | |
17 | noinst_HEADERS += src/java/org_bitcoin_NativeSecp256k1.h | |
18 | noinst_HEADERS += src/util.h | |
19 | noinst_HEADERS += src/field_gmp.h | |
20 | noinst_HEADERS += src/impl/group.h | |
21 | noinst_HEADERS += src/impl/num_openssl.h | |
22 | noinst_HEADERS += src/impl/num_gmp.h | |
23 | noinst_HEADERS += src/impl/ecdsa.h | |
24 | noinst_HEADERS += src/impl/field_5x52_int128.h | |
25 | noinst_HEADERS += src/impl/ecmult.h | |
26 | noinst_HEADERS += src/impl/num.h | |
27 | noinst_HEADERS += src/impl/field_10x26.h | |
28 | noinst_HEADERS += src/impl/field_5x52.h | |
29 | noinst_HEADERS += src/impl/util.h | |
30 | noinst_HEADERS += src/impl/field_gmp.h | |
31 | noinst_HEADERS += src/impl/field_5x52_asm.h | |
32 | noinst_HEADERS += src/impl/field.h | |
33 | noinst_HEADERS += src/field.h | |
34 | ||
35 | if USE_ASM | |
36 | libsecp256k1_la_SOURCES += src/field_5x52_asm.asm | |
37 | endif | |
38 | ||
39 | noinst_PROGRAMS = | |
40 | if USE_BENCHMARK | |
41 | noinst_PROGRAMS += bench | |
42 | bench_SOURCES = src/bench.c | |
43 | bench_CPPFLAGS = -DNDEBUG | |
44 | bench_LDADD = libsecp256k1.la $(SECP_LIBS) | |
45 | bench_LDFLAGS = -static | |
46 | endif | |
47 | ||
48 | if USE_TESTS | |
49 | noinst_PROGRAMS += tests | |
50 | tests_SOURCES = src/tests.c | |
51 | tests_CPPFLAGS = -DVERIFY $(SECP_TEST_INCLUDES) | |
52 | tests_LDADD = libsecp256k1.la $(SECP_LIBS) $(SECP_TEST_LIBS) | |
53 | tests_LDFLAGS = -static | |
54 | TESTS = tests | |
55 | endif | |
56 | ||
57 | EXTRA_DIST = nasm_lt.sh | |
58 | ||
59 | #x86_64 only | |
60 | if USE_ASM | |
61 | .asm.lo: | |
282ebc6d | 62 | $(LIBTOOL) --mode=compile --tag YASM $(srcdir)/nasm_lt.sh $(YASM) -f $(YASM_BINFMT) $(YAFLAGS) -I$(srcdir) -I. $< -o $@ |
78cd96b1 | 63 | endif |