migrate first half of regex API to MQ lib
[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_announce.c \
66   regex_api_search.c \
67   regex_ipc.h
68 libgnunetregex_la_LIBADD = \
69   $(top_builddir)/src/util/libgnunetutil.la
70 libgnunetregex_la_LDFLAGS = \
71   $(GN_LIB_LDFLAGS) \
72    -version-info 3:1:0
73
74
75 plugin_LTLIBRARIES = \
76  libgnunet_plugin_block_regex.la
77
78 libgnunet_plugin_block_regex_la_SOURCES = \
79  plugin_block_regex.c
80 libgnunet_plugin_block_regex_la_LIBADD = \
81  libgnunetregexblock.la \
82  $(top_builddir)/src/block/libgnunetblock.la \
83  $(top_builddir)/src/util/libgnunetutil.la
84 libgnunet_plugin_block_regex_la_LDFLAGS = \
85  $(GN_PLUGIN_LDFLAGS)
86
87 if HAVE_MYSQL
88 noinst_mysql_progs = \
89   gnunet-regex-simulation-profiler
90
91 gnunet_regex_simulation_profiler_SOURCES = \
92   gnunet-regex-simulation-profiler.c
93 gnunet_regex_simulation_profiler_LDADD = \
94   $(top_builddir)/src/util/libgnunetutil.la \
95   libgnunetregex_internal.a \
96   $(top_builddir)/src/dht/libgnunetdht.la \
97   $(top_builddir)/src/mysql/libgnunetmysql.la
98 endif
99
100 libgnunetregextest_a_SOURCES = \
101   regex_test_lib.c regex_test_lib.h \
102   regex_test_graph.c \
103   regex_test_random.c
104 libgnunetregextest_a_LIBADD = \
105  $(top_builddir)/src/util/libgnunetutil.la \
106  libgnunetregex_internal.a
107
108 if HAVE_TESTING
109 noinst_PROGRAMS = $(noinst_mysql_progs) \
110   perf-regex \
111   gnunet-regex-profiler
112 endif
113
114 perf_regex_SOURCES = \
115   perf-regex.c
116 perf_regex_LDADD = -lm \
117   libgnunetregex_internal.a \
118   $(top_builddir)/src/dht/libgnunetdht.la \
119   libgnunetregexblock.la \
120   libgnunetregextest.a \
121   $(top_builddir)/src/util/libgnunetutil.la
122
123 gnunet_regex_profiler_SOURCES = \
124   gnunet-regex-profiler.c
125 gnunet_regex_profiler_LDADD = -lm \
126   $(top_builddir)/src/arm/libgnunetarm.la \
127   $(top_builddir)/src/testbed/libgnunettestbed.la \
128   libgnunetregex_internal.a \
129   $(top_builddir)/src/dht/libgnunetdht.la \
130   libgnunetregexblock.la \
131   libgnunetregextest.a \
132   $(top_builddir)/src/statistics/libgnunetstatistics.la \
133   $(top_builddir)/src/util/libgnunetutil.la
134
135 gnunet_daemon_regexprofiler_SOURCES = \
136   gnunet-daemon-regexprofiler.c
137 gnunet_daemon_regexprofiler_LDADD = -lm \
138   libgnunetregex_internal.a \
139   $(top_builddir)/src/dht/libgnunetdht.la \
140   libgnunetregexblock.la \
141   libgnunetregextest.a \
142   $(top_builddir)/src/statistics/libgnunetstatistics.la \
143   $(top_builddir)/src/util/libgnunetutil.la
144
145 check_PROGRAMS = \
146   test_regex_integration \
147   test_regex_eval_api \
148   test_regex_iterate_api \
149   test_regex_proofs \
150   test_regex_graph_api \
151   test_regex_api
152
153 if ENABLE_TEST_RUN
154  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
155  TESTS = $(check_PROGRAMS)
156 endif
157
158 test_regex_eval_api_SOURCES = \
159   test_regex_eval_api.c
160 test_regex_eval_api_LDADD = -lm \
161   libgnunetregex_internal.a \
162   $(top_builddir)/src/dht/libgnunetdht.la \
163   libgnunetregextest.a \
164   libgnunetregexblock.la \
165   $(top_builddir)/src/util/libgnunetutil.la
166
167 test_regex_integration_SOURCES = \
168   test_regex_integration.c
169 test_regex_integration_LDADD = -lm \
170   libgnunetregex.la \
171   $(top_builddir)/src/testing/libgnunettesting.la \
172   $(top_builddir)/src/tun/libgnunettun.la \
173   $(top_builddir)/src/util/libgnunetutil.la
174
175 test_regex_api_SOURCES = \
176   test_regex_api.c
177 test_regex_api_LDADD = -lm \
178   libgnunetregex.la \
179   $(top_builddir)/src/testing/libgnunettesting.la \
180   $(top_builddir)/src/util/libgnunetutil.la
181
182 test_regex_iterate_api_SOURCES = \
183   test_regex_iterate_api.c
184 test_regex_iterate_api_LDADD = -lm \
185   libgnunetregex_internal.a \
186   libgnunetregexblock.la \
187   $(top_builddir)/src/dht/libgnunetdht.la \
188   $(top_builddir)/src/util/libgnunetutil.la
189
190 test_regex_proofs_SOURCES = \
191   test_regex_proofs.c
192 test_regex_proofs_LDADD = -lm \
193   libgnunetregex_internal.a \
194   $(top_builddir)/src/dht/libgnunetdht.la \
195   libgnunetregextest.a \
196   libgnunetregexblock.la \
197   $(top_builddir)/src/util/libgnunetutil.la
198
199 test_regex_graph_api_SOURCES = \
200   test_regex_graph_api.c
201 test_regex_graph_api_LDADD = -lm \
202   libgnunetregex_internal.a \
203   $(top_builddir)/src/dht/libgnunetdht.la \
204   libgnunetregextest.a \
205   libgnunetregexblock.la \
206   $(top_builddir)/src/util/libgnunetutil.la
207
208
209 EXTRA_DIST = \
210   regex_simulation_profiler_test.conf \
211   test_regex_api_data.conf