move SET to use new MQ API properly
[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 if HAVE_TESTING
20 bin_PROGRAMS = \
21  gnunet-set-profiler
22
23 noinst_PROGRAMS = \
24  gnunet-set-ibf-profiler
25 endif
26
27 libexec_PROGRAMS = \
28  gnunet-service-set
29
30 lib_LTLIBRARIES = \
31   libgnunetset.la
32
33 gnunet_set_profiler_SOURCES = \
34  gnunet-set-profiler.c
35 gnunet_set_profiler_LDADD = \
36   $(top_builddir)/src/util/libgnunetutil.la \
37   $(top_builddir)/src/statistics/libgnunetstatistics.la \
38   libgnunetset.la \
39   $(top_builddir)/src/testing/libgnunettesting.la \
40   $(GN_LIBINTL)
41
42
43 gnunet_set_ibf_profiler_SOURCES = \
44  gnunet-set-ibf-profiler.c \
45  ibf.c
46 gnunet_set_ibf_profiler_LDADD = \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(GN_LIBINTL)
49
50 gnunet_service_set_SOURCES = \
51  gnunet-service-set.c gnunet-service-set.h \
52  gnunet-service-set_union.c \
53  gnunet-service-set_intersection.c \
54  ibf.c ibf.h \
55  gnunet-service-set_union_strata_estimator.c gnunet-service-set_union_strata_estimator.h \
56  gnunet-service-set_protocol.h
57 gnunet_service_set_LDADD = \
58   $(top_builddir)/src/util/libgnunetutil.la \
59   $(top_builddir)/src/statistics/libgnunetstatistics.la \
60   $(top_builddir)/src/core/libgnunetcore.la \
61   $(top_builddir)/src/cadet/libgnunetcadetnew.la \
62   $(top_builddir)/src/block/libgnunetblock.la \
63   libgnunetset.la \
64   $(GN_LIBINTL)
65
66 libgnunetset_la_SOURCES = \
67   set_api.c set.h
68 libgnunetset_la_LIBADD = \
69   $(top_builddir)/src/util/libgnunetutil.la \
70   $(LTLIBINTL)
71 libgnunetset_la_LDFLAGS = \
72   $(GN_LIB_LDFLAGS)
73
74 if HAVE_TESTING
75 check_PROGRAMS = \
76  test_set_api \
77  test_set_union_result_symmetric \
78  test_set_intersection_result_full \
79  test_set_union_copy
80 endif
81
82 if ENABLE_TEST_RUN
83 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
84 TESTS = $(check_PROGRAMS)
85 endif
86
87 test_set_api_SOURCES = \
88  test_set_api.c
89 test_set_api_LDADD = \
90   $(top_builddir)/src/util/libgnunetutil.la \
91   $(top_builddir)/src/testing/libgnunettesting.la \
92   libgnunetset.la
93
94 test_set_union_result_symmetric_SOURCES = \
95  test_set_union_result_symmetric.c
96 test_set_union_result_symmetric_LDADD = \
97   $(top_builddir)/src/util/libgnunetutil.la \
98   $(top_builddir)/src/testing/libgnunettesting.la \
99   libgnunetset.la
100
101 test_set_intersection_result_full_SOURCES = \
102  test_set_intersection_result_full.c
103 test_set_intersection_result_full_LDADD = \
104   $(top_builddir)/src/util/libgnunetutil.la \
105   $(top_builddir)/src/testing/libgnunettesting.la \
106   libgnunetset.la
107
108 test_set_union_copy_SOURCES = \
109  test_set_union_copy.c
110 test_set_union_copy_LDADD = \
111   $(top_builddir)/src/util/libgnunetutil.la \
112   $(top_builddir)/src/testing/libgnunettesting.la \
113   libgnunetset.la
114
115 EXTRA_DIST = \
116   test_set.conf