1a6852a54aa8486180085dd0d47d5dd22a381273
[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
33
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
39
40 libgnunetmeshnew_la_SOURCES = \
41   mesh_api_new.c mesh.h
42 libgnunetmeshnew_la_LIBADD = \
43   $(top_builddir)/src/util/libgnunetutil.la \
44   $(XLIB)
45 libgnunetmeshnew_la_LDFLAGS = \
46   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
47   -version-info 0:0:0
48
49 check_PROGRAMS = \
50  test_mesh_api \
51  test_mesh_local_1 \
52  test_mesh_local_2 \
53  test_mesh_small
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/libgnunetmeshnew.la
60 test_mesh_api_DEPENDENCIES = \
61   libgnunetmeshnew.la
62
63 test_mesh_local_1_SOURCES = \
64  test_mesh_local_1.c
65 test_mesh_local_1_LDADD = \
66  $(top_builddir)/src/util/libgnunetutil.la \
67  $(top_builddir)/src/mesh/libgnunetmeshnew.la
68 test_mesh_api_1_DEPENDENCIES = \
69   libgnunetmeshnew.la
70
71 test_mesh_local_2_SOURCES = \
72  test_mesh_local_2.c
73 test_mesh_local_2_LDADD = \
74  $(top_builddir)/src/util/libgnunetutil.la \
75  $(top_builddir)/src/mesh/libgnunetmeshnew.la
76 test_mesh_api_2_DEPENDENCIES = \
77   libgnunetmeshnew.la
78
79 test_mesh_small_SOURCES = \
80  test_mesh_small.c
81 test_mesh_small_LDADD = \
82   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
83   $(top_builddir)/src/util/libgnunetutil.la \
84   $(top_builddir)/src/testing/libgnunettesting.la
85 test_mesh_small_DEPENDENCIES = \
86   libgnunetmeshnew.la
87
88 if ENABLE_TEST_RUN
89 TESTS = test_mesh_api test_mesh_local_1 test_mesh_local_2
90 endif
91
92 EXTRA_DIST = \
93   test_mesh.conf