Trying to debug buildbots
[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
20 gnunet_service_mesh_SOURCES = \
21  gnunet-service-mesh.c mesh_tunnel_tree.c
22 gnunet_service_mesh_LDADD = \
23   $(top_builddir)/src/core/libgnunetcore.la\
24   $(top_builddir)/src/dht/libgnunetdht.la \
25   $(top_builddir)/src/util/libgnunetutil.la
26  gnunet_service_mesh_DEPENDENCIES = \
27   $(top_builddir)/src/core/libgnunetcore.la\
28   $(top_builddir)/src/dht/libgnunetdht.la \
29   $(top_builddir)/src/util/libgnunetutil.la
30
31 libgnunetmesh_la_SOURCES = \
32   mesh_api.c mesh.h
33 libgnunetmesh_la_LIBADD = \
34   $(top_builddir)/src/util/libgnunetutil.la \
35   $(XLIB)
36 libgnunetmesh_la_LDFLAGS = \
37   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
38   -version-info 0:0:0
39
40 check_PROGRAMS = \
41  test_mesh_api \
42  test_mesh_path_api \
43  test_mesh_local_1 \
44  test_mesh_local_2 \
45  test_mesh_small_unicast \
46  test_mesh_small_unicast_far \
47  test_mesh_small_multicast
48
49 test_mesh_api_SOURCES = \
50  test_mesh_api.c
51 test_mesh_api_LDADD = \
52  $(top_builddir)/src/util/libgnunetutil.la \
53  $(top_builddir)/src/mesh/libgnunetmesh.la
54 test_mesh_api_DEPENDENCIES = \
55   libgnunetmesh.la \
56    $(top_builddir)/src/util/libgnunetutil.la
57
58 test_mesh_path_api_SOURCES = \
59  test_mesh_path_api.c mesh_tunnel_tree.c
60 test_mesh_path_api_LDADD = \
61  $(top_builddir)/src/util/libgnunetutil.la \
62   $(top_builddir)/src/dht/libgnunetdht.la
63 test_mesh_path_api_DEPENDENCIES = \
64   libgnunetmesh.la \
65   $(top_builddir)/src/dht/libgnunetdht.la
66
67 test_mesh_local_1_SOURCES = \
68  test_mesh_local_1.c
69 test_mesh_local_1_LDADD = \
70  $(top_builddir)/src/util/libgnunetutil.la \
71  $(top_builddir)/src/mesh/libgnunetmesh.la
72 test_mesh_local_1_DEPENDENCIES = \
73   libgnunetmesh.la
74
75 test_mesh_local_2_SOURCES = \
76  test_mesh_local_2.c
77 test_mesh_local_2_LDADD = \
78  $(top_builddir)/src/util/libgnunetutil.la \
79  $(top_builddir)/src/mesh/libgnunetmesh.la
80 test_mesh_local_2_DEPENDENCIES = \
81   libgnunetmesh.la
82
83 test_mesh_small_unicast_SOURCES = \
84  test_mesh_small.c
85 test_mesh_small_unicast_LDADD = \
86   $(top_builddir)/src/mesh/libgnunetmesh.la \
87   $(top_builddir)/src/util/libgnunetutil.la \
88   $(top_builddir)/src/testing/libgnunettesting.la
89 test_mesh_small_unicast_DEPENDENCIES = \
90   libgnunetmesh.la
91
92 test_mesh_small_unicast_far_SOURCES = \
93  test_mesh_small.c
94 test_mesh_small_unicast_far_LDADD = \
95   $(top_builddir)/src/mesh/libgnunetmesh.la \
96   $(top_builddir)/src/util/libgnunetutil.la \
97   $(top_builddir)/src/testing/libgnunettesting.la
98 test_mesh_small_unicast_far_DEPENDENCIES = \
99   libgnunetmesh.la
100
101 test_mesh_small_multicast_SOURCES = \
102  test_mesh_small.c
103 test_mesh_small_multicast_LDADD = \
104   $(top_builddir)/src/mesh/libgnunetmesh.la \
105   $(top_builddir)/src/util/libgnunetutil.la \
106   $(top_builddir)/src/testing/libgnunettesting.la
107 test_mesh_small_multicast_DEPENDENCIES = \
108   libgnunetmesh.la
109
110
111 if ENABLE_TEST_RUN
112 TESTS = test_0 test_mesh_api test_mesh_path_api test_mesh_local_1 test_mesh_local_2 test_1 test_mesh_small_unicast
113 endif
114
115 EXTRA_DIST = \
116   test_mesh.conf \
117   test_mesh_path.conf \
118   test_mesh_small.conf