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