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