renaming symbols from libgnunetregextest to have the prefix REGEX_TEST
[oweals/gnunet.git] / src / regex / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage
9 endif
10
11 pkgcfgdir= $(pkgdatadir)/config.d/
12
13 libexecdir= $(pkglibdir)/libexec/
14
15 plugindir = $(libdir)/gnunet
16
17 pkgcfg_DATA = \
18   regex.conf
19
20 libexec_PROGRAMS = \
21   gnunet-service-regex
22
23 gnunet_service_regex_SOURCES =  \
24  gnunet-service-regex.c
25 gnunet_service_regex_LDADD =  -lm \
26  $(top_builddir)/src/regex/libgnunetregex_internal.a \
27  $(top_builddir)/src/regex/libgnunetregexblock.la \
28  $(top_builddir)/src/dht/libgnunetdht.la \
29  $(top_builddir)/src/statistics/libgnunetstatistics.la \
30  $(top_builddir)/src/util/libgnunetutil.la \
31  $(GN_LIBINTL) 
32 gnunet_service_regex_DEPENDENCIES = \
33   libgnunetregex_internal.a
34
35 noinst_LIBRARIES = \
36   libgnunetregex_internal.a \
37   libgnunetregextest.a
38
39 lib_LTLIBRARIES = \
40   libgnunetregexblock.la \
41   libgnunetregexnew.la
42
43
44 libgnunetregexblock_la_SOURCES = \
45   regex_block_lib.c regex_block_lib.h
46 libgnunetregexblock_la_LIBADD = \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(XLIB) \
49   $(LTLIBINTL)
50 libgnunetregexblock_la_LDFLAGS = \
51   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
52   -version-info 1:0:0
53
54
55 libgnunetregex_internal_a_SOURCES = \
56   regex_internal_lib.h \
57   regex_internal.h regex_internal.c \
58   regex_internal_dht.c
59 libgnunetregex_internal_a_DEPENDENCIES = \
60   libgnunetregexblock.la
61
62
63 libgnunetregexnew_la_SOURCES = \
64   regex_api.c regex_ipc.h
65 libgnunetregexnew_la_LIBADD = \
66   $(top_builddir)/src/util/libgnunetutil.la 
67 libgnunetregexnew_la_LDFLAGS = \
68   $(GN_LIB_LDFLAGS) \
69    -version-info 3:0: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  $(top_builddir)/src/regex/libgnunetregexblock.la \
79  $(top_builddir)/src/block/libgnunetblock.la \
80  $(top_builddir)/src/util/libgnunetutil.la
81 libgnunet_plugin_block_regex_la_LDFLAGS = \
82  $(GN_PLUGIN_LDFLAGS)
83 libgnunet_plugin_block_regex_la_DEPENDENCIES = \
84  libgnunetregexblock.la
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   $(top_builddir)/src/regex/libgnunetregex_internal.a \
95   $(top_builddir)/src/mysql/libgnunetmysql.la
96 gnunet_regex_simulation_profiler_DEPENDENCIES = \
97   libgnunetregex_internal.a
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  $(top_builddir)/src/regex/libgnunetregex_internal.a
107 libgnunetregextest_a_DEPENDENCIES = \
108   libgnunetregex_internal.a
109
110
111 noinst_PROGRAMS = $(noinst_mysql_progs) \
112   perf-regex \
113   gnunet-regex-profiler \
114   gnunet-daemon-regexprofiler
115
116 perf_regex_SOURCES = \
117   perf-regex.c
118 perf_regex_LDADD = -lm \
119   $(top_builddir)/src/util/libgnunetutil.la \
120   $(top_builddir)/src/regex/libgnunetregex_internal.a \
121   $(top_builddir)/src/regex/libgnunetregexblock.la \
122   $(top_builddir)/src/regex/libgnunetregextest.a
123 perf_regex_DEPENDENCIES = \
124   libgnunetregex_internal.a \
125   libgnunetregextest.a
126
127 gnunet_regex_profiler_SOURCES = \
128   gnunet-regex-profiler.c
129 gnunet_regex_profiler_LDADD = -lm \
130   $(top_builddir)/src/util/libgnunetutil.la \
131   $(top_builddir)/src/arm/libgnunetarm.la \
132   $(top_builddir)/src/dht/libgnunetdht.la \
133   $(top_builddir)/src/testbed/libgnunettestbed.la \
134   $(top_builddir)/src/regex/libgnunetregex_internal.a \
135   $(top_builddir)/src/regex/libgnunetregexblock.la \
136   $(top_builddir)/src/regex/libgnunetregextest.a \
137   $(top_builddir)/src/statistics/libgnunetstatistics.la
138 gnunet_regex_profiler_DEPENDENCIES = \
139   $(top_builddir)/src/arm/libgnunetarm.la \
140   $(top_builddir)/src/dht/libgnunetdht.la \
141   libgnunetregex_internal.a \
142   libgnunetregextest.a
143
144
145 gnunet_daemon_regexprofiler_SOURCES = \
146   gnunet-daemon-regexprofiler.c
147 gnunet_daemon_regexprofiler_LDADD = -lm \
148   $(top_builddir)/src/util/libgnunetutil.la \
149   $(top_builddir)/src/dht/libgnunetdht.la \
150   $(top_builddir)/src/regex/libgnunetregex_internal.a \
151   $(top_builddir)/src/regex/libgnunetregexblock.la \
152   $(top_builddir)/src/regex/libgnunetregextest.a \
153   $(top_builddir)/src/statistics/libgnunetstatistics.la
154 gnunet_daemon_regexprofiler_DEPENDENCIES = \
155   $(top_builddir)/src/dht/libgnunetdht.la \
156   libgnunetregextest.a \
157   libgnunetregex_internal.a
158
159
160
161 check_PROGRAMS = \
162   test_regex_eval_api \
163   test_regex_iterate_api \
164   test_regex_proofs \
165   test_regex_graph_api
166
167 if ENABLE_TEST_RUN
168  TESTS = $(check_PROGRAMS)
169 endif
170
171 test_regex_eval_api_SOURCES = \
172   test_regex_eval_api.c
173 test_regex_eval_api_LDADD = -lm \
174   $(top_builddir)/src/regex/libgnunetregex_internal.a \
175   $(top_builddir)/src/regex/libgnunetregextest.a \
176   $(top_builddir)/src/regex/libgnunetregexblock.la \
177   $(top_builddir)/src/util/libgnunetutil.la
178
179 test_regex_iterate_api_SOURCES = \
180   test_regex_iterate_api.c
181 test_regex_iterate_api_LDADD = -lm \
182   $(top_builddir)/src/regex/libgnunetregex_internal.a \
183   $(top_builddir)/src/regex/libgnunetregexblock.la \
184   $(top_builddir)/src/util/libgnunetutil.la
185
186 test_regex_proofs_SOURCES = \
187   test_regex_proofs.c
188 test_regex_proofs_LDADD = -lm \
189   $(top_builddir)/src/regex/libgnunetregex_internal.a \
190   $(top_builddir)/src/regex/libgnunetregextest.a \
191   $(top_builddir)/src/regex/libgnunetregexblock.la \
192   $(top_builddir)/src/util/libgnunetutil.la
193
194 test_regex_graph_api_SOURCES = \
195   test_regex_graph_api.c
196 test_regex_graph_api_LDADD = -lm \
197   $(top_builddir)/src/regex/libgnunetregex_internal.a \
198   $(top_builddir)/src/regex/libgnunetregextest.a \
199   $(top_builddir)/src/regex/libgnunetregexblock.la \
200   $(top_builddir)/src/util/libgnunetutil.la
201
202
203 EXTRA_DIST = \
204   regex_simulation_profiler_test.conf