Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. pkgcfgdir= $(pkgdatadir)/config.d/
  4. libexecdir= $(pkglibdir)/libexec/
  5. pkgcfg_DATA = \
  6. scalarproduct.conf
  7. if MINGW
  8. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
  9. endif
  10. if USE_COVERAGE
  11. AM_CFLAGS = -fprofile-arcs -ftest-coverage
  12. endif
  13. bin_PROGRAMS = \
  14. gnunet-scalarproduct
  15. libexec_PROGRAMS = \
  16. gnunet-service-scalarproduct-alice \
  17. gnunet-service-scalarproduct-bob \
  18. gnunet-service-scalarproduct-ecc-alice \
  19. gnunet-service-scalarproduct-ecc-bob
  20. lib_LTLIBRARIES = \
  21. libgnunetscalarproduct.la
  22. gnunet_scalarproduct_SOURCES = \
  23. gnunet-scalarproduct.c
  24. gnunet_scalarproduct_LDADD = \
  25. $(top_builddir)/src/util/libgnunetutil.la \
  26. libgnunetscalarproduct.la \
  27. $(LIBGCRYPT_LIBS) \
  28. -lgcrypt \
  29. $(GN_LIBINTL)
  30. gnunet_service_scalarproduct_alice_SOURCES = \
  31. gnunet-service-scalarproduct.h \
  32. gnunet-service-scalarproduct_alice.c
  33. gnunet_service_scalarproduct_alice_LDADD = \
  34. $(top_builddir)/src/util/libgnunetutil.la \
  35. $(top_builddir)/src/cadet/libgnunetcadet.la \
  36. $(top_builddir)/src/set/libgnunetset.la \
  37. $(LIBGCRYPT_LIBS) \
  38. -lgcrypt \
  39. $(GN_LIBINTL)
  40. gnunet_service_scalarproduct_bob_SOURCES = \
  41. gnunet-service-scalarproduct.h \
  42. gnunet-service-scalarproduct_bob.c
  43. gnunet_service_scalarproduct_bob_LDADD = \
  44. $(top_builddir)/src/util/libgnunetutil.la \
  45. $(top_builddir)/src/cadet/libgnunetcadet.la \
  46. $(top_builddir)/src/set/libgnunetset.la \
  47. $(LIBGCRYPT_LIBS) \
  48. -lgcrypt \
  49. $(GN_LIBINTL)
  50. gnunet_service_scalarproduct_ecc_alice_SOURCES = \
  51. gnunet-service-scalarproduct-ecc.h \
  52. gnunet-service-scalarproduct-ecc_alice.c
  53. gnunet_service_scalarproduct_ecc_alice_LDADD = \
  54. $(top_builddir)/src/util/libgnunetutil.la \
  55. $(top_builddir)/src/cadet/libgnunetcadet.la \
  56. $(top_builddir)/src/set/libgnunetset.la \
  57. $(LIBGCRYPT_LIBS) \
  58. -lgcrypt \
  59. $(GN_LIBINTL)
  60. gnunet_service_scalarproduct_ecc_bob_SOURCES = \
  61. gnunet-service-scalarproduct-ecc.h \
  62. gnunet-service-scalarproduct-ecc_bob.c
  63. gnunet_service_scalarproduct_ecc_bob_LDADD = \
  64. $(top_builddir)/src/util/libgnunetutil.la \
  65. $(top_builddir)/src/cadet/libgnunetcadet.la \
  66. $(top_builddir)/src/set/libgnunetset.la \
  67. $(LIBGCRYPT_LIBS) \
  68. -lgcrypt \
  69. $(GN_LIBINTL)
  70. libgnunetscalarproduct_la_SOURCES = \
  71. scalarproduct_api.c \
  72. scalarproduct.h
  73. libgnunetscalarproduct_la_LIBADD = \
  74. $(top_builddir)/src/util/libgnunetutil.la \
  75. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  76. $(LIBGCRYPT_LIBS) \
  77. -lgcrypt \
  78. $(LTLIBINTL)
  79. libgnunetscalarproduct_la_LDFLAGS = \
  80. $(GN_LIB_LDFLAGS)
  81. EXTRA_DIST = \
  82. test_scalarproduct.conf \
  83. $(check_SCRIPTS)
  84. check_SCRIPTS = \
  85. test_scalarproduct.sh \
  86. test_scalarproduct_negative.sh \
  87. test_scalarproduct_negativezero.sh
  88. check_PROGRAMS = \
  89. test_ecc_scalarproduct
  90. if ENABLE_TEST_RUN
  91. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  92. TESTS = $(check_SCRIPTS) $(check_PROGRAMS)
  93. endif
  94. test_ecc_scalarproduct_SOURCES = \
  95. test_ecc_scalarproduct.c
  96. test_ecc_scalarproduct_LDADD = \
  97. $(top_builddir)/src/util/libgnunetutil.la \
  98. -lgcrypt