fixing various dist issues
[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_learning
37
38 if HAVE_MHD
39 TESTS = \
40  test_gnunet_daemon_hostlist \
41  test_gnunet_daemon_hostlist_learning
42 endif
43
44 test_gnunet_daemon_hostlist_SOURCES = \
45  test_gnunet_daemon_hostlist.c
46 test_gnunet_daemon_hostlist_LDADD = \
47   $(top_builddir)/src/transport/libgnunettransport.la \
48   $(top_builddir)/src/util/libgnunetutil.la  
49
50 test_gnunet_daemon_hostlist_learning_SOURCES = \
51  test_gnunet_daemon_hostlist_learning.c
52 test_gnunet_daemon_hostlist_learning_LDADD = \
53   $(top_builddir)/src/transport/libgnunettransport.la \
54   $(top_builddir)/src/core/libgnunetcore.la \
55   $(top_builddir)/src/statistics/libgnunetstatistics.la \
56   $(top_builddir)/src/util/libgnunetutil.la  
57
58 EXTRA_DIST = \
59   test_gnunet_daemon_hostlist_data.conf \
60   test_gnunet_daemon_hostlist_peer1.conf \
61   test_gnunet_daemon_hostlist_peer2.conf \
62   test_learning_adv_peer.conf \
63   test_learning_learn_peer.conf \
64   test_learning_learn_peer2.conf \
65   learning_data.conf