fixed duplicate tunnel creation
[oweals/gnunet.git] / src / set / Makefile.am
1 INCLUDES = -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/libgnunetmesh2.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   $(top_builddir)/src/stream/libgnunetstream.la \
61   $(LTLIBINTL)
62 libgnunetset_la_LDFLAGS = \
63   $(GN_LIB_LDFLAGS)
64
65 check_PROGRAMS = \
66  test_set_api 
67
68 if ENABLE_TEST_RUN
69 TESTS = $(check_PROGRAMS)
70 endif
71
72 test_set_api_SOURCES = \
73  test_set_api.c
74 test_set_api_LDADD = \
75   $(top_builddir)/src/util/libgnunetutil.la \
76   $(top_builddir)/src/testing/libgnunettesting.la \
77   $(top_builddir)/src/set/libgnunetset.la
78 test_set_api_DEPENDENCIES = \
79   libgnunetset.la
80
81 EXTRA_DIST = \
82   test_set.conf
83