8d4813e54e2c5f73c93318f71ab594eb25a1a304
[oweals/gnunet.git] / src / multicast / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 pkgcfg_DATA = \
8   multicast.conf
9
10 if MINGW
11  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
12 endif
13
14 if USE_COVERAGE
15   AM_CFLAGS = -fprofile-arcs -ftest-coverage
16 endif
17
18 lib_LTLIBRARIES = libgnunetmulticast.la
19
20 libgnunetmulticast_la_SOURCES = \
21   multicast_api.c \
22   multicast.h
23 libgnunetmulticast_la_LIBADD = \
24   $(top_builddir)/src/util/libgnunetutil.la \
25   $(GN_LIBINTL) $(XLIB)
26 libgnunetmulticast_la_LDFLAGS = \
27   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
28   -version-info 0:0:0
29
30
31 bin_PROGRAMS = \
32  gnunet-multicast
33
34 libexec_PROGRAMS = \
35  gnunet-service-multicast
36
37 gnunet_multicast_SOURCES = \
38  gnunet-multicast.c
39 gnunet_multicast_LDADD = \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(GN_LIBINTL)
42 gnunet_multicast_DEPENDENCIES = \
43   $(top_builddir)/src/util/libgnunetutil.la
44
45 gnunet_service_multicast_SOURCES = \
46  gnunet-service-multicast.c
47 gnunet_service_multicast_LDADD = \
48   $(top_builddir)/src/util/libgnunetutil.la \
49   $(top_builddir)/src/core/libgnunetcore.la \
50   $(top_builddir)/src/statistics/libgnunetstatistics.la \
51   $(GN_LIBINTL)
52 gnunet_service_multicast_DEPENDENCIES = \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(top_builddir)/src/core/libgnunetcore.la \
55   $(top_builddir)/src/statistics/libgnunetstatistics.la
56
57
58 check_PROGRAMS = \
59  test_multicast
60
61 if ENABLE_TEST_RUN
62 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
63 TESTS = $(check_PROGRAMS)
64 endif
65
66 test_multicast_SOURCES = \
67  test_multicast.c
68 test_multicast_LDADD = \
69   libgnunetmulticast.la \
70   $(top_builddir)/src/testing/libgnunettesting.la \
71   $(top_builddir)/src/util/libgnunetutil.la
72 test_multicast_DEPENDENCIES = \
73   libgnunetmulticast.la \
74   $(top_builddir)/src/testing/libgnunettesting.la \
75   $(top_builddir)/src/util/libgnunetutil.la