-enable DV status monitoring
[oweals/gnunet.git] / src / dv / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 plugindir = $(libdir)/gnunet
13
14 libexecdir= $(pkglibdir)/libexec/
15
16 pkgcfgdir= $(pkgdatadir)/config.d/
17
18 pkgcfg_DATA = \
19   dv.conf
20
21 lib_LTLIBRARIES = libgnunetdv.la
22
23 plugin_LTLIBRARIES = libgnunet_plugin_transport_dv.la
24
25 libgnunetdv_la_SOURCES = \
26   dv_api.c dv.h gnunet_dv_service.h
27 libgnunetdv_la_LIBADD = \
28   $(top_builddir)/src/util/libgnunetutil.la \
29   $(GN_LIBINTL) $(XLIB)
30 libgnunetdv_la_LDFLAGS = \
31   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
32   -version-info 0:0:0
33
34
35 noinst_PROGRAMS = \
36  gnunet-dv
37
38 libexec_PROGRAMS = \
39  gnunet-service-dv
40
41 gnunet_service_dv_SOURCES = \
42  gnunet-service-dv.c dv.h
43 gnunet_service_dv_LDADD = \
44   $(top_builddir)/src/consensus/libgnunetconsensus.la \
45   $(top_builddir)/src/statistics/libgnunetstatistics.la \
46   $(top_builddir)/src/core/libgnunetcore.la \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(GN_LIBINTL)
49
50 gnunet_dv_SOURCES = \
51  gnunet-dv.c dv.h
52 gnunet_dv_LDADD = \
53   libgnunetdv.la \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   $(GN_LIBINTL)
56
57 libgnunet_plugin_transport_dv_la_SOURCES = \
58   plugin_transport_dv.c
59 libgnunet_plugin_transport_dv_la_LIBADD = \
60   libgnunetdv.la \
61   $(top_builddir)/src/util/libgnunetutil.la 
62 libgnunet_plugin_transport_dv_la_LDFLAGS = \
63  $(GN_PLUGIN_LDFLAGS)
64 libgnunet_plugin_transport_dv_la_DEPENDENCIES = \
65   libgnunetdv.la                                                
66
67 #check_PROGRAMS = \
68 # test_transport_api_dv
69 # test_dv_topology
70
71 if ENABLE_TEST_RUN
72 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
73 endif
74
75 #test_transport_api_dv_SOURCES = \
76 # test_transport_api_dv.c
77 #test_transport_api_dv_LDADD = \
78 # $(top_builddir)/src/core/libgnunetcore.la \
79 # $(top_builddir)/src/transport/libgnunettransport.la \
80 # $(top_builddir)/src/util/libgnunetutil.la 
81
82 EXTRA_DIST = \
83   test_transport_dv_data.conf 
84