Makefile.am 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. plugindir = $(libdir)/gnunet
  4. if USE_COVERAGE
  5. AM_CFLAGS = --coverage -O0
  6. XLIB = -lgcov
  7. endif
  8. pkgcfgdir= $(pkgdatadir)/config.d/
  9. libexecdir= $(pkglibdir)/libexec/
  10. pkgcfg_DATA = \
  11. revocation.conf
  12. bin_PROGRAMS = \
  13. gnunet-revocation \
  14. gnunet-revocation-tvg
  15. plugin_LTLIBRARIES = \
  16. libgnunet_plugin_block_revocation.la
  17. libgnunet_plugin_block_revocation_la_SOURCES = \
  18. plugin_block_revocation.c
  19. libgnunet_plugin_block_revocation_la_LIBADD = \
  20. libgnunetrevocation.la \
  21. $(top_builddir)/src/block/libgnunetblockgroup.la \
  22. $(top_builddir)/src/block/libgnunetblock.la \
  23. $(top_builddir)/src/util/libgnunetutil.la \
  24. $(top_builddir)/src/identity/libgnunetidentity.la \
  25. $(LTLIBINTL)
  26. libgnunet_plugin_block_revocation_la_DEPENDENCIES = \
  27. libgnunetrevocation.la \
  28. $(top_builddir)/src/block/libgnunetblockgroup.la \
  29. $(top_builddir)/src/block/libgnunetblock.la \
  30. $(top_builddir)/src/util/libgnunetutil.la
  31. libgnunet_plugin_block_revocation_la_LDFLAGS = \
  32. $(GN_PLUGIN_LDFLAGS)
  33. gnunet_revocation_SOURCES = \
  34. gnunet-revocation.c
  35. gnunet_revocation_LDADD = \
  36. libgnunetrevocation.la \
  37. $(top_builddir)/src/identity/libgnunetidentity.la \
  38. $(top_builddir)/src/util/libgnunetutil.la \
  39. $(GN_LIBINTL)
  40. gnunet_revocation_tvg_SOURCES = \
  41. gnunet-revocation-tvg.c
  42. gnunet_revocation_tvg_LDADD = \
  43. libgnunetrevocation.la \
  44. $(top_builddir)/src/identity/libgnunetidentity.la \
  45. $(top_builddir)/src/util/libgnunetutil.la \
  46. $(GN_LIBINTL)
  47. lib_LTLIBRARIES = libgnunetrevocation.la
  48. libgnunetrevocation_la_SOURCES = \
  49. revocation_api.c revocation.h
  50. libgnunetrevocation_la_LIBADD = \
  51. $(top_builddir)/src/util/libgnunetutil.la \
  52. $(top_builddir)/src/identity/libgnunetidentity.la \
  53. $(LIBGCRYPT_LIBS) \
  54. $(GN_LIBINTL) $(XLIB) -lgcrypt
  55. libgnunetrevocation_la_LDFLAGS = \
  56. $(GN_LIB_LDFLAGS) \
  57. -version-info 0:0:0
  58. libexec_PROGRAMS = \
  59. gnunet-service-revocation
  60. gnunet_service_revocation_SOURCES = \
  61. gnunet-service-revocation.c
  62. gnunet_service_revocation_LDADD = \
  63. libgnunetrevocation.la \
  64. $(top_builddir)/src/core/libgnunetcore.la \
  65. $(top_builddir)/src/setu/libgnunetsetu.la \
  66. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  67. $(top_builddir)/src/identity/libgnunetidentity.la \
  68. $(top_builddir)/src/util/libgnunetutil.la \
  69. -lm \
  70. $(GN_LIBINTL)
  71. test_revocation_SOURCES = \
  72. test_revocation.c
  73. test_revocation_LDADD = \
  74. $(top_builddir)/src/identity/libgnunetidentity.la \
  75. libgnunetrevocation.la \
  76. $(top_builddir)/src//core/libgnunetcore.la \
  77. $(top_builddir)/src/util/libgnunetutil.la \
  78. $(top_builddir)/src/testbed/libgnunettestbed.la
  79. check_PROGRAMS = \
  80. test_revocation
  81. check_SCRIPTS = \
  82. test_local_revocation.py
  83. if ENABLE_TEST_RUN
  84. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  85. TESTS = \
  86. $(check_SCRIPTS) \
  87. $(check_PROGRAMS)
  88. endif
  89. test_local_revocation.py: test_local_revocation.py.in Makefile
  90. $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/test_local_revocation.py.in > test_local_revocation.py
  91. chmod +x test_local_revocation.py
  92. EXTRA_DIST = test_revocation.conf \
  93. test_local_revocation.py.in