WiP
[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
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
50 test_mesh_api_SOURCES = \
51  test_mesh_api.c
52 test_mesh_api_LDADD = \
53  $(top_builddir)/src/util/libgnunetutil.la \
54  $(top_builddir)/src/mesh/libgnunetmeshnew.la \
55  $(top_builddir)/src/dht/libgnunetdht.la
56 test_mesh_api_DEPENDENCIES = \
57   libgnunetmeshnew.la
58
59 TESTS = test_mesh_api