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