remove legacy core api code (now dead)
[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
38 gnunet_multicast_SOURCES = \
39  gnunet-multicast.c
40 gnunet_multicast_LDADD = \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(GN_LIBINTL)
43
44 gnunet_service_multicast_SOURCES = \
45  gnunet-service-multicast.c
46 gnunet_service_multicast_LDADD = \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(top_builddir)/src/cadet/libgnunetcadet.la \
49   $(top_builddir)/src/statistics/libgnunetstatistics.la \
50   $(GN_LIBINTL)
51
52
53 check_PROGRAMS = \
54  test_multicast \
55  test_multicast_multipeer
56
57 if ENABLE_TEST_RUN
58 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
59 TESTS = $(check_PROGRAMS)
60 endif
61
62 test_multicast_SOURCES = \
63  test_multicast.c
64 test_multicast_LDADD = \
65   libgnunetmulticast.la \
66   $(top_builddir)/src/testing/libgnunettesting.la \
67   $(top_builddir)/src/util/libgnunetutil.la
68
69 test_multicast_multipeer_SOURCE = \
70  test_multicast_multipeer.c
71 test_multicast_multipeer_LDADD = \
72   libgnunetmulticast.la \
73   $(top_builddir)/src/testbed/libgnunettestbed.la \
74   $(top_builddir)/src/util/libgnunetutil.la