- added testcase for set intersection
[oweals/gnunet.git] / src / set / 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   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-profiler gnunet-set-ibf-profiler
20
21 libexec_PROGRAMS = \
22  gnunet-service-set
23
24 lib_LTLIBRARIES = \
25   libgnunetset.la
26
27 gnunet_set_profiler_SOURCES = \
28  gnunet-set-profiler.c
29 gnunet_set_profiler_LDADD = \
30   $(top_builddir)/src/util/libgnunetutil.la \
31   $(top_builddir)/src/set/libgnunetset.la \
32   $(top_builddir)/src/testing/libgnunettesting.la \
33   $(GN_LIBINTL)
34 gnunet_set_profiler_DEPENDENCIES = \
35   libgnunetset.la
36
37
38 gnunet_set_ibf_profiler_SOURCES = \
39  gnunet-set-ibf-profiler.c \
40  ibf.c
41 gnunet_set_ibf_profiler_LDADD = \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(GN_LIBINTL)
44
45 gnunet_service_set_SOURCES = \
46  gnunet-service-set.c gnunet-service-set.h \
47  gnunet-service-set_union.c \
48  gnunet-service-set_intersection.c \
49  ibf.c ibf.h \
50  strata_estimator.c strata_estimator.h \
51  set_protocol.h
52 gnunet_service_set_LDADD = \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(top_builddir)/src/core/libgnunetcore.la \
55   $(top_builddir)/src/mesh/libgnunetmesh.la \
56   $(top_builddir)/src/block/libgnunetblock.la \
57   $(GN_LIBINTL)
58
59 libgnunetset_la_SOURCES = \
60   set_api.c set.h
61 libgnunetset_la_LIBADD = \
62   $(top_builddir)/src/util/libgnunetutil.la \
63   $(LTLIBINTL)
64 libgnunetset_la_LDFLAGS = \
65   $(GN_LIB_LDFLAGS)
66
67 if HAVE_TESTING
68 check_PROGRAMS = \
69  test_set_api test_set_union_result_full
70 endif
71
72 if ENABLE_TEST_RUN
73 TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
74 TESTS = $(check_PROGRAMS)
75 endif
76
77 test_set_api_SOURCES = \
78  test_set_api.c
79 test_set_api_LDADD = \
80   $(top_builddir)/src/util/libgnunetutil.la \
81   $(top_builddir)/src/testing/libgnunettesting.la \
82   $(top_builddir)/src/set/libgnunetset.la
83 test_set_api_DEPENDENCIES = \
84   libgnunetset.la
85
86 test_set_union_result_full_SOURCES = \
87  test_set_union_result_full.c
88 test_set_union_result_full_LDADD = \
89   $(top_builddir)/src/util/libgnunetutil.la \
90   $(top_builddir)/src/testing/libgnunettesting.la \
91   $(top_builddir)/src/set/libgnunetset.la
92 test_set_union_result_full_DEPENDENCIES = \
93   libgnunetset.la
94
95 EXTRA_DIST = \
96   test_set.conf
97