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 = gnunet-rps.c
25 $(top_builddir)/src/util/libgnunetutil.la \
28 lib_LTLIBRARIES = libgnunetrps.la
30 libgnunetrps_la_SOURCES = \
32 libgnunetrps_la_LIBADD = \
33 $(top_builddir)/src/util/libgnunetutil.la \
35 libgnunetrps_la_LDFLAGS = \
36 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
49 gnunet_service_rps_SOURCES = \
50 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
51 gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \
52 gnunet-service-rps_peers.h gnunet-service-rps_peers.c \
53 gnunet-service-rps_custommap.h gnunet-service-rps_custommap.c \
54 gnunet-service-rps_view.h gnunet-service-rps_view.c \
55 rps-test_util.h rps-test_util.c \
59 gnunet_service_rps_LDADD = \
61 $(top_builddir)/src/util/libgnunetutil.la \
62 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
63 $(top_builddir)/src/cadet/libgnunetcadet.la \
64 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
65 $(top_builddir)/src/nse/libgnunetnse.la \
66 $(top_builddir)/src/statistics/libgnunetstatistics.la \
74 test_service_rps_view \
75 test_service_rps_custommap \
76 test_service_rps_peers \
77 test_service_rps_sampler_elem \
78 test_rps_malicious_1 \
79 test_rps_malicious_2 \
80 test_rps_malicious_3 \
81 test_rps_seed_request \
90 $(top_builddir)/src/util/libgnunetutil.la \
91 $(top_builddir)/src/testbed/libgnunettestbed.la \
96 rps-test_util.h rps-test_util.c \
97 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c
100 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
101 TESTS = $(check_PROGRAMS)
104 test_service_rps_view_SOURCES = \
105 gnunet-service-rps_view.h gnunet-service-rps_view.c \
106 test_service_rps_view.c
107 test_service_rps_view_LDADD = $(top_builddir)/src/util/libgnunetutil.la
109 test_service_rps_peers_SOURCES = \
110 gnunet-service-rps_peers.h gnunet-service-rps_peers.c \
111 test_service_rps_peers.c
112 test_service_rps_peers_LDADD = \
113 $(top_builddir)/src/util/libgnunetutil.la \
114 $(top_builddir)/src/cadet/libgnunetcadet.la
116 test_service_rps_custommap_SOURCES = \
117 gnunet-service-rps_custommap.h gnunet-service-rps_custommap.c \
118 test_service_rps_custommap.c
119 test_service_rps_custommap_LDADD = \
120 $(top_builddir)/src/util/libgnunetutil.la
122 test_service_rps_sampler_elem_SOURCES = \
123 gnunet-service-rps_sampler_elem.h gnunet-service-rps_sampler_elem.c \
124 rps-test_util.h rps-test_util.c \
125 test_service_rps_sampler_elem.c
126 test_service_rps_sampler_elem_LDADD = $(top_builddir)/src/util/libgnunetutil.la
128 test_rps_malicious_1_SOURCES = $(rps_test_src)
129 test_rps_malicious_1_LDADD = $(ld_rps_test_lib)
131 test_rps_malicious_2_SOURCES = $(rps_test_src)
132 test_rps_malicious_2_LDADD = $(ld_rps_test_lib)
134 test_rps_malicious_3_SOURCES = $(rps_test_src)
135 test_rps_malicious_3_LDADD = $(ld_rps_test_lib)
137 test_rps_single_req_SOURCES = $(rps_test_src)
138 test_rps_single_req_LDADD = $(ld_rps_test_lib)
140 test_rps_seed_request_SOURCES = $(rps_test_src)
141 test_rps_seed_request_LDADD = $(ld_rps_test_lib)
143 test_rps_req_cancel_SOURCES = $(rps_test_src)
144 test_rps_req_cancel_LDADD = $(ld_rps_test_lib)
146 test_rps_seed_big_SOURCES = $(rps_test_src)
147 test_rps_seed_big_LDADD = $(ld_rps_test_lib)
149 test_rps_churn_SOURCES = $(rps_test_src)
150 test_rps_churn_LDADD = $(ld_rps_test_lib)
152 gnunet_rps_profiler_SOURCES = $(rps_test_src)
153 gnunet_rps_profiler_LDADD = $(ld_rps_test_lib)