bda512be697a8117c2a2591976839b13ae1cd0e3
[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   $(GN_LIBINTL)
57
58 libgnunetset_la_SOURCES = \
59   set_api.c set.h
60 libgnunetset_la_LIBADD = \
61   $(top_builddir)/src/util/libgnunetutil.la \
62   $(LTLIBINTL)
63 libgnunetset_la_LDFLAGS = \
64   $(GN_LIB_LDFLAGS)
65
66 if HAVE_TESTING
67 check_PROGRAMS = \
68  test_set_api test_set_union_result_full test_set_intersection_result_full
69 endif
70
71 if ENABLE_TEST_RUN
72 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
73 TESTS = $(check_PROGRAMS)
74 endif
75
76 test_set_api_SOURCES = \
77  test_set_api.c
78 test_set_api_LDADD = \
79   $(top_builddir)/src/util/libgnunetutil.la \
80   $(top_builddir)/src/testing/libgnunettesting.la \
81   libgnunetset.la
82
83 test_set_union_result_full_SOURCES = \
84  test_set_union_result_full.c
85 test_set_union_result_full_LDADD = \
86   $(top_builddir)/src/util/libgnunetutil.la \
87   $(top_builddir)/src/testing/libgnunettesting.la \
88   libgnunetset.la
89
90 test_set_intersection_result_full_SOURCES = \
91  test_set_intersection_result_full.c
92 test_set_intersection_result_full_LDADD = \
93   $(top_builddir)/src/util/libgnunetutil.la \
94   $(top_builddir)/src/testing/libgnunettesting.la \
95   libgnunetset.la
96
97 EXTRA_DIST = \
98   test_set.conf
99