include element type in hash
[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   libgnunetset.la \
33   $(top_builddir)/src/testing/libgnunettesting.la \
34   $(GN_LIBINTL)
35
36
37 gnunet_set_ibf_profiler_SOURCES = \
38  gnunet-set-ibf-profiler.c \
39  ibf.c
40 gnunet_set_ibf_profiler_LDADD = \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(GN_LIBINTL)
43
44 gnunet_service_set_SOURCES = \
45  gnunet-service-set.c gnunet-service-set.h \
46  gnunet-service-set_union.c \
47  gnunet-service-set_intersection.c \
48  ibf.c ibf.h \
49  gnunet-service-set_union_strata_estimator.c gnunet-service-set_union_strata_estimator.h \
50  gnunet-service-set_protocol.h
51 gnunet_service_set_LDADD = \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(top_builddir)/src/core/libgnunetcore.la \
54   $(top_builddir)/src/cadet/libgnunetcadet.la \
55   $(top_builddir)/src/block/libgnunetblock.la \
56   $(top_builddir)/src/set/libgnunetset.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 \
70  test_set_union_result_symmetric \
71  test_set_intersection_result_full \
72  test_set_union_copy
73 endif
74
75 if ENABLE_TEST_RUN
76 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
77 TESTS = $(check_PROGRAMS)
78 endif
79
80 test_set_api_SOURCES = \
81  test_set_api.c
82 test_set_api_LDADD = \
83   $(top_builddir)/src/util/libgnunetutil.la \
84   $(top_builddir)/src/testing/libgnunettesting.la \
85   libgnunetset.la
86
87 test_set_union_result_symmetric_SOURCES = \
88  test_set_union_result_symmetric.c
89 test_set_union_result_symmetric_LDADD = \
90   $(top_builddir)/src/util/libgnunetutil.la \
91   $(top_builddir)/src/testing/libgnunettesting.la \
92   libgnunetset.la
93
94 test_set_intersection_result_full_SOURCES = \
95  test_set_intersection_result_full.c
96 test_set_intersection_result_full_LDADD = \
97   $(top_builddir)/src/util/libgnunetutil.la \
98   $(top_builddir)/src/testing/libgnunettesting.la \
99   libgnunetset.la
100
101 test_set_union_copy_SOURCES = \
102  test_set_union_copy.c
103 test_set_union_copy_LDADD = \
104   $(top_builddir)/src/util/libgnunetutil.la \
105   $(top_builddir)/src/testing/libgnunettesting.la \
106   libgnunetset.la
107
108 EXTRA_DIST = \
109   test_set.conf