If 0 max search, use r5n dht
[oweals/gnunet.git] / src / hostlist / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 dist_pkgcfg_DATA = \
8   hostlist.conf
9
10 if USE_COVERAGE
11   AM_CFLAGS = --coverage -O0
12 endif
13
14 if HAVE_MHD
15  HOSTLIST_SERVER_SOURCES = \
16    gnunet-daemon-hostlist_server.c gnunet-daemon-hostlist_server.h
17  GN_LIBMHD = -lmicrohttpd
18 endif
19
20 if HAVE_LIBGNURL
21 libexec_PROGRAMS = \
22  gnunet-daemon-hostlist
23 endif
24
25 gnunet_daemon_hostlist_SOURCES = \
26  gnunet-daemon-hostlist.c gnunet-daemon-hostlist.h \
27  gnunet-daemon-hostlist_client.c gnunet-daemon-hostlist_client.h \
28  $(HOSTLIST_SERVER_SOURCES)
29
30 gnunet_daemon_hostlist_LDADD = \
31   $(top_builddir)/src/core/libgnunetcore.la \
32   $(top_builddir)/src/hello/libgnunethello.la \
33   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
34   $(top_builddir)/src/statistics/libgnunetstatistics.la \
35   $(top_builddir)/src/transport/libgnunettransport.la \
36   $(top_builddir)/src/util/libgnunetutil.la \
37   $(GN_LIBMHD) \
38   @LIBGNURL@  \
39   $(GN_LIBINTL)
40
41 gnunet_daemon_hostlist_CPPFLAGS = \
42  @LIBGNURL_CPPFLAGS@  $(AM_CPPFLAGS)
43
44 if HAVE_LIBGNURL
45 check_PROGRAMS = \
46  test_gnunet_daemon_hostlist \
47  test_gnunet_daemon_hostlist_reconnect \
48  test_gnunet_daemon_hostlist_learning
49
50 if HAVE_MHD
51 if ENABLE_TEST_RUN
52 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
53 TESTS = \
54  test_gnunet_daemon_hostlist \
55  test_gnunet_daemon_hostlist_reconnect \
56  test_gnunet_daemon_hostlist_learning
57 endif
58 endif
59 endif
60
61 test_gnunet_daemon_hostlist_SOURCES = \
62  test_gnunet_daemon_hostlist.c
63 test_gnunet_daemon_hostlist_LDADD = \
64   $(top_builddir)/src/transport/libgnunettransport.la \
65   $(top_builddir)/src/util/libgnunetutil.la
66
67 test_gnunet_daemon_hostlist_reconnect_SOURCES = \
68  test_gnunet_daemon_hostlist_reconnect.c
69 test_gnunet_daemon_hostlist_reconnect_LDADD = \
70   $(top_builddir)/src/transport/libgnunettransport.la \
71   $(top_builddir)/src/util/libgnunetutil.la
72
73 test_gnunet_daemon_hostlist_learning_SOURCES = \
74  test_gnunet_daemon_hostlist_learning.c
75 test_gnunet_daemon_hostlist_learning_LDADD = \
76   $(top_builddir)/src/transport/libgnunettransport.la \
77   $(top_builddir)/src/core/libgnunetcore.la \
78   $(top_builddir)/src/statistics/libgnunetstatistics.la \
79   $(top_builddir)/src/util/libgnunetutil.la
80
81 EXTRA_DIST = \
82   test_hostlist_defaults.conf \
83   test_gnunet_daemon_hostlist_data.conf \
84   test_gnunet_daemon_hostlist_peer1.conf \
85   test_gnunet_daemon_hostlist_peer2.conf \
86   test_learning_adv_peer.conf \
87   test_learning_learn_peer.conf \
88   test_learning_learn_peer2.conf \
89   learning_data.conf