adding a GNUNET_memcmp_priv for constant-time comparing of data; fixes #6152 (modulo...
[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 USE_COVERAGE
5   AM_CFLAGS = --coverage
6 endif
7
8 pkgcfgdir= $(pkgdatadir)/config.d/
9
10 libexecdir= $(pkglibdir)/libexec/
11
12 plugindir = $(libdir)/gnunet
13
14 pkgcfg_DATA = \
15   regex.conf
16
17 libexec_PROGRAMS = \
18   gnunet-service-regex \
19   gnunet-daemon-regexprofiler
20
21
22 gnunet_service_regex_SOURCES =  \
23  gnunet-service-regex.c
24 gnunet_service_regex_LDADD =  -lm \
25  libgnunetregex_internal.a \
26  libgnunetregexblock.la \
27  $(top_builddir)/src/dht/libgnunetdht.la \
28  $(top_builddir)/src/statistics/libgnunetstatistics.la \
29  $(top_builddir)/src/util/libgnunetutil.la \
30  $(GN_LIBINTL)
31
32 noinst_LIBRARIES = \
33   libgnunetregex_internal.a \
34   libgnunetregextest.a
35
36 lib_LTLIBRARIES = \
37   libgnunetregexblock.la \
38   libgnunetregex.la
39
40
41 libgnunetregexblock_la_SOURCES = \
42   regex_block_lib.c regex_block_lib.h
43 libgnunetregexblock_la_LIBADD = \
44   $(top_builddir)/src/util/libgnunetutil.la \
45   $(XLIB) \
46   $(LTLIBINTL)
47 libgnunetregexblock_la_LDFLAGS = \
48   $(GN_LIB_LDFLAGS)  \
49   -version-info 1:0:0
50
51
52 libgnunetregex_internal_a_SOURCES = \
53   regex_internal_lib.h \
54   regex_internal.h regex_internal.c \
55   regex_internal_dht.c
56 libgnunetregex_internal_a_DEPENDENCIES = \
57   libgnunetregexblock.la
58
59
60 libgnunetregex_la_SOURCES = \
61   regex_api_announce.c \
62   regex_api_search.c \
63   regex_ipc.h
64 libgnunetregex_la_LIBADD = \
65   $(top_builddir)/src/util/libgnunetutil.la
66 libgnunetregex_la_LDFLAGS = \
67   $(GN_LIBINTL) \
68   $(GN_LIB_LDFLAGS) \
69    -version-info 3:1:0
70
71
72 plugin_LTLIBRARIES = \
73  libgnunet_plugin_block_regex.la
74
75 libgnunet_plugin_block_regex_la_SOURCES = \
76  plugin_block_regex.c
77 libgnunet_plugin_block_regex_la_LIBADD = \
78  libgnunetregexblock.la \
79  $(top_builddir)/src/block/libgnunetblock.la \
80  $(top_builddir)/src/block/libgnunetblockgroup.la \
81  $(top_builddir)/src/util/libgnunetutil.la
82 libgnunet_plugin_block_regex_la_LDFLAGS = \
83  $(GN_LIBINTL) \
84  $(GN_PLUGIN_LDFLAGS)
85
86 if HAVE_MYSQL
87 noinst_mysql_progs = \
88   gnunet-regex-simulation-profiler
89
90 gnunet_regex_simulation_profiler_SOURCES = \
91   gnunet-regex-simulation-profiler.c
92 gnunet_regex_simulation_profiler_LDADD = \
93   $(top_builddir)/src/util/libgnunetutil.la \
94   libgnunetregex_internal.a \
95   $(top_builddir)/src/dht/libgnunetdht.la \
96   $(top_builddir)/src/my/libgnunetmy.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 perf_regex_LDFLAGS = \
123   $(GN_LIBINTL)
124
125 gnunet_regex_profiler_SOURCES = \
126   gnunet-regex-profiler.c
127 gnunet_regex_profiler_LDADD = -lm \
128   $(top_builddir)/src/arm/libgnunetarm.la \
129   $(top_builddir)/src/testbed/libgnunettestbed.la \
130   libgnunetregex_internal.a \
131   $(top_builddir)/src/dht/libgnunetdht.la \
132   libgnunetregexblock.la \
133   libgnunetregextest.a \
134   $(top_builddir)/src/statistics/libgnunetstatistics.la \
135   $(top_builddir)/src/util/libgnunetutil.la
136 gnunet_regex_profiler_LDFLAGS = \
137   $(GN_LIBINTL)
138
139 gnunet_daemon_regexprofiler_SOURCES = \
140   gnunet-daemon-regexprofiler.c
141 gnunet_daemon_regexprofiler_LDADD = -lm \
142   libgnunetregex_internal.a \
143   $(top_builddir)/src/dht/libgnunetdht.la \
144   libgnunetregexblock.la \
145   libgnunetregextest.a \
146   $(top_builddir)/src/statistics/libgnunetstatistics.la \
147   $(top_builddir)/src/util/libgnunetutil.la
148 gnunet_daemon_regexprofiler_LDFLAGS = \
149   $(GN_LIBINTL)
150
151 check_PROGRAMS = \
152   test_regex_integration \
153   test_regex_eval_api \
154   test_regex_iterate_api \
155   test_regex_proofs \
156   test_regex_graph_api \
157   test_regex_api
158
159 if ENABLE_TEST_RUN
160  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
161  TESTS = $(check_PROGRAMS)
162 endif
163
164 test_regex_eval_api_SOURCES = \
165   test_regex_eval_api.c
166 test_regex_eval_api_LDADD = -lm \
167   libgnunetregex_internal.a \
168   $(top_builddir)/src/dht/libgnunetdht.la \
169   libgnunetregextest.a \
170   libgnunetregexblock.la \
171   $(top_builddir)/src/util/libgnunetutil.la
172
173 test_regex_integration_SOURCES = \
174   test_regex_integration.c
175 test_regex_integration_LDADD = -lm \
176   libgnunetregex.la \
177   $(top_builddir)/src/testing/libgnunettesting.la \
178   $(top_builddir)/src/util/libgnunetutil.la
179
180 test_regex_api_SOURCES = \
181   test_regex_api.c
182 test_regex_api_LDADD = -lm \
183   libgnunetregex.la \
184   $(top_builddir)/src/testing/libgnunettesting.la \
185   $(top_builddir)/src/util/libgnunetutil.la
186
187 test_regex_iterate_api_SOURCES = \
188   test_regex_iterate_api.c
189 test_regex_iterate_api_LDADD = -lm \
190   libgnunetregex_internal.a \
191   libgnunetregexblock.la \
192   $(top_builddir)/src/dht/libgnunetdht.la \
193   $(top_builddir)/src/util/libgnunetutil.la
194
195 test_regex_proofs_SOURCES = \
196   test_regex_proofs.c
197 test_regex_proofs_LDADD = -lm \
198   libgnunetregex_internal.a \
199   $(top_builddir)/src/dht/libgnunetdht.la \
200   libgnunetregextest.a \
201   libgnunetregexblock.la \
202   $(top_builddir)/src/util/libgnunetutil.la
203
204 test_regex_graph_api_SOURCES = \
205   test_regex_graph_api.c
206 test_regex_graph_api_LDADD = -lm \
207   libgnunetregex_internal.a \
208   $(top_builddir)/src/dht/libgnunetdht.la \
209   libgnunetregextest.a \
210   libgnunetregexblock.la \
211   $(top_builddir)/src/util/libgnunetutil.la
212
213
214 EXTRA_DIST = \
215   regex_simulation_profiler_test.conf \
216   test_regex_api_data.conf