-doxygen fixes
[oweals/gnunet.git] / src / regex / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if MINGW
5   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage
10 endif
11
12 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 libexecdir= $(pkglibdir)/libexec/
15
16 plugindir = $(libdir)/gnunet
17
18 pkgcfg_DATA = \
19   regex.conf
20
21 libexec_PROGRAMS = \
22   gnunet-service-regex \
23   gnunet-daemon-regexprofiler
24
25
26 gnunet_service_regex_SOURCES =  \
27  gnunet-service-regex.c
28 gnunet_service_regex_LDADD =  -lm \
29  libgnunetregex_internal.a \
30  libgnunetregexblock.la \
31  $(top_builddir)/src/dht/libgnunetdht.la \
32  $(top_builddir)/src/statistics/libgnunetstatistics.la \
33  $(top_builddir)/src/util/libgnunetutil.la \
34  $(GN_LIBINTL)
35
36 noinst_LIBRARIES = \
37   libgnunetregex_internal.a \
38   libgnunetregextest.a
39
40 lib_LTLIBRARIES = \
41   libgnunetregexblock.la \
42   libgnunetregex.la
43
44
45 libgnunetregexblock_la_SOURCES = \
46   regex_block_lib.c regex_block_lib.h
47 libgnunetregexblock_la_LIBADD = \
48   $(top_builddir)/src/util/libgnunetutil.la \
49   $(XLIB) \
50   $(LTLIBINTL)
51 libgnunetregexblock_la_LDFLAGS = \
52   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
53   -version-info 1:0:0
54
55
56 libgnunetregex_internal_a_SOURCES = \
57   regex_internal_lib.h \
58   regex_internal.h regex_internal.c \
59   regex_internal_dht.c
60 libgnunetregex_internal_a_DEPENDENCIES = \
61   libgnunetregexblock.la
62
63
64 libgnunetregex_la_SOURCES = \
65   regex_api.c regex_ipc.h
66 libgnunetregex_la_LIBADD = \
67   $(top_builddir)/src/util/libgnunetutil.la
68 libgnunetregex_la_LDFLAGS = \
69   $(GN_LIB_LDFLAGS) \
70    -version-info 3:1:0
71
72
73 plugin_LTLIBRARIES = \
74  libgnunet_plugin_block_regex.la
75
76 libgnunet_plugin_block_regex_la_SOURCES = \
77  plugin_block_regex.c
78 libgnunet_plugin_block_regex_la_LIBADD = \
79  libgnunetregexblock.la \
80  $(top_builddir)/src/block/libgnunetblock.la \
81  $(top_builddir)/src/util/libgnunetutil.la
82 libgnunet_plugin_block_regex_la_LDFLAGS = \
83  $(GN_PLUGIN_LDFLAGS)
84
85 if HAVE_MYSQL
86 noinst_mysql_progs = \
87   gnunet-regex-simulation-profiler
88
89 gnunet_regex_simulation_profiler_SOURCES = \
90   gnunet-regex-simulation-profiler.c
91 gnunet_regex_simulation_profiler_LDADD = \
92   $(top_builddir)/src/util/libgnunetutil.la \
93   libgnunetregex_internal.a \
94   $(top_builddir)/src/dht/libgnunetdht.la \
95   $(top_builddir)/src/mysql/libgnunetmysql.la
96 endif
97
98 libgnunetregextest_a_SOURCES = \
99   regex_test_lib.c regex_test_lib.h \
100   regex_test_graph.c \
101   regex_test_random.c
102 libgnunetregextest_a_LIBADD = \
103  $(top_builddir)/src/util/libgnunetutil.la \
104  libgnunetregex_internal.a
105
106 if HAVE_TESTING
107 noinst_PROGRAMS = $(noinst_mysql_progs) \
108   perf-regex \
109   gnunet-regex-profiler
110 endif
111
112 perf_regex_SOURCES = \
113   perf-regex.c
114 perf_regex_LDADD = -lm \
115   libgnunetregex_internal.a \
116   $(top_builddir)/src/dht/libgnunetdht.la \
117   libgnunetregexblock.la \
118   libgnunetregextest.a \
119   $(top_builddir)/src/util/libgnunetutil.la
120
121 gnunet_regex_profiler_SOURCES = \
122   gnunet-regex-profiler.c
123 gnunet_regex_profiler_LDADD = -lm \
124   $(top_builddir)/src/arm/libgnunetarm.la \
125   $(top_builddir)/src/testbed/libgnunettestbed.la \
126   libgnunetregex_internal.a \
127   $(top_builddir)/src/dht/libgnunetdht.la \
128   libgnunetregexblock.la \
129   libgnunetregextest.a \
130   $(top_builddir)/src/statistics/libgnunetstatistics.la \
131   $(top_builddir)/src/util/libgnunetutil.la
132
133 gnunet_daemon_regexprofiler_SOURCES = \
134   gnunet-daemon-regexprofiler.c
135 gnunet_daemon_regexprofiler_LDADD = -lm \
136   libgnunetregex_internal.a \
137   $(top_builddir)/src/dht/libgnunetdht.la \
138   libgnunetregexblock.la \
139   libgnunetregextest.a \
140   $(top_builddir)/src/statistics/libgnunetstatistics.la \
141   $(top_builddir)/src/util/libgnunetutil.la
142
143 check_PROGRAMS = \
144   test_regex_integration \
145   test_regex_eval_api \
146   test_regex_iterate_api \
147   test_regex_proofs \
148   test_regex_graph_api \
149   test_regex_api
150
151 if ENABLE_TEST_RUN
152  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
153  TESTS = $(check_PROGRAMS)
154 endif
155
156 test_regex_eval_api_SOURCES = \
157   test_regex_eval_api.c
158 test_regex_eval_api_LDADD = -lm \
159   libgnunetregex_internal.a \
160   $(top_builddir)/src/dht/libgnunetdht.la \
161   libgnunetregextest.a \
162   libgnunetregexblock.la \
163   $(top_builddir)/src/util/libgnunetutil.la
164
165 test_regex_integration_SOURCES = \
166   test_regex_integration.c
167 test_regex_integration_LDADD = -lm \
168   libgnunetregex.la \
169   $(top_builddir)/src/testing/libgnunettesting.la \
170   $(top_builddir)/src/tun/libgnunettun.la \
171   $(top_builddir)/src/util/libgnunetutil.la
172
173 test_regex_api_SOURCES = \
174   test_regex_api.c
175 test_regex_api_LDADD = -lm \
176   libgnunetregex.la \
177   $(top_builddir)/src/testing/libgnunettesting.la \
178   $(top_builddir)/src/util/libgnunetutil.la
179
180 test_regex_iterate_api_SOURCES = \
181   test_regex_iterate_api.c
182 test_regex_iterate_api_LDADD = -lm \
183   libgnunetregex_internal.a \
184   libgnunetregexblock.la \
185   $(top_builddir)/src/dht/libgnunetdht.la \
186   $(top_builddir)/src/util/libgnunetutil.la
187
188 test_regex_proofs_SOURCES = \
189   test_regex_proofs.c
190 test_regex_proofs_LDADD = -lm \
191   libgnunetregex_internal.a \
192   $(top_builddir)/src/dht/libgnunetdht.la \
193   libgnunetregextest.a \
194   libgnunetregexblock.la \
195   $(top_builddir)/src/util/libgnunetutil.la
196
197 test_regex_graph_api_SOURCES = \
198   test_regex_graph_api.c
199 test_regex_graph_api_LDADD = -lm \
200   libgnunetregex_internal.a \
201   $(top_builddir)/src/dht/libgnunetdht.la \
202   libgnunetregextest.a \
203   libgnunetregexblock.la \
204   $(top_builddir)/src/util/libgnunetutil.la
205
206
207 EXTRA_DIST = \
208   regex_simulation_profiler_test.conf \
209   test_regex_api_data.conf