1df537276462b12c494913d2232610e01c47814b
[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 if HAVE_LIBCURL
18 bin_PROGRAMS = \
19  gnunet-daemon-hostlist
20 endif
21
22 gnunet_daemon_hostlist_SOURCES = \
23  gnunet-daemon-hostlist.c gnunet-daemon-hostlist.h \
24  hostlist-client.c hostlist-client.h \
25  $(HOSTLIST_SERVER_SOURCES)
26
27 gnunet_daemon_hostlist_LDADD = \
28   $(top_builddir)/src/core/libgnunetcore.la \
29   $(top_builddir)/src/hello/libgnunethello.la \
30   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
31   $(top_builddir)/src/statistics/libgnunetstatistics.la \
32   $(top_builddir)/src/transport/libgnunettransport.la \
33   $(top_builddir)/src/util/libgnunetutil.la \
34   $(GN_LIBMHD) \
35   @LIBCURL@  \
36   $(GN_LIBINTL)
37
38 gnunet_daemon_hostlist_CPPFLAGS = \
39  @LIBCURL_CPPFLAGS@ 
40
41 if HAVE_LIBCURL
42 check_PROGRAMS = \
43  test_gnunet_daemon_hostlist \
44  test_gnunet_daemon_hostlist_reconnect \
45  test_gnunet_daemon_hostlist_learning
46
47 if HAVE_MHD
48 if ENABLE_TEST_RUN
49 TESTS = \
50  test_gnunet_daemon_hostlist \
51  test_gnunet_daemon_hostlist_reconnect \
52  test_gnunet_daemon_hostlist_learning
53 endif
54 endif
55 endif
56
57 test_gnunet_daemon_hostlist_SOURCES = \
58  test_gnunet_daemon_hostlist.c
59 test_gnunet_daemon_hostlist_LDADD = \
60   $(top_builddir)/src/transport/libgnunettransport.la \
61   $(top_builddir)/src/util/libgnunetutil.la  
62
63 test_gnunet_daemon_hostlist_reconnect_SOURCES = \
64  test_gnunet_daemon_hostlist_reconnect.c
65 test_gnunet_daemon_hostlist_reconnect_LDADD = \
66   $(top_builddir)/src/transport/libgnunettransport.la \
67   $(top_builddir)/src/util/libgnunetutil.la  
68
69 test_gnunet_daemon_hostlist_learning_SOURCES = \
70  test_gnunet_daemon_hostlist_learning.c
71 test_gnunet_daemon_hostlist_learning_LDADD = \
72   $(top_builddir)/src/transport/libgnunettransport.la \
73   $(top_builddir)/src/core/libgnunetcore.la \
74   $(top_builddir)/src/statistics/libgnunetstatistics.la \
75   $(top_builddir)/src/util/libgnunetutil.la  
76
77 EXTRA_DIST = \
78   test_hostlist_defaults.conf \
79   test_gnunet_daemon_hostlist_data.conf \
80   test_gnunet_daemon_hostlist_peer1.conf \
81   test_gnunet_daemon_hostlist_peer2.conf \
82   test_learning_adv_peer.conf \
83   test_learning_learn_peer.conf \
84   test_learning_learn_peer2.conf \
85   learning_data.conf