- example data for perf-regex
[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 if HAVE_MYSQL
23 noinst_mysql_progs = \
24 gnunet-regex-simulation-profiler
25
26 gnunet_regex_simulation_profiler_SOURCES = \
27   gnunet-regex-simulation-profiler.c
28 gnunet_regex_simulation_profiler_LDADD = \
29   $(top_builddir)/src/util/libgnunetutil.la \
30   $(top_builddir)/src/regex/libgnunetregex.la \
31   $(top_builddir)/src/mysql/libgnunetmysql.la
32 gnunet_regex_simulation_profiler_DEPENDENCIES = \
33   libgnunetregex.la
34 endif
35
36 noinst_PROGRAMS = $(noinst_mysql_progs) \
37   perf-regex
38
39 perf_regex_SOURCES = \
40   perf-regex.c
41 perf_regex_LDADD = \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(top_builddir)/src/regex/libgnunetregex.la
44 perf_regex_DEPENDENCIES = \
45   libgnunetregex.la
46
47
48 check_PROGRAMS = \
49   test_regex_eval_api \
50   test_regex_iterate_api \
51   test_regex_proofs \
52   test_regex_graph_api \
53   test_regex_iptoregex
54
55 if ENABLE_TEST_RUN
56  TESTS = $(check_PROGRAMS)
57 endif
58
59 test_regex_eval_api_SOURCES = \
60   test_regex_eval_api.c
61 test_regex_eval_api_LDADD = \
62   $(top_builddir)/src/regex/libgnunetregex.la \
63   $(top_builddir)/src/util/libgnunetutil.la
64
65 test_regex_iterate_api_SOURCES = \
66   test_regex_iterate_api.c
67 test_regex_iterate_api_LDADD = \
68   $(top_builddir)/src/regex/libgnunetregex.la \
69   $(top_builddir)/src/util/libgnunetutil.la
70
71 test_regex_proofs_SOURCES = \
72   test_regex_proofs.c
73 test_regex_proofs_LDADD = \
74   $(top_builddir)/src/regex/libgnunetregex.la \
75   $(top_builddir)/src/util/libgnunetutil.la
76
77 test_regex_graph_api_SOURCES = \
78   test_regex_graph_api.c
79 test_regex_graph_api_LDADD = \
80   $(top_builddir)/src/regex/libgnunetregex.la \
81   $(top_builddir)/src/util/libgnunetutil.la
82
83 test_regex_iptoregex_SOURCES = \
84   test_regex_iptoregex.c
85 test_regex_iptoregex_LDADD = \
86   $(top_builddir)/src/util/libgnunetutil.la \
87   $(top_builddir)/src/regex/libgnunetregex.la
88
89
90 EXTRA_DIST = \
91   regex_simulation_profiler_test.conf