Makefile.am 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. plugindir = $(libdir)/gnunet
  4. pkgcfgdir= $(pkgdatadir)/config.d/
  5. libexecdir= $(pkglibdir)/libexec/
  6. if USE_COVERAGE
  7. AM_CFLAGS = --coverage -O0
  8. XLIBS = -lgcov
  9. endif
  10. check_PROGRAMS = \
  11. test_gnsrecord_crypto \
  12. test_gnsrecord_serialization \
  13. test_gnsrecord_block_expiration \
  14. perf_gnsrecord_crypto
  15. if ENABLE_TEST_RUN
  16. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  17. TESTS = \
  18. $(check_PROGRAMS) \
  19. $(check_SCRIPTS)
  20. endif
  21. lib_LTLIBRARIES = \
  22. libgnunetgnsrecord.la
  23. libgnunetgnsrecord_la_SOURCES = \
  24. gnsrecord.c \
  25. gnsrecord_serialization.c \
  26. gnsrecord_crypto.c \
  27. gnsrecord_misc.c
  28. libgnunetgnsrecord_la_LIBADD = \
  29. $(top_builddir)/src/util/libgnunetutil.la \
  30. $(GN_LIBINTL)
  31. libgnunetgnsrecord_la_LDFLAGS = \
  32. $(GN_LIB_LDFLAGS) \
  33. -version-info 0:0:0
  34. plugin_LTLIBRARIES = \
  35. libgnunet_plugin_gnsrecord_dns.la
  36. libgnunet_plugin_gnsrecord_dns_la_SOURCES = \
  37. plugin_gnsrecord_dns.c
  38. libgnunet_plugin_gnsrecord_dns_la_LIBADD = \
  39. $(top_builddir)/src/util/libgnunetutil.la \
  40. $(LTLIBINTL)
  41. libgnunet_plugin_gnsrecord_dns_la_LDFLAGS = \
  42. $(GN_PLUGIN_LDFLAGS)
  43. EXTRA_DIST = \
  44. $(check_SCRIPTS)
  45. test_gnsrecord_serialization_SOURCES = \
  46. test_gnsrecord_serialization.c
  47. test_gnsrecord_serialization_LDADD = \
  48. $(top_builddir)/src/testing/libgnunettesting.la \
  49. libgnunetgnsrecord.la \
  50. $(top_builddir)/src/util/libgnunetutil.la
  51. test_gnsrecord_block_expiration_SOURCES = \
  52. test_gnsrecord_block_expiration.c
  53. test_gnsrecord_block_expiration_LDADD = \
  54. $(top_builddir)/src/testing/libgnunettesting.la \
  55. libgnunetgnsrecord.la \
  56. $(top_builddir)/src/util/libgnunetutil.la
  57. test_gnsrecord_crypto_SOURCES = \
  58. test_gnsrecord_crypto.c
  59. test_gnsrecord_crypto_LDADD = \
  60. $(top_builddir)/src/testing/libgnunettesting.la \
  61. libgnunetgnsrecord.la \
  62. $(top_builddir)/src/util/libgnunetutil.la
  63. perf_gnsrecord_crypto_SOURCES = \
  64. perf_gnsrecord_crypto.c
  65. perf_gnsrecord_crypto_LDADD = \
  66. $(top_builddir)/src/testing/libgnunettesting.la \
  67. libgnunetgnsrecord.la \
  68. $(top_builddir)/src/util/libgnunetutil.la