-fix
[oweals/gnunet.git] / src / regex / Makefile.am
1 AM_CPPFLAGS = -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   libgnunetregex.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 libgnunetregex_la_SOURCES = \
64   regex_api.c regex_ipc.h
65 libgnunetregex_la_LIBADD = \
66   $(top_builddir)/src/util/libgnunetutil.la 
67 libgnunetregex_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/dht/libgnunetdht.la \
96   $(top_builddir)/src/mysql/libgnunetmysql.la
97 gnunet_regex_simulation_profiler_DEPENDENCIES = \
98   libgnunetregex_internal.a
99 endif
100
101 libgnunetregextest_a_SOURCES = \
102   regex_test_lib.c regex_test_lib.h \
103   regex_test_graph.c \
104   regex_test_random.c 
105 libgnunetregextest_a_LIBADD = \
106  $(top_builddir)/src/util/libgnunetutil.la \
107  $(top_builddir)/src/regex/libgnunetregex_internal.a
108 libgnunetregextest_a_DEPENDENCIES = \
109   libgnunetregex_internal.a
110
111 if HAVE_TESTING
112 noinst_PROGRAMS = $(noinst_mysql_progs) \
113   perf-regex \
114   gnunet-regex-profiler \
115   gnunet-daemon-regexprofiler
116 endif
117
118 perf_regex_SOURCES = \
119   perf-regex.c
120 perf_regex_LDADD = -lm \
121   $(top_builddir)/src/regex/libgnunetregex_internal.a \
122   $(top_builddir)/src/dht/libgnunetdht.la \
123   $(top_builddir)/src/regex/libgnunetregexblock.la \
124   $(top_builddir)/src/regex/libgnunetregextest.a \
125   $(top_builddir)/src/util/libgnunetutil.la 
126 perf_regex_DEPENDENCIES = \
127   libgnunetregex_internal.a \
128   libgnunetregextest.a
129
130 gnunet_regex_profiler_SOURCES = \
131   gnunet-regex-profiler.c
132 gnunet_regex_profiler_LDADD = -lm \
133   $(top_builddir)/src/arm/libgnunetarm.la \
134   $(top_builddir)/src/testbed/libgnunettestbed.la \
135   $(top_builddir)/src/regex/libgnunetregex_internal.a \
136   $(top_builddir)/src/dht/libgnunetdht.la \
137   $(top_builddir)/src/regex/libgnunetregexblock.la \
138   $(top_builddir)/src/regex/libgnunetregextest.a \
139   $(top_builddir)/src/statistics/libgnunetstatistics.la \
140   $(top_builddir)/src/util/libgnunetutil.la 
141 gnunet_regex_profiler_DEPENDENCIES = \
142   $(top_builddir)/src/arm/libgnunetarm.la \
143   $(top_builddir)/src/dht/libgnunetdht.la \
144   libgnunetregex_internal.a \
145   libgnunetregextest.a
146
147
148 gnunet_daemon_regexprofiler_SOURCES = \
149   gnunet-daemon-regexprofiler.c
150 gnunet_daemon_regexprofiler_LDADD = -lm \
151   $(top_builddir)/src/regex/libgnunetregex_internal.a \
152   $(top_builddir)/src/dht/libgnunetdht.la \
153   $(top_builddir)/src/regex/libgnunetregexblock.la \
154   $(top_builddir)/src/regex/libgnunetregextest.a \
155   $(top_builddir)/src/statistics/libgnunetstatistics.la \
156   $(top_builddir)/src/util/libgnunetutil.la 
157 gnunet_daemon_regexprofiler_DEPENDENCIES = \
158   $(top_builddir)/src/dht/libgnunetdht.la \
159   libgnunetregextest.a \
160   libgnunetregex_internal.a
161
162
163
164 check_PROGRAMS = \
165   test_regex_eval_api \
166   test_regex_iterate_api \
167   test_regex_proofs \
168   test_regex_graph_api \
169   test_regex_api
170
171 if ENABLE_TEST_RUN
172  TESTS = $(check_PROGRAMS)
173 endif
174
175 test_regex_eval_api_SOURCES = \
176   test_regex_eval_api.c
177 test_regex_eval_api_LDADD = -lm \
178   $(top_builddir)/src/regex/libgnunetregex_internal.a \
179   $(top_builddir)/src/dht/libgnunetdht.la \
180   $(top_builddir)/src/regex/libgnunetregextest.a \
181   $(top_builddir)/src/regex/libgnunetregexblock.la \
182   $(top_builddir)/src/util/libgnunetutil.la
183
184 test_regex_api_SOURCES = \
185   test_regex_api.c
186 test_regex_api_LDADD = -lm \
187   $(top_builddir)/src/regex/libgnunetregex.la \
188   $(top_builddir)/src/testing/libgnunettesting.la \
189   $(top_builddir)/src/util/libgnunetutil.la
190
191 test_regex_iterate_api_SOURCES = \
192   test_regex_iterate_api.c
193 test_regex_iterate_api_LDADD = -lm \
194   $(top_builddir)/src/regex/libgnunetregex_internal.a \
195   $(top_builddir)/src/regex/libgnunetregexblock.la \
196   $(top_builddir)/src/dht/libgnunetdht.la \
197   $(top_builddir)/src/util/libgnunetutil.la
198
199 test_regex_proofs_SOURCES = \
200   test_regex_proofs.c
201 test_regex_proofs_LDADD = -lm \
202   $(top_builddir)/src/regex/libgnunetregex_internal.a \
203   $(top_builddir)/src/dht/libgnunetdht.la \
204   $(top_builddir)/src/regex/libgnunetregextest.a \
205   $(top_builddir)/src/regex/libgnunetregexblock.la \
206   $(top_builddir)/src/util/libgnunetutil.la
207
208 test_regex_graph_api_SOURCES = \
209   test_regex_graph_api.c
210 test_regex_graph_api_LDADD = -lm \
211   $(top_builddir)/src/regex/libgnunetregex_internal.a \
212   $(top_builddir)/src/dht/libgnunetdht.la \
213   $(top_builddir)/src/regex/libgnunetregextest.a \
214   $(top_builddir)/src/regex/libgnunetregexblock.la \
215   $(top_builddir)/src/util/libgnunetutil.la
216
217
218 EXTRA_DIST = \
219   regex_simulation_profiler_test.conf \
220   test_regex_api_data.conf