Commented out DHT code, removed DHT-dependent test from run set.
[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/core/libgnunetcore.la \
26   $(GN_LIBINTL) $(XLIB)
27 libgnunetmesh_la_LDFLAGS = \
28   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
29   -version-info 0:0:0
30
31 gnunet_service_mesh_SOURCES = \
32  gnunet-service-mesh.c mesh_tunnel_tree.c
33 gnunet_service_mesh_LDADD = \
34   $(top_builddir)/src/core/libgnunetcore.la\
35   $(top_builddir)/src/dht/libgnunetdht.la \
36   $(top_builddir)/src/util/libgnunetutil.la
37  gnunet_service_mesh_DEPENDENCIES = \
38   $(top_builddir)/src/core/libgnunetcore.la\
39   $(top_builddir)/src/dht/libgnunetdht.la \
40   $(top_builddir)/src/util/libgnunetutil.la
41
42 libgnunetmeshnew_la_SOURCES = \
43   mesh_api_new.c mesh.h
44 libgnunetmeshnew_la_LIBADD = \
45   $(top_builddir)/src/util/libgnunetutil.la \
46   $(XLIB)
47 libgnunetmeshnew_la_LDFLAGS = \
48   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
49   -version-info 0:0:0
50
51 check_PROGRAMS = \
52  test_mesh_api \
53  test_mesh_path_api \
54  test_mesh_local_1 \
55  test_mesh_local_2 \
56  test_mesh_small \
57  test_mesh_small_unicast
58
59 test_mesh_api_SOURCES = \
60  test_mesh_api.c
61 test_mesh_api_LDADD = \
62  $(top_builddir)/src/util/libgnunetutil.la \
63  $(top_builddir)/src/mesh/libgnunetmeshnew.la
64 test_mesh_api_DEPENDENCIES = \
65   libgnunetmeshnew.la \
66    $(top_builddir)/src/util/libgnunetutil.la
67
68 test_mesh_path_api_SOURCES = \
69  test_mesh_path_api.c mesh_tunnel_tree.c
70 test_mesh_path_api_LDADD = \
71  $(top_builddir)/src/util/libgnunetutil.la \
72   $(top_builddir)/src/dht/libgnunetdht.la
73 test_mesh_path_api_DEPENDENCIES = \
74   libgnunetmeshnew.la \
75   $(top_builddir)/src/dht/libgnunetdht.la
76
77 test_mesh_local_1_SOURCES = \
78  test_mesh_local_1.c
79 test_mesh_local_1_LDADD = \
80  $(top_builddir)/src/util/libgnunetutil.la \
81  $(top_builddir)/src/mesh/libgnunetmeshnew.la
82 test_mesh_local_1_DEPENDENCIES = \
83   libgnunetmeshnew.la
84
85 test_mesh_local_2_SOURCES = \
86  test_mesh_local_2.c
87 test_mesh_local_2_LDADD = \
88  $(top_builddir)/src/util/libgnunetutil.la \
89  $(top_builddir)/src/mesh/libgnunetmeshnew.la
90 test_mesh_local_2_DEPENDENCIES = \
91   libgnunetmeshnew.la
92
93 test_mesh_small_SOURCES = \
94  test_mesh_small.c
95 test_mesh_small_LDADD = \
96   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
97   $(top_builddir)/src/util/libgnunetutil.la \
98   $(top_builddir)/src/testing/libgnunettesting.la
99 test_mesh_small_DEPENDENCIES = \
100   libgnunetmeshnew.la
101
102 test_mesh_small_unicast_SOURCES = \
103  test_mesh_small_unicast.c
104 test_mesh_small_unicast_LDADD = \
105   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
106   $(top_builddir)/src/util/libgnunetutil.la \
107   $(top_builddir)/src/testing/libgnunettesting.la
108 test_mesh_small_unicast_DEPENDENCIES = \
109   libgnunetmeshnew.la
110
111 if ENABLE_TEST_RUN
112 if HAVE_EXPERIMENTAL
113 TESTS = test_mesh_api test_mesh_path_api test_mesh_local_1
114 endif
115 endif
116
117 EXTRA_DIST = \
118   test_mesh.conf \
119   test_mesh_path.conf