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