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 = \
27 $(top_builddir)/src/util/libgnunetutil.la \
30 lib_LTLIBRARIES = libgnunetrps.la
32 libgnunetrps_la_SOURCES = \
33 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
34 rps-test_util.h rps-test_util.c \
35 rps-sampler_common.h rps-sampler_common.c \
36 rps-sampler_client.h rps-sampler_client.c \
38 libgnunetrps_la_LIBADD = \
39 $(top_builddir)/src/nse/libgnunetnse.la \
40 $(top_builddir)/src/util/libgnunetutil.la \
42 libgnunetrps_la_LDFLAGS = \
43 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
45 # Fix 'created both with libtool and without' error:
46 libgnunetrps_la_CFLAGS = $(AM_CFLAGS)
58 gnunet_service_rps_SOURCES = \
59 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
60 rps-sampler_common.h rps-sampler_common.c \
61 gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \
62 gnunet-service-rps_custommap.h gnunet-service-rps_custommap.c \
63 gnunet-service-rps_view.h gnunet-service-rps_view.c \
67 gnunet_service_rps_LDADD = \
69 $(top_builddir)/src/util/libgnunetutil.la \
70 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
71 $(top_builddir)/src/cadet/libgnunetcadet.la \
72 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
73 $(top_builddir)/src/nse/libgnunetnse.la \
74 $(top_builddir)/src/statistics/libgnunetstatistics.la \
75 $(top_builddir)/src/core/libgnunetcore.la \
83 test_service_rps_view \
84 test_service_rps_custommap \
85 test_service_rps_sampler_elem \
89 test_rps_seed_request \
94 test_rps_malicious_1 \
95 test_rps_malicious_2 \
102 rps-test_util.h rps-test_util.c \
103 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
104 rps-sampler_common.h rps-sampler_common.c \
105 gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c
109 $(top_builddir)/src/util/libgnunetutil.la \
110 $(top_builddir)/src/statistics/libgnunetstatistics.la \
111 $(top_builddir)/src/testbed/libgnunettestbed.la \
115 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
116 TESTS = $(check_PROGRAMS)
119 test_service_rps_view_SOURCES = \
120 gnunet-service-rps_view.h gnunet-service-rps_view.c \
121 test_service_rps_view.c
122 test_service_rps_view_LDADD = $(top_builddir)/src/util/libgnunetutil.la
124 test_service_rps_custommap_SOURCES = \
125 gnunet-service-rps_custommap.h gnunet-service-rps_custommap.c \
126 test_service_rps_custommap.c
127 test_service_rps_custommap_LDADD = \
128 $(top_builddir)/src/util/libgnunetutil.la
130 test_service_rps_sampler_elem_SOURCES = \
131 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
132 rps-test_util.h rps-test_util.c \
133 test_service_rps_sampler_elem.c
134 test_service_rps_sampler_elem_LDADD = $(top_builddir)/src/util/libgnunetutil.la
136 test_rps_single_req_SOURCES = $(rps_test_src)
137 test_rps_single_req_LDADD = $(ld_rps_test_lib)
139 test_rps_seed_request_SOURCES = $(rps_test_src)
140 test_rps_seed_request_LDADD = $(ld_rps_test_lib)
142 test_rps_req_cancel_SOURCES = $(rps_test_src)
143 test_rps_req_cancel_LDADD = $(ld_rps_test_lib)
145 test_rps_sub_SOURCES = $(rps_test_src)
146 test_rps_sub_LDADD = $(ld_rps_test_lib)
148 test_rps_seed_big_SOURCES = $(rps_test_src)
149 test_rps_seed_big_LDADD = $(ld_rps_test_lib)
151 test_rps_churn_SOURCES = $(rps_test_src)
152 test_rps_churn_LDADD = $(ld_rps_test_lib)
154 test_rps_malicious_1_SOURCES = $(rps_test_src)
155 test_rps_malicious_1_LDADD = $(ld_rps_test_lib)
157 test_rps_malicious_2_SOURCES = $(rps_test_src)
158 test_rps_malicious_2_LDADD = $(ld_rps_test_lib)
160 test_rps_malicious_3_SOURCES = $(rps_test_src)
161 test_rps_malicious_3_LDADD = $(ld_rps_test_lib)
163 gnunet_rps_profiler_SOURCES = \
164 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
165 rps-sampler_common.h rps-sampler_common.c \
166 gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \
167 rps-test_util.h rps-test_util.c \
168 gnunet-rps-profiler.c
171 gnunet_rps_profiler_LDADD = \
172 $(top_builddir)/src/statistics/libgnunetstatistics.la \
174 $(top_builddir)/src/util/libgnunetutil.la \
175 $(top_builddir)/src/testbed/libgnunettestbed.la \