-disable NSE POW during cadet tests
[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   gnunet-daemon-regexprofiler
23
24
25 gnunet_service_regex_SOURCES =  \
26  gnunet-service-regex.c
27 gnunet_service_regex_LDADD =  -lm \
28  libgnunetregex_internal.a \
29  libgnunetregexblock.la \
30  $(top_builddir)/src/dht/libgnunetdht.la \
31  $(top_builddir)/src/statistics/libgnunetstatistics.la \
32  $(top_builddir)/src/util/libgnunetutil.la \
33  $(GN_LIBINTL) 
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: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/util/libgnunetutil.la
81 libgnunet_plugin_block_regex_la_LDFLAGS = \
82  $(GN_PLUGIN_LDFLAGS)
83
84 if HAVE_MYSQL
85 noinst_mysql_progs = \
86   gnunet-regex-simulation-profiler
87
88 gnunet_regex_simulation_profiler_SOURCES = \
89   gnunet-regex-simulation-profiler.c
90 gnunet_regex_simulation_profiler_LDADD = \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   libgnunetregex_internal.a \
93   $(top_builddir)/src/dht/libgnunetdht.la \
94   $(top_builddir)/src/mysql/libgnunetmysql.la 
95 endif
96
97 libgnunetregextest_a_SOURCES = \
98   regex_test_lib.c regex_test_lib.h \
99   regex_test_graph.c \
100   regex_test_random.c 
101 libgnunetregextest_a_LIBADD = \
102  $(top_builddir)/src/util/libgnunetutil.la \
103  libgnunetregex_internal.a
104
105 if HAVE_TESTING
106 noinst_PROGRAMS = $(noinst_mysql_progs) \
107   perf-regex \
108   gnunet-regex-profiler
109 endif
110
111 perf_regex_SOURCES = \
112   perf-regex.c
113 perf_regex_LDADD = -lm \
114   libgnunetregex_internal.a \
115   $(top_builddir)/src/dht/libgnunetdht.la \
116   libgnunetregexblock.la \
117   libgnunetregextest.a \
118   $(top_builddir)/src/util/libgnunetutil.la 
119
120 gnunet_regex_profiler_SOURCES = \
121   gnunet-regex-profiler.c
122 gnunet_regex_profiler_LDADD = -lm \
123   $(top_builddir)/src/arm/libgnunetarm.la \
124   $(top_builddir)/src/testbed/libgnunettestbed.la \
125   libgnunetregex_internal.a \
126   $(top_builddir)/src/dht/libgnunetdht.la \
127   libgnunetregexblock.la \
128   libgnunetregextest.a \
129   $(top_builddir)/src/statistics/libgnunetstatistics.la \
130   $(top_builddir)/src/util/libgnunetutil.la 
131
132 gnunet_daemon_regexprofiler_SOURCES = \
133   gnunet-daemon-regexprofiler.c
134 gnunet_daemon_regexprofiler_LDADD = -lm \
135   libgnunetregex_internal.a \
136   $(top_builddir)/src/dht/libgnunetdht.la \
137   libgnunetregexblock.la \
138   libgnunetregextest.a \
139   $(top_builddir)/src/statistics/libgnunetstatistics.la \
140   $(top_builddir)/src/util/libgnunetutil.la 
141
142 check_PROGRAMS = \
143   test_regex_eval_api \
144   test_regex_iterate_api \
145   test_regex_proofs \
146   test_regex_graph_api \
147   test_regex_api
148
149 if ENABLE_TEST_RUN
150  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
151  TESTS = $(check_PROGRAMS)
152 endif
153
154 test_regex_eval_api_SOURCES = \
155   test_regex_eval_api.c
156 test_regex_eval_api_LDADD = -lm \
157   libgnunetregex_internal.a \
158   $(top_builddir)/src/dht/libgnunetdht.la \
159   libgnunetregextest.a \
160   libgnunetregexblock.la \
161   $(top_builddir)/src/util/libgnunetutil.la
162
163 test_regex_api_SOURCES = \
164   test_regex_api.c
165 test_regex_api_LDADD = -lm \
166   libgnunetregex.la \
167   $(top_builddir)/src/testing/libgnunettesting.la \
168   $(top_builddir)/src/util/libgnunetutil.la
169
170 test_regex_iterate_api_SOURCES = \
171   test_regex_iterate_api.c
172 test_regex_iterate_api_LDADD = -lm \
173   libgnunetregex_internal.a \
174   libgnunetregexblock.la \
175   $(top_builddir)/src/dht/libgnunetdht.la \
176   $(top_builddir)/src/util/libgnunetutil.la
177
178 test_regex_proofs_SOURCES = \
179   test_regex_proofs.c
180 test_regex_proofs_LDADD = -lm \
181   libgnunetregex_internal.a \
182   $(top_builddir)/src/dht/libgnunetdht.la \
183   libgnunetregextest.a \
184   libgnunetregexblock.la \
185   $(top_builddir)/src/util/libgnunetutil.la
186
187 test_regex_graph_api_SOURCES = \
188   test_regex_graph_api.c
189 test_regex_graph_api_LDADD = -lm \
190   libgnunetregex_internal.a \
191   $(top_builddir)/src/dht/libgnunetdht.la \
192   libgnunetregextest.a \
193   libgnunetregexblock.la \
194   $(top_builddir)/src/util/libgnunetutil.la
195
196
197 EXTRA_DIST = \
198   regex_simulation_profiler_test.conf \
199   test_regex_api_data.conf