fix 1683
[oweals/gnunet.git] / src / hostlist / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if USE_COVERAGE
4   AM_CFLAGS = --coverage -O0
5 endif
6
7 if HAVE_MHD
8  HOSTLIST_SERVER_SOURCES =  hostlist-server.c hostlist-server.h 
9  GN_LIBMHD = -lmicrohttpd
10 endif
11
12 bin_PROGRAMS = \
13  gnunet-daemon-hostlist
14
15 gnunet_daemon_hostlist_SOURCES = \
16  gnunet-daemon-hostlist.c gnunet-daemon-hostlist.h \
17  hostlist-client.c hostlist-client.h \
18  $(HOSTLIST_SERVER_SOURCES)
19
20 gnunet_daemon_hostlist_LDADD = \
21   $(top_builddir)/src/core/libgnunetcore.la \
22   $(top_builddir)/src/hello/libgnunethello.la \
23   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
24   $(top_builddir)/src/statistics/libgnunetstatistics.la \
25   $(top_builddir)/src/transport/libgnunettransport.la \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   $(GN_LIBMHD) \
28   @LIBCURL@  \
29   $(GN_LIBINTL)
30
31 gnunet_daemon_hostlist_CPPFLAGS = \
32  @LIBCURL_CPPFLAGS@ 
33
34 check_PROGRAMS = \
35  test_gnunet_daemon_hostlist \
36  test_gnunet_daemon_hostlist_reconnect \
37  test_gnunet_daemon_hostlist_learning
38
39 if HAVE_MHD
40 if !DISABLE_TEST_RUN
41 TESTS = \
42  test_gnunet_daemon_hostlist \
43  test_gnunet_daemon_hostlist_reconnect \
44  test_gnunet_daemon_hostlist_learning
45 endif
46 endif
47
48 test_gnunet_daemon_hostlist_SOURCES = \
49  test_gnunet_daemon_hostlist.c
50 test_gnunet_daemon_hostlist_LDADD = \
51   $(top_builddir)/src/transport/libgnunettransport.la \
52   $(top_builddir)/src/util/libgnunetutil.la  
53
54 test_gnunet_daemon_hostlist_reconnect_SOURCES = \
55  test_gnunet_daemon_hostlist_reconnect.c
56 test_gnunet_daemon_hostlist_reconnect_LDADD = \
57   $(top_builddir)/src/transport/libgnunettransport.la \
58   $(top_builddir)/src/util/libgnunetutil.la  
59
60 test_gnunet_daemon_hostlist_learning_SOURCES = \
61  test_gnunet_daemon_hostlist_learning.c
62 test_gnunet_daemon_hostlist_learning_LDADD = \
63   $(top_builddir)/src/transport/libgnunettransport.la \
64   $(top_builddir)/src/core/libgnunetcore.la \
65   $(top_builddir)/src/statistics/libgnunetstatistics.la \
66   $(top_builddir)/src/util/libgnunetutil.la  
67
68 EXTRA_DIST = \
69   test_gnunet_daemon_hostlist_data.conf \
70   test_gnunet_daemon_hostlist_peer1.conf \
71   test_gnunet_daemon_hostlist_peer2.conf \
72   test_learning_adv_peer.conf \
73   test_learning_learn_peer.conf \
74   test_learning_learn_peer2.conf \
75   learning_data.conf