9824db522eb17d71b9596b4909445cdd7a2f56a7
[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 noinst_PROGRAMS = \
23   gnunet-regex-profiler
24
25 gnunet_regex_profiler_SOURCES = \
26   gnunet-regex-profiler.c
27 gnunet_regex_profiler_LDADD = \
28   $(top_builddir)/src/regex/libgnunetregex.la \
29   $(top_builddir)/src/util/libgnunetutil.la \
30   $(top_builddir)/src/testbed/libgnunettestbed.la
31 gnunet_regex_profiler_DEPENDENCIES = \
32   libgnunetregex.la
33
34 check_PROGRAMS = \
35   test_regex_eval_api \
36   test_regex_iterate_api \
37   test_regex_proofs \
38   test_regex_graph_api \
39   test_regex_iptoregex
40
41 if ENABLE_TEST_RUN
42  TESTS = $(check_PROGRAMS)
43 endif
44
45 test_regex_eval_api_SOURCES = \
46   test_regex_eval_api.c
47 test_regex_eval_api_LDADD = \
48   $(top_builddir)/src/regex/libgnunetregex.la \
49   $(top_builddir)/src/util/libgnunetutil.la
50
51 test_regex_iterate_api_SOURCES = \
52   test_regex_iterate_api.c
53 test_regex_iterate_api_LDADD = \
54   $(top_builddir)/src/regex/libgnunetregex.la \
55   $(top_builddir)/src/util/libgnunetutil.la
56
57 test_regex_proofs_SOURCES = \
58   test_regex_proofs.c
59 test_regex_proofs_LDADD = \
60   $(top_builddir)/src/regex/libgnunetregex.la \
61   $(top_builddir)/src/util/libgnunetutil.la
62
63 test_regex_graph_api_SOURCES = \
64   test_regex_graph_api.c
65 test_regex_graph_api_LDADD = \
66   $(top_builddir)/src/regex/libgnunetregex.la \
67   $(top_builddir)/src/util/libgnunetutil.la
68
69 test_regex_iptoregex_SOURCES = \
70   test_regex_iptoregex.c
71 test_regex_iptoregex_LDADD = \
72   $(top_builddir)/src/util/libgnunetutil.la \
73   $(top_builddir)/src/regex/libgnunetregex.la
74
75
76 EXTRA_DIST = \
77   regex_profiler_test.conf