0c7d598d422d280747332d76319e05567a11ab8b
[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 \
52  test_mesh_small
53
54 test_mesh_api_SOURCES = \
55  test_mesh_api.c
56 test_mesh_api_LDADD = \
57  $(top_builddir)/src/util/libgnunetutil.la \
58  $(top_builddir)/src/mesh/libgnunetmeshnew.la
59 test_mesh_api_DEPENDENCIES = \
60   libgnunetmeshnew.la
61
62 test_mesh_local_SOURCES = \
63  test_mesh_local.c
64 test_mesh_local_LDADD = \
65  $(top_builddir)/src/util/libgnunetutil.la \
66  $(top_builddir)/src/mesh/libgnunetmeshnew.la
67 test_mesh_api_DEPENDENCIES = \
68   libgnunetmeshnew.la
69
70 test_mesh_small_SOURCES = \
71  test_mesh_small.c
72 test_mesh_small_LDADD = \
73   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   $(top_builddir)/src/testing/libgnunettesting.la
76 test_mesh_small_DEPENDENCIES = \
77   libgnunetmeshnew.la
78
79 if ENABLE_TEST_RUN
80 TESTS = test_mesh_api
81 endif
82
83 EXTRA_DIST = \
84   test_mesh.conf