Merge branch 'master' of ssh://gnunet.org/gnunet
[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_multipeer
55 #  test_multicast 
56 #  test_multicast_2peers
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;
60 #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';
61 TESTS = $(check_PROGRAMS)
62 endif
63
64 test_multicast_SOURCES = \
65  test_multicast.c
66 test_multicast_LDADD = \
67   libgnunetmulticast.la \
68   $(top_builddir)/src/testing/libgnunettesting.la \
69   $(top_builddir)/src/util/libgnunetutil.la
70
71 test_multicast_multipeer_SOURCES = \
72   test_multicast_multipeer.c
73 test_multicast_multipeer_LDADD = \
74   libgnunetmulticast.la \
75   $(top_builddir)/src/testbed/libgnunettestbed.la \
76   $(top_builddir)/src/util/libgnunetutil.la
77
78 test_multicast_2peers_SOURCES = \
79   test_multicast_2peers.c
80 test_multicast_2peers_LDADD = \
81   libgnunetmulticast.la \
82   $(top_builddir)/src/testbed/libgnunettestbed.la \
83   $(top_builddir)/src/util/libgnunetutil.la