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