|
2 | 2 | # Distributed under the MIT software license, see the accompanying
|
3 | 3 | # file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
4 | 4 |
|
5 |
| -# Pattern rule to print variables, e.g. make print-top_srcdir |
6 |
| -print-%: FORCE |
7 |
| - @echo '$*'='$($*)' |
8 |
| - |
9 |
| -ACLOCAL_AMFLAGS = -I build-aux/m4 |
10 |
| -SUBDIRS = src |
11 |
| -if ENABLE_MAN |
12 |
| -SUBDIRS += doc/man |
| 5 | +# AM_CFLAGS will be automatically prepended to CFLAGS by Automake when compiling some foo |
| 6 | +# which does not have an explicit foo_CFLAGS variable set. |
| 7 | +AM_CFLAGS = $(SECP_CFLAGS) |
| 8 | + |
| 9 | +lib_LTLIBRARIES = libsecp256k1.la |
| 10 | +include_HEADERS = include/secp256k1.h |
| 11 | +include_HEADERS += include/secp256k1_preallocated.h |
| 12 | +noinst_HEADERS = |
| 13 | +noinst_HEADERS += src/scalar.h |
| 14 | +noinst_HEADERS += src/scalar_4x64.h |
| 15 | +noinst_HEADERS += src/scalar_8x32.h |
| 16 | +noinst_HEADERS += src/scalar_low.h |
| 17 | +noinst_HEADERS += src/scalar_impl.h |
| 18 | +noinst_HEADERS += src/scalar_4x64_impl.h |
| 19 | +noinst_HEADERS += src/scalar_8x32_impl.h |
| 20 | +noinst_HEADERS += src/scalar_low_impl.h |
| 21 | +noinst_HEADERS += src/group.h |
| 22 | +noinst_HEADERS += src/group_impl.h |
| 23 | +noinst_HEADERS += src/ecdsa.h |
| 24 | +noinst_HEADERS += src/ecdsa_impl.h |
| 25 | +noinst_HEADERS += src/eckey.h |
| 26 | +noinst_HEADERS += src/eckey_impl.h |
| 27 | +noinst_HEADERS += src/ecmult.h |
| 28 | +noinst_HEADERS += src/ecmult_impl.h |
| 29 | +noinst_HEADERS += src/ecmult_compute_table.h |
| 30 | +noinst_HEADERS += src/ecmult_compute_table_impl.h |
| 31 | +noinst_HEADERS += src/ecmult_const.h |
| 32 | +noinst_HEADERS += src/ecmult_const_impl.h |
| 33 | +noinst_HEADERS += src/ecmult_gen.h |
| 34 | +noinst_HEADERS += src/ecmult_gen_impl.h |
| 35 | +noinst_HEADERS += src/ecmult_gen_compute_table.h |
| 36 | +noinst_HEADERS += src/ecmult_gen_compute_table_impl.h |
| 37 | +noinst_HEADERS += src/field_10x26.h |
| 38 | +noinst_HEADERS += src/field_10x26_impl.h |
| 39 | +noinst_HEADERS += src/field_5x52.h |
| 40 | +noinst_HEADERS += src/field_5x52_impl.h |
| 41 | +noinst_HEADERS += src/field_5x52_int128_impl.h |
| 42 | +noinst_HEADERS += src/modinv32.h |
| 43 | +noinst_HEADERS += src/modinv32_impl.h |
| 44 | +noinst_HEADERS += src/modinv64.h |
| 45 | +noinst_HEADERS += src/modinv64_impl.h |
| 46 | +noinst_HEADERS += src/precomputed_ecmult.h |
| 47 | +noinst_HEADERS += src/precomputed_ecmult_gen.h |
| 48 | +noinst_HEADERS += src/assumptions.h |
| 49 | +noinst_HEADERS += src/checkmem.h |
| 50 | +noinst_HEADERS += src/testutil.h |
| 51 | +noinst_HEADERS += src/util.h |
| 52 | +noinst_HEADERS += src/int128.h |
| 53 | +noinst_HEADERS += src/int128_impl.h |
| 54 | +noinst_HEADERS += src/int128_native.h |
| 55 | +noinst_HEADERS += src/int128_native_impl.h |
| 56 | +noinst_HEADERS += src/int128_struct.h |
| 57 | +noinst_HEADERS += src/int128_struct_impl.h |
| 58 | +noinst_HEADERS += src/scratch.h |
| 59 | +noinst_HEADERS += src/scratch_impl.h |
| 60 | +noinst_HEADERS += src/selftest.h |
| 61 | +noinst_HEADERS += src/testrand.h |
| 62 | +noinst_HEADERS += src/testrand_impl.h |
| 63 | +noinst_HEADERS += src/hash.h |
| 64 | +noinst_HEADERS += src/hash_impl.h |
| 65 | +noinst_HEADERS += src/field.h |
| 66 | +noinst_HEADERS += src/field_impl.h |
| 67 | +noinst_HEADERS += src/bench.h |
| 68 | +noinst_HEADERS += src/wycheproof/ecdsa_secp256k1_sha256_bitcoin_test.h |
| 69 | +noinst_HEADERS += src/hsort.h |
| 70 | +noinst_HEADERS += src/hsort_impl.h |
| 71 | +noinst_HEADERS += contrib/lax_der_parsing.h |
| 72 | +noinst_HEADERS += contrib/lax_der_parsing.c |
| 73 | +noinst_HEADERS += contrib/lax_der_privatekey_parsing.h |
| 74 | +noinst_HEADERS += contrib/lax_der_privatekey_parsing.c |
| 75 | +noinst_HEADERS += examples/examples_util.h |
| 76 | + |
| 77 | +PRECOMPUTED_LIB = libsecp256k1_precomputed.la |
| 78 | +noinst_LTLIBRARIES = $(PRECOMPUTED_LIB) |
| 79 | +libsecp256k1_precomputed_la_SOURCES = src/precomputed_ecmult.c src/precomputed_ecmult_gen.c |
| 80 | +# We need `-I$(top_srcdir)/src` in VPATH builds if libsecp256k1_precomputed_la_SOURCES have been recreated in the build tree. |
| 81 | +# This helps users and packagers who insist on recreating the precomputed files (e.g., Gentoo). |
| 82 | +libsecp256k1_precomputed_la_CPPFLAGS = -I$(top_srcdir)/src $(SECP_CONFIG_DEFINES) |
| 83 | + |
| 84 | +if USE_EXTERNAL_ASM |
| 85 | +COMMON_LIB = libsecp256k1_common.la |
| 86 | +else |
| 87 | +COMMON_LIB = |
13 | 88 | endif
|
14 | 89 | .PHONY: deploy FORCE
|
15 | 90 | .INTERMEDIATE: $(COVERAGE_INFO)
|
|
0 commit comments