global reindent, now with uncrustify hook enabled
[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) $(WINFLAGS) \
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_LIB_LDFLAGS) \
68    -version-info 3:1:0
69
70
71 plugin_LTLIBRARIES = \
72  libgnunet_plugin_block_regex.la
73
74 libgnunet_plugin_block_regex_la_SOURCES = \
75  plugin_block_regex.c
76 libgnunet_plugin_block_regex_la_LIBADD = \
77  libgnunetregexblock.la \
78  $(top_builddir)/src/block/libgnunetblock.la \
79  $(top_builddir)/src/block/libgnunetblockgroup.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/my/libgnunetmy.la \
95   $(top_builddir)/src/mysql/libgnunetmysql.la
96 endif
97
98 libgnunetregextest_a_SOURCES = \
99   regex_test_lib.c regex_test_lib.h \
100   regex_test_graph.c \
101   regex_test_random.c
102 libgnunetregextest_a_LIBADD = \
103  $(top_builddir)/src/util/libgnunetutil.la \
104  libgnunetregex_internal.a
105
106 if HAVE_TESTING
107 noinst_PROGRAMS = $(noinst_mysql_progs) \
108   perf-regex \
109   gnunet-regex-profiler
110 endif
111
112 perf_regex_SOURCES = \
113   perf-regex.c
114 perf_regex_LDADD = -lm \
115   libgnunetregex_internal.a \
116   $(top_builddir)/src/dht/libgnunetdht.la \
117   libgnunetregexblock.la \
118   libgnunetregextest.a \
119   $(top_builddir)/src/util/libgnunetutil.la
120
121 gnunet_regex_profiler_SOURCES = \
122   gnunet-regex-profiler.c
123 gnunet_regex_profiler_LDADD = -lm \
124   $(top_builddir)/src/arm/libgnunetarm.la \
125   $(top_builddir)/src/testbed/libgnunettestbed.la \
126   libgnunetregex_internal.a \
127   $(top_builddir)/src/dht/libgnunetdht.la \
128   libgnunetregexblock.la \
129   libgnunetregextest.a \
130   $(top_builddir)/src/statistics/libgnunetstatistics.la \
131   $(top_builddir)/src/util/libgnunetutil.la
132
133 gnunet_daemon_regexprofiler_SOURCES = \
134   gnunet-daemon-regexprofiler.c
135 gnunet_daemon_regexprofiler_LDADD = -lm \
136   libgnunetregex_internal.a \
137   $(top_builddir)/src/dht/libgnunetdht.la \
138   libgnunetregexblock.la \
139   libgnunetregextest.a \
140   $(top_builddir)/src/statistics/libgnunetstatistics.la \
141   $(top_builddir)/src/util/libgnunetutil.la
142
143 check_PROGRAMS = \
144   test_regex_integration \
145   test_regex_eval_api \
146   test_regex_iterate_api \
147   test_regex_proofs \
148   test_regex_graph_api \
149   test_regex_api
150
151 if ENABLE_TEST_RUN
152  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
153  TESTS = $(check_PROGRAMS)
154 endif
155
156 test_regex_eval_api_SOURCES = \
157   test_regex_eval_api.c
158 test_regex_eval_api_LDADD = -lm \
159   libgnunetregex_internal.a \
160   $(top_builddir)/src/dht/libgnunetdht.la \
161   libgnunetregextest.a \
162   libgnunetregexblock.la \
163   $(top_builddir)/src/util/libgnunetutil.la
164
165 test_regex_integration_SOURCES = \
166   test_regex_integration.c
167 test_regex_integration_LDADD = -lm \
168   libgnunetregex.la \
169   $(top_builddir)/src/testing/libgnunettesting.la \
170   $(top_builddir)/src/util/libgnunetutil.la
171
172 test_regex_api_SOURCES = \
173   test_regex_api.c
174 test_regex_api_LDADD = -lm \
175   libgnunetregex.la \
176   $(top_builddir)/src/testing/libgnunettesting.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   libgnunetregex_internal.a \
183   libgnunetregexblock.la \
184   $(top_builddir)/src/dht/libgnunetdht.la \
185   $(top_builddir)/src/util/libgnunetutil.la
186
187 test_regex_proofs_SOURCES = \
188   test_regex_proofs.c
189 test_regex_proofs_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 test_regex_graph_api_SOURCES = \
197   test_regex_graph_api.c
198 test_regex_graph_api_LDADD = -lm \
199   libgnunetregex_internal.a \
200   $(top_builddir)/src/dht/libgnunetdht.la \
201   libgnunetregextest.a \
202   libgnunetregexblock.la \
203   $(top_builddir)/src/util/libgnunetutil.la
204
205
206 EXTRA_DIST = \
207   regex_simulation_profiler_test.conf \
208   test_regex_api_data.conf