statistics in set profiler, temp. fix for salt
[oweals/gnunet.git] / src / set / 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   set.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 noinst_PROGRAMS = \
20  gnunet-set-profiler gnunet-set-ibf-profiler
21
22 libexec_PROGRAMS = \
23  gnunet-service-set
24
25 lib_LTLIBRARIES = \
26   libgnunetset.la
27
28 gnunet_set_profiler_SOURCES = \
29  gnunet-set-profiler.c
30 gnunet_set_profiler_LDADD = \
31   $(top_builddir)/src/util/libgnunetutil.la \
32   $(top_builddir)/src/statistics/libgnunetstatistics.la \
33   libgnunetset.la \
34   $(top_builddir)/src/testing/libgnunettesting.la \
35   $(GN_LIBINTL)
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  gnunet-service-set_union_strata_estimator.c gnunet-service-set_union_strata_estimator.h \
51  gnunet-service-set_protocol.h
52 gnunet_service_set_LDADD = \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(top_builddir)/src/statistics/libgnunetstatistics.la \
55   $(top_builddir)/src/core/libgnunetcore.la \
56   $(top_builddir)/src/cadet/libgnunetcadet.la \
57   $(top_builddir)/src/block/libgnunetblock.la \
58   libgnunetset.la \
59   $(GN_LIBINTL)
60
61 libgnunetset_la_SOURCES = \
62   set_api.c set.h
63 libgnunetset_la_LIBADD = \
64   $(top_builddir)/src/util/libgnunetutil.la \
65   $(LTLIBINTL)
66 libgnunetset_la_LDFLAGS = \
67   $(GN_LIB_LDFLAGS)
68
69 if HAVE_TESTING
70 check_PROGRAMS = \
71  test_set_api \
72  test_set_union_result_symmetric \
73  test_set_intersection_result_full \
74  test_set_union_copy
75 endif
76
77 if ENABLE_TEST_RUN
78 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
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   libgnunetset.la
88
89 test_set_union_result_symmetric_SOURCES = \
90  test_set_union_result_symmetric.c
91 test_set_union_result_symmetric_LDADD = \
92   $(top_builddir)/src/util/libgnunetutil.la \
93   $(top_builddir)/src/testing/libgnunettesting.la \
94   libgnunetset.la
95
96 test_set_intersection_result_full_SOURCES = \
97  test_set_intersection_result_full.c
98 test_set_intersection_result_full_LDADD = \
99   $(top_builddir)/src/util/libgnunetutil.la \
100   $(top_builddir)/src/testing/libgnunettesting.la \
101   libgnunetset.la
102
103 test_set_union_copy_SOURCES = \
104  test_set_union_copy.c
105 test_set_union_copy_LDADD = \
106   $(top_builddir)/src/util/libgnunetutil.la \
107   $(top_builddir)/src/testing/libgnunettesting.la \
108   libgnunetset.la
109
110 EXTRA_DIST = \
111   test_set.conf