70c0dc150c4c8606a8d25163f35adf0d695c9417
[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 bin_PROGRAMS = \
13  gnunet-service-mesh
14
15 lib_LTLIBRARIES = \
16   libgnunetmesh.la \
17   libgnunetmeshnew.la
18
19 libgnunetmesh_la_SOURCES = \
20   mesh_api.c mesh_protocol.h
21 libgnunetmesh_la_LIBADD = \
22   $(top_builddir)/src/util/libgnunetutil.la \
23   $(top_builddir)/src/core/libgnunetcore.la \
24   $(GN_LIBINTL) $(XLIB)
25 libgnunetmesh_la_LDFLAGS = \
26   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
27   -version-info 0:0:0
28
29 gnunet_service_mesh_SOURCES = \
30  gnunet-service-mesh.c
31
32 gnunet_service_mesh_LDADD = \
33   $(top_builddir)/src/core/libgnunetcore.la\
34   $(top_builddir)/src/dht/libgnunetdht.la \
35   $(top_builddir)/src/util/libgnunetutil.la
36
37
38 libgnunetmeshnew_la_SOURCES = \
39   mesh_api_new.c mesh.h
40 libgnunetmeshnew_la_LIBADD = \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(XLIB)
43 libgnunetmeshnew_la_LDFLAGS = \
44   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
45   -version-info 0:0:0
46
47 check_PROGRAMS = \
48  test_mesh_api \
49  test_mesh_small
50
51 test_mesh_api_SOURCES = \
52  test_mesh_api.c
53 test_mesh_api_LDADD = \
54  $(top_builddir)/src/util/libgnunetutil.la \
55  $(top_builddir)/src/mesh/libgnunetmeshnew.la \
56  $(top_builddir)/src/dht/libgnunetdht.la
57 test_mesh_api_DEPENDENCIES = \
58   libgnunetmeshnew.la
59
60 test_mesh_small_SOURCES = \
61  test_mesh_small.c
62 test_mesh_small_LDADD = \
63   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
64   $(top_builddir)/src/util/libgnunetutil.la \
65   $(top_builddir)/src/testing/libgnunettesting.la
66 test_mesh_small_DEPENDENCIES = \
67   libgnunetmeshnew.la
68
69 if ENABLE_TEST_RUN
70 TESTS = test_mesh_api
71 endif
72
73 EXTRA_DIST = \
74   test_mesh.conf