- moved MQ to util
[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
20
21 libexec_PROGRAMS = \
22  gnunet-service-set
23
24 lib_LTLIBRARIES = \
25   libgnunetset.la
26
27 gnunet_set_SOURCES = \
28  gnunet-set.c
29 gnunet_set_LDADD = \
30   $(top_builddir)/src/util/libgnunetutil.la \
31   $(top_builddir)/src/set/libgnunetset.la \
32   $(top_builddir)/src/stream/libgnunetstream.la \
33   $(top_builddir)/src/testbed/libgnunettestbed.la \
34   $(GN_LIBINTL)
35 gnunet_set_DEPENDENCIES = \
36   libgnunetset.la
37
38 gnunet_service_set_SOURCES = \
39  gnunet-service-set.c \
40  gnunet-service-set_union.c \
41  ibf.c \
42  strata_estimator.c
43 gnunet_service_set_LDADD = \
44   $(top_builddir)/src/util/libgnunetutil.la \
45   $(top_builddir)/src/core/libgnunetcore.la \
46   $(top_builddir)/src/stream/libgnunetstream.la \
47   $(top_builddir)/src/mesh/libgnunetmesh.la \
48   $(GN_LIBINTL)
49
50 libgnunetset_la_SOURCES = \
51   set_api.c
52 libgnunetset_la_LIBADD = \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(top_builddir)/src/stream/libgnunetstream.la \
55   $(LTLIBINTL)
56 libgnunetset_la_LDFLAGS = \
57   $(GN_LIB_LDFLAGS)
58
59 check_PROGRAMS = \
60  test_set_api test_mq test_mq_client
61
62 if ENABLE_TEST_RUN
63 TESTS = $(check_PROGRAMS)
64 endif
65
66 test_set_api_SOURCES = \
67  test_set_api.c
68 test_set_api_LDADD = \
69   $(top_builddir)/src/util/libgnunetutil.la \
70   $(top_builddir)/src/testing/libgnunettesting.la \
71   $(top_builddir)/src/set/libgnunetset.la
72 test_set_api_DEPENDENCIES = \
73   libgnunetset.la
74
75 EXTRA_DIST = \
76   test_set.conf
77