Smallers steps to keep plugin running
[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 if !DISABLE_TEST_RUN
40 TESTS = \
41  test_gnunet_daemon_hostlist \
42  test_gnunet_daemon_hostlist_learning
43 endif
44 endif
45
46 test_gnunet_daemon_hostlist_SOURCES = \
47  test_gnunet_daemon_hostlist.c
48 test_gnunet_daemon_hostlist_LDADD = \
49   $(top_builddir)/src/transport/libgnunettransport.la \
50   $(top_builddir)/src/util/libgnunetutil.la  
51
52 test_gnunet_daemon_hostlist_learning_SOURCES = \
53  test_gnunet_daemon_hostlist_learning.c
54 test_gnunet_daemon_hostlist_learning_LDADD = \
55   $(top_builddir)/src/transport/libgnunettransport.la \
56   $(top_builddir)/src/core/libgnunetcore.la \
57   $(top_builddir)/src/statistics/libgnunetstatistics.la \
58   $(top_builddir)/src/util/libgnunetutil.la  
59
60 EXTRA_DIST = \
61   test_gnunet_daemon_hostlist_data.conf \
62   test_gnunet_daemon_hostlist_peer1.conf \
63   test_gnunet_daemon_hostlist_peer2.conf \
64   test_learning_adv_peer.conf \
65   test_learning_learn_peer.conf \
66   test_learning_learn_peer2.conf \
67   learning_data.conf