34ef90ca0e4a3bc1fe92d7c12d60b6534c58145c
[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 # todo: link files from libgnunetregex statically into gnunet_service_regex,
35 # rename API prefix to avoid collision with 'libgnunetregexnew'...
36
37 noinst_LIBRARIES = \
38   libgnunetregex_internal.a \
39   libgnunetregextest.a
40
41 lib_LTLIBRARIES = \
42   libgnunetregexblock.la \
43   libgnunetregexnew.la
44
45
46 libgnunetregexblock_la_SOURCES = \
47   regex_block_lib.c regex_block_lib.h
48 libgnunetregexblock_la_LIBADD = \
49   $(top_builddir)/src/util/libgnunetutil.la \
50   $(XLIB) \
51   $(LTLIBINTL)
52 libgnunetregexblock_la_LDFLAGS = \
53   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
54   -version-info 1:0:0
55
56
57 libgnunetregex_internal_a_SOURCES = \
58   regex_internal_lib.h \
59   regex_internal.h regex_internal.c \
60   regex_internal_dht.c
61 libgnunetregex_internal_a_DEPENDENCIES = \
62   libgnunetregexblock.la
63
64
65 libgnunetregexnew_la_SOURCES = \
66   regex_api.c regex_ipc.h
67 libgnunetregexnew_la_LIBADD = \
68   $(top_builddir)/src/util/libgnunetutil.la 
69 libgnunetregexnew_la_LDFLAGS = \
70   $(GN_LIB_LDFLAGS) \
71    -version-info 3:0:0
72
73
74 plugin_LTLIBRARIES = \
75  libgnunet_plugin_block_regex.la
76
77 libgnunet_plugin_block_regex_la_SOURCES = \
78  plugin_block_regex.c
79 libgnunet_plugin_block_regex_la_LIBADD = \
80  $(top_builddir)/src/regex/libgnunetregexblock.la \
81  $(top_builddir)/src/block/libgnunetblock.la \
82  $(top_builddir)/src/util/libgnunetutil.la
83 libgnunet_plugin_block_regex_la_LDFLAGS = \
84  $(GN_PLUGIN_LDFLAGS)
85 libgnunet_plugin_block_regex_la_DEPENDENCIES = \
86  libgnunetregexblock.la
87
88 if HAVE_MYSQL
89 noinst_mysql_progs = \
90   gnunet-regex-simulation-profiler
91
92 gnunet_regex_simulation_profiler_SOURCES = \
93   gnunet-regex-simulation-profiler.c
94 gnunet_regex_simulation_profiler_LDADD = \
95   $(top_builddir)/src/util/libgnunetutil.la \
96   $(top_builddir)/src/regex/libgnunetregex_internal.a \
97   $(top_builddir)/src/mysql/libgnunetmysql.la
98 gnunet_regex_simulation_profiler_DEPENDENCIES = \
99   libgnunetregex_internal.a
100 endif
101
102 libgnunetregextest_a_SOURCES = \
103   regex_test_lib.c regex_test_lib.h \
104   regex_test_graph.c \
105   regex_test_random.c 
106 libgnunetregextest_a_LIBADD = \
107  $(top_builddir)/src/util/libgnunetutil.la \
108  $(top_builddir)/src/regex/libgnunetregex_internal.a
109 libgnunetregextest_a_DEPENDENCIES = \
110   libgnunetregex_internal.a
111
112
113 noinst_PROGRAMS = $(noinst_mysql_progs) \
114   perf-regex \
115   gnunet-regex-profiler \
116   gnunet-daemon-regexprofiler
117
118 perf_regex_SOURCES = \
119   perf-regex.c
120 perf_regex_LDADD = -lm \
121   $(top_builddir)/src/util/libgnunetutil.la \
122   $(top_builddir)/src/regex/libgnunetregex_internal.a \
123   $(top_builddir)/src/regex/libgnunetregexblock.la \
124   $(top_builddir)/src/regex/libgnunetregextest.a
125 perf_regex_DEPENDENCIES = \
126   libgnunetregex_internal.a \
127   libgnunetregextest.a
128
129 gnunet_regex_profiler_SOURCES = \
130   gnunet-regex-profiler.c
131 gnunet_regex_profiler_LDADD = -lm \
132   $(top_builddir)/src/util/libgnunetutil.la \
133   $(top_builddir)/src/arm/libgnunetarm.la \
134   $(top_builddir)/src/dht/libgnunetdht.la \
135   $(top_builddir)/src/testbed/libgnunettestbed.la \
136   $(top_builddir)/src/regex/libgnunetregex_internal.a \
137   $(top_builddir)/src/regex/libgnunetregexblock.la \
138   $(top_builddir)/src/regex/libgnunetregextest.a \
139   $(top_builddir)/src/statistics/libgnunetstatistics.la
140 gnunet_regex_profiler_DEPENDENCIES = \
141   $(top_builddir)/src/arm/libgnunetarm.la \
142   $(top_builddir)/src/dht/libgnunetdht.la \
143   libgnunetregex_internal.a \
144   libgnunetregextest.a
145
146
147 gnunet_daemon_regexprofiler_SOURCES = \
148   gnunet-daemon-regexprofiler.c
149 gnunet_daemon_regexprofiler_LDADD = -lm \
150   $(top_builddir)/src/util/libgnunetutil.la \
151   $(top_builddir)/src/dht/libgnunetdht.la \
152   $(top_builddir)/src/regex/libgnunetregex_internal.a \
153   $(top_builddir)/src/regex/libgnunetregexblock.la \
154   $(top_builddir)/src/regex/libgnunetregextest.a \
155   $(top_builddir)/src/statistics/libgnunetstatistics.la
156 gnunet_daemon_regexprofiler_DEPENDENCIES = \
157   $(top_builddir)/src/dht/libgnunetdht.la \
158   libgnunetregextest.a \
159   libgnunetregex_internal.a
160
161
162
163 check_PROGRAMS = \
164   test_regex_eval_api \
165   test_regex_iterate_api \
166   test_regex_proofs \
167   test_regex_graph_api
168
169 if ENABLE_TEST_RUN
170  TESTS = $(check_PROGRAMS)
171 endif
172
173 test_regex_eval_api_SOURCES = \
174   test_regex_eval_api.c
175 test_regex_eval_api_LDADD = -lm \
176   $(top_builddir)/src/regex/libgnunetregex_internal.a \
177   $(top_builddir)/src/regex/libgnunetregextest.a \
178   $(top_builddir)/src/regex/libgnunetregexblock.la \
179   $(top_builddir)/src/util/libgnunetutil.la
180
181 test_regex_iterate_api_SOURCES = \
182   test_regex_iterate_api.c
183 test_regex_iterate_api_LDADD = -lm \
184   $(top_builddir)/src/regex/libgnunetregex_internal.a \
185   $(top_builddir)/src/regex/libgnunetregexblock.la \
186   $(top_builddir)/src/util/libgnunetutil.la
187
188 test_regex_proofs_SOURCES = \
189   test_regex_proofs.c
190 test_regex_proofs_LDADD = -lm \
191   $(top_builddir)/src/regex/libgnunetregex_internal.a \
192   $(top_builddir)/src/regex/libgnunetregextest.a \
193   $(top_builddir)/src/regex/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   $(top_builddir)/src/regex/libgnunetregex_internal.a \
200   $(top_builddir)/src/regex/libgnunetregextest.a \
201   $(top_builddir)/src/regex/libgnunetregexblock.la \
202   $(top_builddir)/src/util/libgnunetutil.la
203
204
205 EXTRA_DIST = \
206   regex_simulation_profiler_test.conf