c1639823edd45be2d505340c81cbba294ab1b8bf
[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  mq.c \
42  ibf.c \
43  strata_estimator.c
44 gnunet_service_set_LDADD = \
45   $(top_builddir)/src/util/libgnunetutil.la \
46   $(top_builddir)/src/core/libgnunetcore.la \
47   $(top_builddir)/src/stream/libgnunetstream.la \
48   $(top_builddir)/src/mesh/libgnunetmesh.la \
49   $(GN_LIBINTL)
50 # hack for mq.c, see automake Objects â€˜created with both libtool and without’
51 # remove once GNUNET_MQ is in util/
52 gnunet_service_set_CFLAGS = $(AM_CFLAGS)
53
54 libgnunetset_la_SOURCES = \
55   set_api.c \
56   mq.c
57 libgnunetset_la_LIBADD = \
58   $(top_builddir)/src/util/libgnunetutil.la \
59   $(top_builddir)/src/stream/libgnunetstream.la \
60   $(LTLIBINTL)
61 libgnunetset_la_LDFLAGS = \
62   $(GN_LIB_LDFLAGS)
63
64 check_PROGRAMS = \
65  test_set_api
66
67 if ENABLE_TEST_RUN
68 TESTS = $(check_PROGRAMS)
69 endif
70
71 test_set_api_SOURCES = \
72  test_set_api.c
73 test_set_api_LDADD = \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   $(top_builddir)/src/testing/libgnunettesting.la \
76   $(top_builddir)/src/set/libgnunetset.la
77 test_set_api_DEPENDENCIES = \
78   libgnunetset.la
79
80 EXTRA_DIST = \
81   test_set.conf
82