- merge with master
[oweals/gnunet.git] / src / multicast / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 pkgcfgdir= $(pkgdatadir)/config.d/
5
6 libexecdir= $(pkglibdir)/libexec/
7
8 pkgcfg_DATA = \
9   multicast.conf
10
11 if MINGW
12  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
13 endif
14
15 if USE_COVERAGE
16   AM_CFLAGS = -fprofile-arcs -ftest-coverage
17 endif
18
19 lib_LTLIBRARIES = libgnunetmulticast.la
20
21 libgnunetmulticast_la_SOURCES = \
22   multicast_api.c \
23   multicast.h
24 libgnunetmulticast_la_LIBADD = \
25   $(top_builddir)/src/util/libgnunetutil.la \
26   $(GN_LIBINTL) $(XLIB)
27 libgnunetmulticast_la_LDFLAGS = \
28   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
29   -version-info 0:0:0
30
31
32 bin_PROGRAMS = \
33  gnunet-multicast
34
35 libexec_PROGRAMS = \
36  gnunet-service-multicast \
37  $(EXP_LIBEXEC)
38
39 gnunet_multicast_SOURCES = \
40  gnunet-multicast.c
41 gnunet_multicast_LDADD = \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(GN_LIBINTL)
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/cadet/libgnunetcadet.la \
50   $(top_builddir)/src/statistics/libgnunetstatistics.la \
51   $(GN_LIBINTL)
52
53 check_PROGRAMS = \
54  test_multicast \
55  test_multicast_2peers
56 # test_multicast_multipeer
57
58 if ENABLE_TEST_RUN
59 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@}; export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; unset XDG_DATA_HOME; unset XDG_CONFIG_HOME; export GNUNET_FORCE_LOG=';;;;INFO';
60 TESTS = $(check_PROGRAMS)
61 endif
62
63 test_multicast_SOURCES = \
64  test_multicast.c
65 test_multicast_LDADD = \
66   libgnunetmulticast.la \
67   $(top_builddir)/src/testing/libgnunettesting.la \
68   $(top_builddir)/src/util/libgnunetutil.la
69
70 test_multicast_2peers_SOURCE = \
71  test_multicast_2peers.c
72 test_multicast_2peers_LDADD = \
73   libgnunetmulticast.la \
74   $(top_builddir)/src/testbed/libgnunettestbed.la \
75   $(top_builddir)/src/util/libgnunetutil.la