work on gnunet-set, isolated bug in stream
[oweals/gnunet.git] / src / set / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 pkgcfg_DATA = \
8   set.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 bin_PROGRAMS = \
19  gnunet-set gnunet-set-bug
20
21 libexec_PROGRAMS = \
22  gnunet-service-set
23
24 lib_LTLIBRARIES = \
25   libgnunetset.la
26
27 gnunet_set_SOURCES = \
28  gnunet-set.c
29 gnunet_set_LDADD = \
30   $(top_builddir)/src/util/libgnunetutil.la \
31   $(top_builddir)/src/set/libgnunetset.la \
32   $(top_builddir)/src/stream/libgnunetstream.la \
33   $(top_builddir)/src/testbed/libgnunettestbed.la \
34   $(GN_LIBINTL)
35 gnunet_set_DEPENDENCIES = \
36   libgnunetset.la
37
38 gnunet_set_bug_SOURCES = \
39  gnunet-set-bug.c \
40  mq.c
41 gnunet_set_bug_LDADD = \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(top_builddir)/src/stream/libgnunetstream.la \
44   $(GN_LIBINTL)
45 # hack for mq.c, see automake Objects ‘created with both libtool and without’
46 # remove once GNUNET_MQ is in util/
47 gnunet_set_bug_CFLAGS = $(AM_CFLAGS)
48
49 gnunet_service_set_SOURCES = \
50  gnunet-service-set.c \
51  gnunet-service-set_union.c \
52  mq.c \
53  ibf.c \
54  strata_estimator.c
55 gnunet_service_set_LDADD = \
56   $(top_builddir)/src/util/libgnunetutil.la \
57   $(top_builddir)/src/core/libgnunetcore.la \
58   $(top_builddir)/src/stream/libgnunetstream.la \
59   $(top_builddir)/src/mesh/libgnunetmesh.la \
60   $(GN_LIBINTL)
61 # hack for mq.c, see automake Objects ‘created with both libtool and without’
62 # remove once GNUNET_MQ is in util/
63 gnunet_service_set_CFLAGS = $(AM_CFLAGS)
64
65 libgnunetset_la_SOURCES = \
66   set_api.c \
67   mq.c
68 libgnunetset_la_LIBADD = \
69   $(top_builddir)/src/util/libgnunetutil.la \
70   $(top_builddir)/src/stream/libgnunetstream.la \
71   $(LTLIBINTL)
72 libgnunetset_la_LDFLAGS = \
73   $(GN_LIB_LDFLAGS)
74
75 check_PROGRAMS = \
76  test_set_api
77
78 if ENABLE_TEST_RUN
79 TESTS = $(check_PROGRAMS)
80 endif
81
82 test_set_api_SOURCES = \
83  test_set_api.c
84 test_set_api_LDADD = \
85   $(top_builddir)/src/util/libgnunetutil.la \
86   $(top_builddir)/src/testing/libgnunettesting.la \
87   $(top_builddir)/src/set/libgnunetset.la
88 test_set_api_DEPENDENCIES = \
89   libgnunetset.la
90
91 EXTRA_DIST = \
92   test_set.conf
93