-renaming testing-new.h to testing.h, bumping library versions
[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 1:1: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_LTLIBRARIES = libgnunetregextest.la
37
38 libgnunetregextest_la_SOURCES = \
39   regex_test_lib.c regex_test_lib.h
40 libgnunetregextest_la_LIBADD = \
41  $(top_builddir)/src/util/libgnunetutil.la \
42  $(top_builddir)/src/regex/libgnunetregex.la
43 libgnunetregextest_la_DEPENDENCIES = \
44   libgnunetregex.la
45
46
47 noinst_PROGRAMS = $(noinst_mysql_progs) \
48   perf-regex
49
50 perf_regex_SOURCES = \
51   perf-regex.c
52 perf_regex_LDADD = \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(top_builddir)/src/regex/libgnunetregex.la \
55   $(top_builddir)/src/regex/libgnunetregextest.la
56 perf_regex_DEPENDENCIES = \
57   libgnunetregex.la
58
59
60 check_PROGRAMS = \
61   test_regex_eval_api \
62   test_regex_iterate_api \
63   test_regex_proofs \
64   test_regex_graph_api \
65   test_regex_iptoregex
66
67 if ENABLE_TEST_RUN
68  TESTS = $(check_PROGRAMS)
69 endif
70
71 test_regex_eval_api_SOURCES = \
72   test_regex_eval_api.c
73 test_regex_eval_api_LDADD = \
74   $(top_builddir)/src/regex/libgnunetregex.la \
75   $(top_builddir)/src/util/libgnunetutil.la
76
77 test_regex_iterate_api_SOURCES = \
78   test_regex_iterate_api.c
79 test_regex_iterate_api_LDADD = \
80   $(top_builddir)/src/regex/libgnunetregex.la \
81   $(top_builddir)/src/util/libgnunetutil.la
82
83 test_regex_proofs_SOURCES = \
84   test_regex_proofs.c
85 test_regex_proofs_LDADD = \
86   $(top_builddir)/src/regex/libgnunetregex.la \
87   $(top_builddir)/src/util/libgnunetutil.la
88
89 test_regex_graph_api_SOURCES = \
90   test_regex_graph_api.c
91 test_regex_graph_api_LDADD = \
92   $(top_builddir)/src/regex/libgnunetregex.la \
93   $(top_builddir)/src/util/libgnunetutil.la
94
95 test_regex_iptoregex_SOURCES = \
96   test_regex_iptoregex.c
97 test_regex_iptoregex_LDADD = \
98   $(top_builddir)/src/util/libgnunetutil.la \
99   $(top_builddir)/src/regex/libgnunetregex.la
100
101
102 EXTRA_DIST = \
103   regex_simulation_profiler_test.conf