github.com/ethereumproject/go-ethereum@v5.5.2+incompatible/crypto/secp256k1/libsecp256k1/Makefile.am (about)

     1  ACLOCAL_AMFLAGS = -I build-aux/m4
     2  
     3  lib_LTLIBRARIES = libsecp256k1.la
     4  include_HEADERS = include/secp256k1.h
     5  noinst_HEADERS =
     6  noinst_HEADERS += src/scalar.h
     7  noinst_HEADERS += src/scalar_4x64.h
     8  noinst_HEADERS += src/scalar_8x32.h
     9  noinst_HEADERS += src/scalar_impl.h
    10  noinst_HEADERS += src/scalar_4x64_impl.h
    11  noinst_HEADERS += src/scalar_8x32_impl.h
    12  noinst_HEADERS += src/group.h
    13  noinst_HEADERS += src/group_impl.h
    14  noinst_HEADERS += src/num_gmp.h
    15  noinst_HEADERS += src/num_gmp_impl.h
    16  noinst_HEADERS += src/ecdsa.h
    17  noinst_HEADERS += src/ecdsa_impl.h
    18  noinst_HEADERS += src/eckey.h
    19  noinst_HEADERS += src/eckey_impl.h
    20  noinst_HEADERS += src/ecmult.h
    21  noinst_HEADERS += src/ecmult_impl.h
    22  noinst_HEADERS += src/ecmult_const.h
    23  noinst_HEADERS += src/ecmult_const_impl.h
    24  noinst_HEADERS += src/ecmult_gen.h
    25  noinst_HEADERS += src/ecmult_gen_impl.h
    26  noinst_HEADERS += src/num.h
    27  noinst_HEADERS += src/num_impl.h
    28  noinst_HEADERS += src/field_10x26.h
    29  noinst_HEADERS += src/field_10x26_impl.h
    30  noinst_HEADERS += src/field_5x52.h
    31  noinst_HEADERS += src/field_5x52_impl.h
    32  noinst_HEADERS += src/field_5x52_int128_impl.h
    33  noinst_HEADERS += src/field_5x52_asm_impl.h
    34  noinst_HEADERS += src/java/org_bitcoin_NativeSecp256k1.h
    35  noinst_HEADERS += src/util.h
    36  noinst_HEADERS += src/testrand.h
    37  noinst_HEADERS += src/testrand_impl.h
    38  noinst_HEADERS += src/hash.h
    39  noinst_HEADERS += src/hash_impl.h
    40  noinst_HEADERS += src/field.h
    41  noinst_HEADERS += src/field_impl.h
    42  noinst_HEADERS += src/bench.h
    43  
    44  pkgconfigdir = $(libdir)/pkgconfig
    45  pkgconfig_DATA = libsecp256k1.pc
    46  
    47  libsecp256k1_la_SOURCES = src/secp256k1.c
    48  libsecp256k1_la_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src $(SECP_INCLUDES)
    49  libsecp256k1_la_LIBADD = $(SECP_LIBS)
    50  
    51  
    52  noinst_PROGRAMS =
    53  if USE_BENCHMARK
    54  noinst_PROGRAMS += bench_verify bench_sign bench_internal
    55  bench_verify_SOURCES = src/bench_verify.c
    56  bench_verify_LDADD = libsecp256k1.la $(SECP_LIBS)
    57  bench_verify_LDFLAGS = -static
    58  bench_sign_SOURCES = src/bench_sign.c
    59  bench_sign_LDADD = libsecp256k1.la $(SECP_LIBS)
    60  bench_sign_LDFLAGS = -static
    61  bench_internal_SOURCES = src/bench_internal.c
    62  bench_internal_LDADD = $(SECP_LIBS)
    63  bench_internal_LDFLAGS = -static
    64  bench_internal_CPPFLAGS = $(SECP_INCLUDES)
    65  endif
    66  
    67  if USE_TESTS
    68  noinst_PROGRAMS += tests
    69  tests_SOURCES = src/tests.c
    70  tests_CPPFLAGS = -DVERIFY -I$(top_srcdir)/src $(SECP_INCLUDES) $(SECP_TEST_INCLUDES)
    71  tests_LDADD = $(SECP_LIBS) $(SECP_TEST_LIBS)
    72  tests_LDFLAGS = -static
    73  TESTS = tests
    74  endif
    75  
    76  if USE_ECMULT_STATIC_PRECOMPUTATION
    77  CPPFLAGS_FOR_BUILD +=-I$(top_srcdir)/
    78  CFLAGS_FOR_BUILD += -Wall -Wextra -Wno-unused-function
    79  
    80  gen_context_OBJECTS = gen_context.o
    81  gen_context_BIN = gen_context$(BUILD_EXEEXT)
    82  gen_%.o: src/gen_%.c
    83  	$(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $< -o $@
    84  
    85  $(gen_context_BIN): $(gen_context_OBJECTS)
    86  	$(CC_FOR_BUILD) $^ -o $@
    87  
    88  $(libsecp256k1_la_OBJECTS): src/ecmult_static_context.h
    89  $(tests_OBJECTS): src/ecmult_static_context.h
    90  $(bench_internal_OBJECTS): src/ecmult_static_context.h
    91  
    92  src/ecmult_static_context.h: $(gen_context_BIN)
    93  	./$(gen_context_BIN)
    94  
    95  CLEANFILES = $(gen_context_BIN) src/ecmult_static_context.h
    96  endif
    97  
    98  EXTRA_DIST = autogen.sh src/gen_context.c src/basic-config.h
    99  
   100  if ENABLE_MODULE_ECDH
   101  include src/modules/ecdh/Makefile.am.include
   102  endif
   103  
   104  if ENABLE_MODULE_SCHNORR
   105  include src/modules/schnorr/Makefile.am.include
   106  endif
   107  
   108  if ENABLE_MODULE_RECOVERY
   109  include src/modules/recovery/Makefile.am.include
   110  endif