1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
5 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
9 AM_CFLAGS = --coverage -O0
13 pkgcfgdir= $(pkgdatadir)/config.d/
15 libexecdir= $(pkglibdir)/libexec/
20 bin_PROGRAMS = gnunet-rps
22 gnunet_rps_SOURCES = \
23 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
24 gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \
29 $(top_builddir)/src/util/libgnunetutil.la \
32 lib_LTLIBRARIES = libgnunetrps.la
34 libgnunetrps_la_SOURCES = \
36 libgnunetrps_la_LIBADD = \
37 $(top_builddir)/src/util/libgnunetutil.la \
39 libgnunetrps_la_LDFLAGS = \
40 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
53 gnunet_service_rps_SOURCES = \
54 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
55 gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \
56 gnunet-service-rps_custommap.h gnunet-service-rps_custommap.c \
57 gnunet-service-rps_view.h gnunet-service-rps_view.c \
58 rps-test_util.h rps-test_util.c \
62 gnunet_service_rps_LDADD = \
64 $(top_builddir)/src/util/libgnunetutil.la \
65 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
66 $(top_builddir)/src/cadet/libgnunetcadet.la \
67 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
68 $(top_builddir)/src/nse/libgnunetnse.la \
69 $(top_builddir)/src/statistics/libgnunetstatistics.la \
77 test_service_rps_view \
78 test_service_rps_custommap \
79 test_service_rps_sampler_elem \
80 test_rps_malicious_1 \
81 test_rps_malicious_2 \
82 test_rps_malicious_3 \
83 test_rps_seed_request \
92 rps-test_util.h rps-test_util.c \
93 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
94 gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c
98 $(top_builddir)/src/util/libgnunetutil.la \
99 $(top_builddir)/src/statistics/libgnunetstatistics.la \
100 $(top_builddir)/src/testbed/libgnunettestbed.la \
104 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
105 TESTS = $(check_PROGRAMS)
108 test_service_rps_view_SOURCES = \
109 gnunet-service-rps_view.h gnunet-service-rps_view.c \
110 test_service_rps_view.c
111 test_service_rps_view_LDADD = $(top_builddir)/src/util/libgnunetutil.la
113 test_service_rps_custommap_SOURCES = \
114 gnunet-service-rps_custommap.h gnunet-service-rps_custommap.c \
115 test_service_rps_custommap.c
116 test_service_rps_custommap_LDADD = \
117 $(top_builddir)/src/util/libgnunetutil.la
119 test_service_rps_sampler_elem_SOURCES = \
120 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
121 rps-test_util.h rps-test_util.c \
122 test_service_rps_sampler_elem.c
123 test_service_rps_sampler_elem_LDADD = $(top_builddir)/src/util/libgnunetutil.la
125 test_rps_malicious_1_SOURCES = $(rps_test_src)
126 test_rps_malicious_1_LDADD = $(ld_rps_test_lib)
128 test_rps_malicious_2_SOURCES = $(rps_test_src)
129 test_rps_malicious_2_LDADD = $(ld_rps_test_lib)
131 test_rps_malicious_3_SOURCES = $(rps_test_src)
132 test_rps_malicious_3_LDADD = $(ld_rps_test_lib)
134 test_rps_single_req_SOURCES = $(rps_test_src)
135 test_rps_single_req_LDADD = $(ld_rps_test_lib)
137 test_rps_seed_request_SOURCES = $(rps_test_src)
138 test_rps_seed_request_LDADD = $(ld_rps_test_lib)
140 test_rps_req_cancel_SOURCES = $(rps_test_src)
141 test_rps_req_cancel_LDADD = $(ld_rps_test_lib)
143 test_rps_seed_big_SOURCES = $(rps_test_src)
144 test_rps_seed_big_LDADD = $(ld_rps_test_lib)
146 test_rps_churn_SOURCES = $(rps_test_src)
147 test_rps_churn_LDADD = $(ld_rps_test_lib)
149 gnunet_rps_profiler_SOURCES = \
150 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
151 gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \
152 rps-test_util.h rps-test_util.c \
153 gnunet-rps-profiler.c
156 gnunet_rps_profiler_LDADD = \
157 $(top_builddir)/src/statistics/libgnunetstatistics.la \
159 $(top_builddir)/src/util/libgnunetutil.la \
160 $(top_builddir)/src/testbed/libgnunettestbed.la \