Added an empty 2d torus test (connect and to nothing)
[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 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 dist_pkgcfg_DATA = \
15   mesh.conf
16
17 AM_CLFAGS = -g
18
19 bin_PROGRAMS = \
20  gnunet-service-mesh
21
22 lib_LTLIBRARIES = \
23   libgnunetmesh.la
24
25 gnunet_service_mesh_SOURCES = \
26  gnunet-service-mesh.c mesh_tunnel_tree.c
27 gnunet_service_mesh_LDADD = \
28   $(top_builddir)/src/core/libgnunetcore.la\
29   $(top_builddir)/src/dht/libgnunetdht.la \
30   $(top_builddir)/src/util/libgnunetutil.la
31  gnunet_service_mesh_DEPENDENCIES = \
32   $(top_builddir)/src/core/libgnunetcore.la\
33   $(top_builddir)/src/dht/libgnunetdht.la \
34   $(top_builddir)/src/util/libgnunetutil.la
35
36 libgnunetmesh_la_SOURCES = \
37   mesh_api.c mesh.h
38 libgnunetmesh_la_LIBADD = \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(XLIB)
41 libgnunetmesh_la_LDFLAGS = \
42   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
43   -version-info 0:0:0
44
45 check_PROGRAMS = \
46  test_mesh_api \
47  test_mesh_tree_api \
48  test_mesh_local_1 \
49  test_mesh_local_2 \
50  test_mesh_2dtorus \
51  test_mesh_small_unicast \
52  test_mesh_small_unicast_far \
53  test_mesh_small_multicast
54
55 test_mesh_api_SOURCES = \
56  test_mesh_api.c
57 test_mesh_api_LDADD = \
58  $(top_builddir)/src/util/libgnunetutil.la \
59  $(top_builddir)/src/mesh/libgnunetmesh.la
60 test_mesh_api_DEPENDENCIES = \
61   libgnunetmesh.la \
62    $(top_builddir)/src/util/libgnunetutil.la
63
64 test_mesh_tree_api_SOURCES = \
65  test_mesh_tree_api.c
66 test_mesh_tree_api_LDADD = \
67  $(top_builddir)/src/util/libgnunetutil.la \
68   $(top_builddir)/src/dht/libgnunetdht.la
69 test_mesh_tree_api_DEPENDENCIES = \
70   libgnunetmesh.la \
71   $(top_builddir)/src/dht/libgnunetdht.la
72
73 test_mesh_local_1_SOURCES = \
74  test_mesh_local_1.c
75 test_mesh_local_1_LDADD = \
76  $(top_builddir)/src/util/libgnunetutil.la \
77  $(top_builddir)/src/mesh/libgnunetmesh.la
78 test_mesh_local_1_DEPENDENCIES = \
79   libgnunetmesh.la
80
81 test_mesh_local_2_SOURCES = \
82  test_mesh_local_2.c
83 test_mesh_local_2_LDADD = \
84  $(top_builddir)/src/util/libgnunetutil.la \
85  $(top_builddir)/src/mesh/libgnunetmesh.la
86 test_mesh_local_2_DEPENDENCIES = \
87   libgnunetmesh.la
88
89 test_mesh_2dtorus_SOURCES = \
90  test_mesh_2dtorus.c
91 test_mesh_2dtorus_LDADD = \
92   $(top_builddir)/src/util/libgnunetutil.la \
93   $(top_builddir)/src/testing/libgnunettesting.la
94
95 test_mesh_small_unicast_SOURCES = \
96  test_mesh_small.c
97 test_mesh_small_unicast_LDADD = \
98   $(top_builddir)/src/mesh/libgnunetmesh.la \
99   $(top_builddir)/src/util/libgnunetutil.la \
100   $(top_builddir)/src/testing/libgnunettesting.la
101 test_mesh_small_unicast_DEPENDENCIES = \
102   libgnunetmesh.la
103
104 test_mesh_small_unicast_far_SOURCES = \
105  test_mesh_small.c
106 test_mesh_small_unicast_far_LDADD = \
107   $(top_builddir)/src/mesh/libgnunetmesh.la \
108   $(top_builddir)/src/util/libgnunetutil.la \
109   $(top_builddir)/src/testing/libgnunettesting.la
110 test_mesh_small_unicast_far_DEPENDENCIES = \
111   libgnunetmesh.la
112
113 test_mesh_small_multicast_SOURCES = \
114  test_mesh_small.c
115 test_mesh_small_multicast_LDADD = \
116   $(top_builddir)/src/mesh/libgnunetmesh.la \
117   $(top_builddir)/src/util/libgnunetutil.la \
118   $(top_builddir)/src/testing/libgnunettesting.la
119 test_mesh_small_multicast_DEPENDENCIES = \
120   libgnunetmesh.la
121
122
123 if ENABLE_TEST_RUN
124 TESTS = test_mesh_api test_mesh_tree_api test_mesh_local_1 test_mesh_local_2 test_mesh_small_unicast test_mesh_small_multicast
125 endif
126
127 EXTRA_DIST = \
128   test_mesh.conf \
129   test_mesh_path.conf \
130   test_mesh_small.conf