fix #3275 with solution from https://gnunet.org/bugs/view.php?id=3275#c8029
[oweals/gnunet.git] / src / dv / Makefile.am
1 AM_CPPFLAGS = -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 
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/ats/libgnunetats.la \
45   $(top_builddir)/src/set/libgnunetset.la \
46   $(top_builddir)/src/statistics/libgnunetstatistics.la \
47   $(top_builddir)/src/core/libgnunetcore.la \
48   $(top_builddir)/src/util/libgnunetutil.la \
49   $(GN_LIBINTL)
50
51 gnunet_dv_SOURCES = \
52  gnunet-dv.c dv.h
53 gnunet_dv_LDADD = \
54   libgnunetdv.la \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   $(GN_LIBINTL)
57
58 libgnunet_plugin_transport_dv_la_SOURCES = \
59   plugin_transport_dv.c
60 libgnunet_plugin_transport_dv_la_LIBADD = \
61   libgnunetdv.la \
62   $(top_builddir)/src/ats/libgnunetats.la \
63   $(top_builddir)/src/hello/libgnunethello.la \
64   $(top_builddir)/src/util/libgnunetutil.la 
65 libgnunet_plugin_transport_dv_la_LDFLAGS = \
66  $(GN_PLUGIN_LDFLAGS)
67 libgnunet_plugin_transport_dv_la_DEPENDENCIES = \
68   $(top_builddir)/src/ats/libgnunetats.la \
69   $(top_builddir)/src/hello/libgnunethello.la \
70   libgnunetdv.la                                                
71
72 if HAVE_TESTING
73 check_PROGRAMS = \
74  test_transport_blacklist \
75  test_transport_dv
76 endif
77
78 if ENABLE_TEST_RUN
79  TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
80  TESTS = $(check_PROGRAMS) 
81 endif
82
83 test_transport_dv_SOURCES = \
84  test_transport_dv.c
85 test_transport_dv_LDADD = \
86  $(top_builddir)/src/testbed/libgnunettestbed.la \
87  $(top_builddir)/src/core/libgnunetcore.la \
88  $(top_builddir)/src/transport/libgnunettransport.la \
89  $(top_builddir)/src/util/libgnunetutil.la 
90
91 test_transport_blacklist_SOURCES = \
92  test_transport_blacklist.c
93 test_transport_blacklist_LDADD = \
94  $(top_builddir)/src/testbed/libgnunettestbed.la \
95  $(top_builddir)/src/core/libgnunetcore.la \
96  $(top_builddir)/src/transport/libgnunettransport.la \
97  $(top_builddir)/src/util/libgnunetutil.la 
98
99 EXTRA_DIST = \
100   test_transport_dv_data.conf \
101   test_transport_blacklist_data.conf \
102   template_dv.conf
103