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