added intersection to set's automake script
[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 \
47  gnunet-service-set_union.c \
48  gnunet-service-set_intersection.c \
49  ibf.c \
50  strata_estimator.c
51 gnunet_service_set_LDADD = \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(top_builddir)/src/core/libgnunetcore.la \
54   $(top_builddir)/src/mesh/libgnunetmesh.la \
55   $(top_builddir)/src/block/libgnunetblock.la \
56   $(GN_LIBINTL)
57
58 libgnunetset_la_SOURCES = \
59   set_api.c
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
69 endif
70
71 if ENABLE_TEST_RUN
72 TESTS = $(check_PROGRAMS)
73 endif
74
75 test_set_api_SOURCES = \
76  test_set_api.c
77 test_set_api_LDADD = \
78   $(top_builddir)/src/util/libgnunetutil.la \
79   $(top_builddir)/src/testing/libgnunettesting.la \
80   $(top_builddir)/src/set/libgnunetset.la
81 test_set_api_DEPENDENCIES = \
82   libgnunetset.la
83
84 test_set_union_result_full_SOURCES = \
85  test_set_union_result_full.c
86 test_set_union_result_full_LDADD = \
87   $(top_builddir)/src/util/libgnunetutil.la \
88   $(top_builddir)/src/testing/libgnunettesting.la \
89   $(top_builddir)/src/set/libgnunetset.la
90 test_set_union_result_full_DEPENDENCIES = \
91   libgnunetset.la
92
93 EXTRA_DIST = \
94   test_set.conf
95