Removed deprecated testcase
[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_multicast
53
54 test_mesh_api_SOURCES = \
55  test_mesh_api.c
56 test_mesh_api_LDADD = \
57  $(top_builddir)/src/util/libgnunetutil.la \
58  $(top_builddir)/src/mesh/libgnunetmesh.la
59 test_mesh_api_DEPENDENCIES = \
60   libgnunetmesh.la \
61    $(top_builddir)/src/util/libgnunetutil.la
62
63 test_mesh_tree_api_SOURCES = \
64  test_mesh_tree_api.c
65 test_mesh_tree_api_LDADD = \
66  $(top_builddir)/src/util/libgnunetutil.la \
67   $(top_builddir)/src/dht/libgnunetdht.la
68 test_mesh_tree_api_DEPENDENCIES = \
69   libgnunetmesh.la \
70   $(top_builddir)/src/dht/libgnunetdht.la
71
72 test_mesh_local_1_SOURCES = \
73  test_mesh_local_1.c
74 test_mesh_local_1_LDADD = \
75  $(top_builddir)/src/util/libgnunetutil.la \
76  $(top_builddir)/src/mesh/libgnunetmesh.la
77 test_mesh_local_1_DEPENDENCIES = \
78   libgnunetmesh.la
79
80 test_mesh_local_2_SOURCES = \
81  test_mesh_local_2.c
82 test_mesh_local_2_LDADD = \
83  $(top_builddir)/src/util/libgnunetutil.la \
84  $(top_builddir)/src/mesh/libgnunetmesh.la
85 test_mesh_local_2_DEPENDENCIES = \
86   libgnunetmesh.la
87
88 test_mesh_2dtorus_SOURCES = \
89  test_mesh_2dtorus.c
90 test_mesh_2dtorus_LDADD = \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   $(top_builddir)/src/testing/libgnunettesting.la
93
94 test_mesh_small_unicast_SOURCES = \
95  test_mesh_small.c
96 test_mesh_small_unicast_LDADD = \
97   $(top_builddir)/src/mesh/libgnunetmesh.la \
98   $(top_builddir)/src/util/libgnunetutil.la \
99   $(top_builddir)/src/testing/libgnunettesting.la
100 test_mesh_small_unicast_DEPENDENCIES = \
101   libgnunetmesh.la
102
103 test_mesh_small_multicast_SOURCES = \
104  test_mesh_small.c
105 test_mesh_small_multicast_LDADD = \
106   $(top_builddir)/src/mesh/libgnunetmesh.la \
107   $(top_builddir)/src/util/libgnunetutil.la \
108   $(top_builddir)/src/testing/libgnunettesting.la
109 test_mesh_small_multicast_DEPENDENCIES = \
110   libgnunetmesh.la
111
112
113 if ENABLE_TEST_RUN
114 TESTS = test_mesh_api test_mesh_tree_api test_mesh_local_1 test_mesh_local_2 test_mesh_2dtorus test_mesh_small_unicast test_mesh_small_multicast
115 endif
116
117 EXTRA_DIST = \
118   test_mesh.conf \
119   test_mesh_2dtorus.conf \
120   test_mesh_small.conf