You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 3.4KB

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