- replace deprecated INCLUDES with AM_CPPFLAGS
[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  ibf.c \
49  strata_estimator.c
50 gnunet_service_set_LDADD = \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(top_builddir)/src/core/libgnunetcore.la \
53   $(top_builddir)/src/mesh/libgnunetmesh.la \
54   $(GN_LIBINTL)
55
56 libgnunetset_la_SOURCES = \
57   set_api.c
58 libgnunetset_la_LIBADD = \
59   $(top_builddir)/src/util/libgnunetutil.la \
60   $(LTLIBINTL)
61 libgnunetset_la_LDFLAGS = \
62   $(GN_LIB_LDFLAGS)
63
64 if HAVE_TESTING
65 check_PROGRAMS = \
66  test_set_api 
67 endif
68
69 if ENABLE_TEST_RUN
70 TESTS = $(check_PROGRAMS)
71 endif
72
73 test_set_api_SOURCES = \
74  test_set_api.c
75 test_set_api_LDADD = \
76   $(top_builddir)/src/util/libgnunetutil.la \
77   $(top_builddir)/src/testing/libgnunettesting.la \
78   $(top_builddir)/src/set/libgnunetset.la
79 test_set_api_DEPENDENCIES = \
80   libgnunetset.la
81
82 EXTRA_DIST = \
83   test_set.conf
84