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