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