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