Refactored multicast code to allow sending any message as multicast, added multicast...
[oweals/gnunet.git] / src / mesh / 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 AM_CLFAGS = -g
13
14 bin_PROGRAMS = \
15  gnunet-service-mesh
16
17 lib_LTLIBRARIES = \
18   libgnunetmesh.la \
19   libgnunetmeshnew.la
20
21 libgnunetmesh_la_SOURCES = \
22   mesh_api.c mesh_protocol.h
23 libgnunetmesh_la_LIBADD = \
24   $(top_builddir)/src/util/libgnunetutil.la \
25   $(top_builddir)/src/transport/libgnunettransport.la \
26   $(top_builddir)/src/core/libgnunetcore.la \
27   $(GN_LIBINTL) $(XLIB)
28 libgnunetmesh_la_LDFLAGS = \
29   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
30   -version-info 0:0:0
31
32 gnunet_service_mesh_SOURCES = \
33  gnunet-service-mesh.c mesh_tunnel_tree.c
34 gnunet_service_mesh_LDADD = \
35   $(top_builddir)/src/core/libgnunetcore.la\
36   $(top_builddir)/src/dht/libgnunetdht.la \
37   $(top_builddir)/src/util/libgnunetutil.la
38  gnunet_service_mesh_DEPENDENCIES = \
39   $(top_builddir)/src/core/libgnunetcore.la\
40   $(top_builddir)/src/dht/libgnunetdht.la \
41   $(top_builddir)/src/util/libgnunetutil.la
42
43 libgnunetmeshnew_la_SOURCES = \
44   mesh_api_new.c mesh.h
45 libgnunetmeshnew_la_LIBADD = \
46   $(top_builddir)/src/util/libgnunetutil.la \
47   $(XLIB)
48 libgnunetmeshnew_la_LDFLAGS = \
49   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
50   -version-info 0:0:0
51
52 check_PROGRAMS = \
53  test_mesh_api \
54  test_mesh_path_api \
55  test_mesh_local_1 \
56  test_mesh_local_2 \
57  test_mesh_small \
58  test_mesh_small_unicast \
59  test_mesh_small_unicast_far \
60  test_mesh_small_multicast
61
62 test_mesh_api_SOURCES = \
63  test_mesh_api.c
64 test_mesh_api_LDADD = \
65  $(top_builddir)/src/util/libgnunetutil.la \
66  $(top_builddir)/src/mesh/libgnunetmeshnew.la
67 test_mesh_api_DEPENDENCIES = \
68   libgnunetmeshnew.la \
69    $(top_builddir)/src/util/libgnunetutil.la
70
71 test_mesh_path_api_SOURCES = \
72  test_mesh_path_api.c mesh_tunnel_tree.c
73 test_mesh_path_api_LDADD = \
74  $(top_builddir)/src/util/libgnunetutil.la \
75   $(top_builddir)/src/dht/libgnunetdht.la
76 test_mesh_path_api_DEPENDENCIES = \
77   libgnunetmeshnew.la \
78   $(top_builddir)/src/dht/libgnunetdht.la
79
80 test_mesh_local_1_SOURCES = \
81  test_mesh_local_1.c
82 test_mesh_local_1_LDADD = \
83  $(top_builddir)/src/util/libgnunetutil.la \
84  $(top_builddir)/src/mesh/libgnunetmeshnew.la
85 test_mesh_local_1_DEPENDENCIES = \
86   libgnunetmeshnew.la
87
88 test_mesh_local_2_SOURCES = \
89  test_mesh_local_2.c
90 test_mesh_local_2_LDADD = \
91  $(top_builddir)/src/util/libgnunetutil.la \
92  $(top_builddir)/src/mesh/libgnunetmeshnew.la
93 test_mesh_local_2_DEPENDENCIES = \
94   libgnunetmeshnew.la
95
96 test_mesh_small_SOURCES = \
97  test_mesh_small.c
98 test_mesh_small_LDADD = \
99   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
100   $(top_builddir)/src/util/libgnunetutil.la \
101   $(top_builddir)/src/testing/libgnunettesting.la
102 test_mesh_small_DEPENDENCIES = \
103   libgnunetmeshnew.la
104
105 test_mesh_small_unicast_SOURCES = \
106  test_mesh_small_unicast.c
107 test_mesh_small_unicast_LDADD = \
108   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
109   $(top_builddir)/src/util/libgnunetutil.la \
110   $(top_builddir)/src/testing/libgnunettesting.la
111 test_mesh_small_unicast_DEPENDENCIES = \
112   libgnunetmeshnew.la
113
114 test_mesh_small_unicast_far_SOURCES = \
115  test_mesh_small_unicast_far.c
116 test_mesh_small_unicast_far_LDADD = \
117   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
118   $(top_builddir)/src/util/libgnunetutil.la \
119   $(top_builddir)/src/testing/libgnunettesting.la
120 test_mesh_small_unicast_far_DEPENDENCIES = \
121   libgnunetmeshnew.la
122
123 test_mesh_small_multicast_SOURCES = \
124  test_mesh_small_multicast.c
125 test_mesh_small_multicast_LDADD = \
126   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
127   $(top_builddir)/src/util/libgnunetutil.la \
128   $(top_builddir)/src/testing/libgnunettesting.la
129 test_mesh_small_multicast_DEPENDENCIES = \
130   libgnunetmeshnew.la
131
132
133 if ENABLE_TEST_RUN
134 TESTS = test_mesh_api test_mesh_path_api test_mesh_local_1 test_mesh_local_2 test_mesh_small test_mesh_small_unicast
135 endif
136
137 EXTRA_DIST = \
138   test_mesh.conf \
139   test_mesh_path.conf