Moved regex profiler to mesh, because of dependencies.
[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 = libgnunetregex.la
12
13 libgnunetregex_la_SOURCES = \
14   regex_internal.h regex.c \
15   regex_graph.c regex_random.c
16 libgnunetregex_la_LIBADD = -lm \
17   $(top_builddir)/src/util/libgnunetutil.la
18 libgnunetregex_la_LDFLAGS = \
19   $(GN_LIB_LDFLAGS) \
20    -version-info 0:0:0
21
22 check_PROGRAMS = \
23   test_regex_eval_api \
24   test_regex_iterate_api \
25   test_regex_proofs \
26   test_regex_graph_api \
27   test_regex_iptoregex
28
29 if ENABLE_TEST_RUN
30  TESTS = $(check_PROGRAMS)
31 endif
32
33 test_regex_eval_api_SOURCES = \
34   test_regex_eval_api.c
35 test_regex_eval_api_LDADD = \
36   $(top_builddir)/src/regex/libgnunetregex.la \
37   $(top_builddir)/src/util/libgnunetutil.la
38
39 test_regex_iterate_api_SOURCES = \
40   test_regex_iterate_api.c
41 test_regex_iterate_api_LDADD = \
42   $(top_builddir)/src/regex/libgnunetregex.la \
43   $(top_builddir)/src/util/libgnunetutil.la
44
45 test_regex_proofs_SOURCES = \
46   test_regex_proofs.c
47 test_regex_proofs_LDADD = \
48   $(top_builddir)/src/regex/libgnunetregex.la \
49   $(top_builddir)/src/util/libgnunetutil.la
50
51 test_regex_graph_api_SOURCES = \
52   test_regex_graph_api.c
53 test_regex_graph_api_LDADD = \
54   $(top_builddir)/src/regex/libgnunetregex.la \
55   $(top_builddir)/src/util/libgnunetutil.la
56
57 test_regex_iptoregex_SOURCES = \
58   test_regex_iptoregex.c
59 test_regex_iptoregex_LDADD = \
60   $(top_builddir)/src/util/libgnunetutil.la \
61   $(top_builddir)/src/regex/libgnunetregex.la
62
63
64 EXTRA_DIST = \
65   regex_profiler_test.conf