-bump versions
[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 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 \
27  mesh_tunnel_tree.c mesh_tunnel_tree.h
28 gnunet_service_mesh_LDADD = \
29   $(top_builddir)/src/core/libgnunetcore.la\
30   $(top_builddir)/src/dht/libgnunetdht.la \
31   $(top_builddir)/src/util/libgnunetutil.la
32  gnunet_service_mesh_DEPENDENCIES = \
33   $(top_builddir)/src/core/libgnunetcore.la\
34   $(top_builddir)/src/dht/libgnunetdht.la \
35   $(top_builddir)/src/util/libgnunetutil.la
36
37 libgnunetmesh_la_SOURCES = \
38   mesh_api.c mesh.h mesh_protocol.h
39 libgnunetmesh_la_LIBADD = \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(XLIB)
42 libgnunetmesh_la_LDFLAGS = \
43   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
44   -version-info 1:0:0
45
46 check_PROGRAMS = \
47  test_mesh_api \
48  test_mesh_tree_api \
49  test_mesh_local_1 \
50  test_mesh_local_2 \
51  test_mesh_2dtorus \
52  test_mesh_small_unicast \
53  test_mesh_small_multicast \
54  test_mesh_small_speed \
55  test_mesh_small_speed_ack
56
57 test_mesh_api_SOURCES = \
58  test_mesh_api.c
59 test_mesh_api_LDADD = \
60  $(top_builddir)/src/util/libgnunetutil.la \
61  $(top_builddir)/src/mesh/libgnunetmesh.la
62 test_mesh_api_DEPENDENCIES = \
63   libgnunetmesh.la \
64    $(top_builddir)/src/util/libgnunetutil.la
65
66 test_mesh_tree_api_SOURCES = \
67  test_mesh_tree_api.c
68 test_mesh_tree_api_LDADD = \
69  $(top_builddir)/src/util/libgnunetutil.la \
70   $(top_builddir)/src/dht/libgnunetdht.la
71 test_mesh_tree_api_DEPENDENCIES = \
72   libgnunetmesh.la \
73   $(top_builddir)/src/dht/libgnunetdht.la
74
75 test_mesh_local_1_SOURCES = \
76  test_mesh_local_1.c
77 test_mesh_local_1_LDADD = \
78  $(top_builddir)/src/util/libgnunetutil.la \
79  $(top_builddir)/src/mesh/libgnunetmesh.la
80 test_mesh_local_1_DEPENDENCIES = \
81   libgnunetmesh.la
82
83 test_mesh_local_2_SOURCES = \
84  test_mesh_local_2.c
85 test_mesh_local_2_LDADD = \
86  $(top_builddir)/src/util/libgnunetutil.la \
87  $(top_builddir)/src/mesh/libgnunetmesh.la
88 test_mesh_local_2_DEPENDENCIES = \
89   libgnunetmesh.la
90
91 test_mesh_2dtorus_SOURCES = \
92  test_mesh_2dtorus.c
93 test_mesh_2dtorus_LDADD = \
94   $(top_builddir)/src/util/libgnunetutil.la \
95   $(top_builddir)/src/testing/libgnunettesting.la
96
97 test_mesh_small_unicast_SOURCES = \
98  test_mesh_small.c
99 test_mesh_small_unicast_LDADD = \
100   $(top_builddir)/src/mesh/libgnunetmesh.la \
101   $(top_builddir)/src/util/libgnunetutil.la \
102   $(top_builddir)/src/testing/libgnunettesting.la
103 test_mesh_small_unicast_DEPENDENCIES = \
104   libgnunetmesh.la
105
106 test_mesh_small_multicast_SOURCES = \
107  test_mesh_small.c
108 test_mesh_small_multicast_LDADD = \
109   $(top_builddir)/src/mesh/libgnunetmesh.la \
110   $(top_builddir)/src/util/libgnunetutil.la \
111   $(top_builddir)/src/testing/libgnunettesting.la
112 test_mesh_small_multicast_DEPENDENCIES = \
113   libgnunetmesh.la
114
115 test_mesh_small_speed_SOURCES = \
116  test_mesh_small.c
117 test_mesh_small_speed_LDADD = \
118   $(top_builddir)/src/mesh/libgnunetmesh.la \
119   $(top_builddir)/src/util/libgnunetutil.la \
120   $(top_builddir)/src/testing/libgnunettesting.la
121 test_mesh_small_speed_DEPENDENCIES = \
122   libgnunetmesh.la
123
124 test_mesh_small_speed_ack_SOURCES = \
125  test_mesh_small.c
126 test_mesh_small_speed_ack_LDADD = \
127   $(top_builddir)/src/mesh/libgnunetmesh.la \
128   $(top_builddir)/src/util/libgnunetutil.la \
129   $(top_builddir)/src/testing/libgnunettesting.la
130 test_mesh_small_speed_ack_DEPENDENCIES = \
131   libgnunetmesh.la
132
133 if ENABLE_TEST_RUN
134 TESTS = test_mesh_api test_mesh_tree_api test_mesh_local_1 test_mesh_local_2 \
135  test_mesh_2dtorus test_mesh_small_unicast test_mesh_small_multicast
136 endif
137
138 EXTRA_DIST = \
139   test_mesh.conf \
140   test_mesh_2dtorus.conf \
141   test_mesh_small.conf \
142   test_mesh_path.conf