Various changes, can't get indent to work
[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_small
52
53 test_mesh_api_SOURCES = \
54  test_mesh_api.c
55 test_mesh_api_LDADD = \
56  $(top_builddir)/src/util/libgnunetutil.la \
57  $(top_builddir)/src/mesh/libgnunetmeshnew.la \
58  $(top_builddir)/src/dht/libgnunetdht.la
59 test_mesh_api_DEPENDENCIES = \
60   libgnunetmeshnew.la
61
62 test_mesh_small_SOURCES = \
63  test_mesh_small.c
64 test_mesh_small_LDADD = \
65   $(top_builddir)/src/mesh/libgnunetmeshnew.la \
66   $(top_builddir)/src/util/libgnunetutil.la \
67   $(top_builddir)/src/testing/libgnunettesting.la
68 test_mesh_small_DEPENDENCIES = \
69   libgnunetmeshnew.la
70
71 if ENABLE_TEST_RUN
72 TESTS = test_mesh_small
73 endif
74
75 EXTRA_DIST = \
76   test_mesh.conf