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