-improve UDP logging
[oweals/gnunet.git] / src / rps / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if MINGW
5  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10   XLIB = -lgcov
11 endif
12
13 pkgcfgdir= $(pkgdatadir)/config.d/
14
15 libexecdir= $(pkglibdir)/libexec/
16
17 pkgcfg_DATA = \
18   rps.conf
19
20 bin_PROGRAMS = gnunet-rps
21
22 gnunet_rps_SOURCES = gnunet-rps.c
23 gnunet_rps_LDADD = \
24   libgnunetrps.la \
25   $(top_builddir)/src/util/libgnunetutil.la \
26   $(XLIB) $(GN_LIBINTL)
27
28 lib_LTLIBRARIES = libgnunetrps.la
29
30 libgnunetrps_la_SOURCES = \
31   rps_api.c rps.h
32 libgnunetrps_la_LIBADD = \
33   $(top_builddir)/src/util/libgnunetutil.la \
34   $(GN_LIBINTL) $(XLIB)
35 libgnunetrps_la_LDFLAGS = \
36   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
37   -version-info 0:0:0
38
39
40 libexec_PROGRAMS = \
41  gnunet-service-rps
42
43
44 gnunet_service_rps_SOURCES = \
45  gnunet-service-rps_sampler.h gnunet-service-rps_sampler.c \
46  gnunet-service-rps.c
47
48
49 gnunet_service_rps_LDADD = \
50   libgnunetrps.la \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(top_builddir)/src/cadet/libgnunetcadet.la \
53   $(top_builddir)/src/nse/libgnunetnse.la \
54   $(top_builddir)/src/statistics/libgnunetstatistics.la \
55   $(LIBGCRYPT_LIBS) \
56   -lm -lgcrypt \
57   $(GN_LIBINTL)
58
59 if HAVE_TESTING
60 check_PROGRAMS = \
61  test_rps_multipeer
62 endif
63
64 if ENABLE_TEST_RUN
65 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
66 TESTS = $(check_PROGRAMS)
67 endif
68
69 test_rps_multipeer_SOURCES = \
70  test_rps_multipeer.c
71 test_rps_multipeer_LDADD = \
72   libgnunetrps.la \
73   $(top_builddir)/src/util/libgnunetutil.la \
74   $(top_builddir)/src/testbed/libgnunettestbed.la \
75   -lm
76
77
78 EXTRA_DIST = \
79   test_rps.conf
80