124818ce4a74e5240d2c3f375602c838f84d3580
[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 = $(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   $(top_builddir)/src/set/libgnunetset.la
82 test_set_api_DEPENDENCIES = \
83   libgnunetset.la
84
85 test_set_union_result_full_SOURCES = \
86  test_set_union_result_full.c
87 test_set_union_result_full_LDADD = \
88   $(top_builddir)/src/util/libgnunetutil.la \
89   $(top_builddir)/src/testing/libgnunettesting.la \
90   $(top_builddir)/src/set/libgnunetset.la
91 test_set_union_result_full_DEPENDENCIES = \
92   libgnunetset.la
93
94 EXTRA_DIST = \
95   test_set.conf
96