Makefile.am 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. if USE_COVERAGE
  4. AM_CFLAGS = --coverage -O0
  5. XLIB = -lgcov
  6. endif
  7. pkgcfgdir= $(pkgdatadir)/config.d/
  8. libexecdir= $(pkglibdir)/libexec/
  9. pkgcfg_DATA = \
  10. rps.conf
  11. bin_PROGRAMS = gnunet-rps
  12. gnunet_rps_SOURCES = \
  13. gnunet-rps.c
  14. gnunet_rps_LDADD = \
  15. libgnunetrps.la \
  16. $(top_builddir)/src/util/libgnunetutil.la \
  17. $(XLIB) $(GN_LIBINTL)
  18. lib_LTLIBRARIES = libgnunetrps.la
  19. libgnunetrps_la_SOURCES = \
  20. gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
  21. rps-test_util.h rps-test_util.c \
  22. rps-sampler_common.h rps-sampler_common.c \
  23. rps-sampler_client.h rps-sampler_client.c \
  24. rps_api.c rps.h
  25. libgnunetrps_la_LIBADD = \
  26. $(top_builddir)/src/nse/libgnunetnse.la \
  27. $(top_builddir)/src/util/libgnunetutil.la \
  28. $(GN_LIBINTL) $(XLIB)
  29. libgnunetrps_la_LDFLAGS = \
  30. $(GN_LIB_LDFLAGS) \
  31. -version-info 0:0:0
  32. # Fix 'created both with libtool and without' error:
  33. libgnunetrps_la_CFLAGS = $(AM_CFLAGS)
  34. libexec_PROGRAMS = \
  35. gnunet-service-rps
  36. if HAVE_TESTING
  37. noinst_PROGRAMS = \
  38. gnunet-rps-profiler
  39. endif
  40. gnunet_service_rps_SOURCES = \
  41. gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
  42. rps-sampler_common.h rps-sampler_common.c \
  43. gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \
  44. gnunet-service-rps_custommap.h gnunet-service-rps_custommap.c \
  45. gnunet-service-rps_view.h gnunet-service-rps_view.c \
  46. gnunet-service-rps.c
  47. gnunet_service_rps_LDADD = \
  48. libgnunetrps.la \
  49. $(top_builddir)/src/util/libgnunetutil.la \
  50. $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
  51. $(top_builddir)/src/cadet/libgnunetcadet.la \
  52. $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
  53. $(top_builddir)/src/nse/libgnunetnse.la \
  54. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  55. $(top_builddir)/src/core/libgnunetcore.la \
  56. $(LIBGCRYPT_LIBS) \
  57. -lm -lgcrypt \
  58. $(GN_LIBINTL)
  59. if HAVE_TESTING
  60. check_PROGRAMS = \
  61. test_service_rps_view \
  62. test_service_rps_custommap \
  63. test_service_rps_sampler_elem \
  64. test_rps_single_req \
  65. test_rps_req_cancel \
  66. test_rps_sub \
  67. test_rps_seed_request \
  68. test_rps_seed_big \
  69. test_rps_churn
  70. if ENABLE_MALICIOUS
  71. check_PROGRAMS += \
  72. test_rps_malicious_1 \
  73. test_rps_malicious_2 \
  74. test_rps_malicious_3
  75. endif
  76. endif
  77. rps_test_src = \
  78. test_rps.c \
  79. rps-test_util.h rps-test_util.c \
  80. gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
  81. rps-sampler_common.h rps-sampler_common.c \
  82. gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c
  83. ld_rps_test_lib = \
  84. libgnunetrps.la \
  85. $(top_builddir)/src/util/libgnunetutil.la \
  86. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  87. $(top_builddir)/src/testbed/libgnunettestbed.la \
  88. -lm
  89. if ENABLE_TEST_RUN
  90. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  91. TESTS = $(check_PROGRAMS)
  92. endif
  93. test_service_rps_view_SOURCES = \
  94. gnunet-service-rps_view.h gnunet-service-rps_view.c \
  95. test_service_rps_view.c
  96. test_service_rps_view_LDADD = $(top_builddir)/src/util/libgnunetutil.la
  97. test_service_rps_custommap_SOURCES = \
  98. gnunet-service-rps_custommap.h gnunet-service-rps_custommap.c \
  99. test_service_rps_custommap.c
  100. test_service_rps_custommap_LDADD = \
  101. $(top_builddir)/src/util/libgnunetutil.la
  102. test_service_rps_sampler_elem_SOURCES = \
  103. gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
  104. rps-test_util.h rps-test_util.c \
  105. test_service_rps_sampler_elem.c
  106. test_service_rps_sampler_elem_LDADD = $(top_builddir)/src/util/libgnunetutil.la
  107. test_rps_single_req_SOURCES = $(rps_test_src)
  108. test_rps_single_req_LDADD = $(ld_rps_test_lib)
  109. test_rps_seed_request_SOURCES = $(rps_test_src)
  110. test_rps_seed_request_LDADD = $(ld_rps_test_lib)
  111. test_rps_req_cancel_SOURCES = $(rps_test_src)
  112. test_rps_req_cancel_LDADD = $(ld_rps_test_lib)
  113. test_rps_sub_SOURCES = $(rps_test_src)
  114. test_rps_sub_LDADD = $(ld_rps_test_lib)
  115. test_rps_seed_big_SOURCES = $(rps_test_src)
  116. test_rps_seed_big_LDADD = $(ld_rps_test_lib)
  117. test_rps_churn_SOURCES = $(rps_test_src)
  118. test_rps_churn_LDADD = $(ld_rps_test_lib)
  119. test_rps_malicious_1_SOURCES = $(rps_test_src)
  120. test_rps_malicious_1_LDADD = $(ld_rps_test_lib)
  121. test_rps_malicious_2_SOURCES = $(rps_test_src)
  122. test_rps_malicious_2_LDADD = $(ld_rps_test_lib)
  123. test_rps_malicious_3_SOURCES = $(rps_test_src)
  124. test_rps_malicious_3_LDADD = $(ld_rps_test_lib)
  125. gnunet_rps_profiler_SOURCES = \
  126. gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
  127. rps-sampler_common.h rps-sampler_common.c \
  128. gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \
  129. rps-test_util.h rps-test_util.c \
  130. gnunet-rps-profiler.c
  131. gnunet_rps_profiler_LDADD = \
  132. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  133. libgnunetrps.la \
  134. $(top_builddir)/src/util/libgnunetutil.la \
  135. $(top_builddir)/src/testbed/libgnunettestbed.la \
  136. -lm
  137. EXTRA_DIST = \
  138. test_rps.conf