diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-13 19:43:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-13 19:43:17 +0000 |
commit | 54edcbe9ce37e934a0d045fdde27e9caa3ac145a (patch) | |
tree | 1f87dffbbb93f09bb4d0b606022ad9595d11bad8 /src/datacache/Makefile.am | |
parent | 2151b951b91971bd9c906b12ab940b0ee0038001 (diff) | |
download | gnunet-54edcbe9ce37e934a0d045fdde27e9caa3ac145a.tar.gz gnunet-54edcbe9ce37e934a0d045fdde27e9caa3ac145a.zip |
mysql hackery
Diffstat (limited to 'src/datacache/Makefile.am')
-rw-r--r-- | src/datacache/Makefile.am | 70 |
1 files changed, 57 insertions, 13 deletions
diff --git a/src/datacache/Makefile.am b/src/datacache/Makefile.am index a10343046..0598c2673 100644 --- a/src/datacache/Makefile.am +++ b/src/datacache/Makefile.am | |||
@@ -14,6 +14,9 @@ endif | |||
14 | if HAVE_SQLITE | 14 | if HAVE_SQLITE |
15 | SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la | 15 | SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la |
16 | endif | 16 | endif |
17 | if HAVE_MYSQL | ||
18 | MYSQL_PLUGIN = libgnunet_plugin_datacache_mysql.la | ||
19 | endif | ||
17 | 20 | ||
18 | lib_LTLIBRARIES = \ | 21 | lib_LTLIBRARIES = \ |
19 | libgnunetdatacache.la | 22 | libgnunetdatacache.la |
@@ -31,6 +34,7 @@ libgnunetdatacache_la_LDFLAGS = \ | |||
31 | 34 | ||
32 | plugin_LTLIBRARIES = \ | 35 | plugin_LTLIBRARIES = \ |
33 | $(SQLITE_PLUGIN) \ | 36 | $(SQLITE_PLUGIN) \ |
37 | $(MYSQL_PLUGIN) \ | ||
34 | libgnunet_plugin_datacache_template.la | 38 | libgnunet_plugin_datacache_template.la |
35 | 39 | ||
36 | 40 | ||
@@ -42,6 +46,17 @@ libgnunet_plugin_datacache_sqlite_la_LIBADD = \ | |||
42 | libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \ | 46 | libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \ |
43 | $(GN_PLUGIN_LDFLAGS) | 47 | $(GN_PLUGIN_LDFLAGS) |
44 | 48 | ||
49 | libgnunet_plugin_datacache_mysql_la_SOURCES = \ | ||
50 | plugin_datacache_mysql.c | ||
51 | libgnunet_plugin_datacache_mysql_la_LIBADD = \ | ||
52 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
53 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
54 | $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient | ||
55 | libgnunet_plugin_datacache_mysql_la_CPPFLAGS = \ | ||
56 | $(MYSQL_CPPFLAGS) | ||
57 | libgnunet_plugin_datacache_mysql_la_LDFLAGS = \ | ||
58 | $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient | ||
59 | |||
45 | libgnunet_plugin_datacache_template_la_SOURCES = \ | 60 | libgnunet_plugin_datacache_template_la_SOURCES = \ |
46 | plugin_datacache_template.c | 61 | plugin_datacache_template.c |
47 | libgnunet_plugin_datacache_template_la_LIBADD = \ | 62 | libgnunet_plugin_datacache_template_la_LIBADD = \ |
@@ -51,36 +66,65 @@ libgnunet_plugin_datacache_template_la_LDFLAGS = \ | |||
51 | 66 | ||
52 | 67 | ||
53 | if HAVE_SQLITE | 68 | if HAVE_SQLITE |
54 | SQLITE_TESTS = \ | 69 | SQLITE_TESTS = \ |
55 | test_datacache \ | 70 | test_datacache_sqlite \ |
56 | test_datacache_quota \ | 71 | test_datacache_quota_sqlite \ |
57 | perf_datacache | 72 | perf_datacache_sqlite |
58 | endif | 73 | endif |
59 | 74 | ||
60 | check_PROGRAMS = $(SQLITE_TESTS) | 75 | if HAVE_MYSQL |
76 | MYSQL_TESTS = \ | ||
77 | test_datacache_mysql \ | ||
78 | test_datacache_quota_mysql \ | ||
79 | perf_datacache_mysql | ||
80 | endif | ||
81 | |||
82 | check_PROGRAMS = \ | ||
83 | $(SQLITE_TESTS) \ | ||
84 | $(MYSQL_TESTS) | ||
61 | 85 | ||
62 | if !DISABLE_TEST_RUN | 86 | if !DISABLE_TEST_RUN |
63 | TESTS = $(check_PROGRAMS) | 87 | TESTS = $(check_PROGRAMS) |
64 | endif | 88 | endif |
65 | 89 | ||
66 | test_datacache_SOURCES = \ | 90 | test_datacache_sqlite_SOURCES = \ |
91 | test_datacache.c | ||
92 | test_datacache_sqlite_LDADD = \ | ||
93 | $(top_builddir)/src/datacache/libgnunetdatacache.la \ | ||
94 | $(top_builddir)/src/util/libgnunetutil.la | ||
95 | |||
96 | test_datacache_quota_sqlite_SOURCES = \ | ||
97 | test_datacache_quota.c | ||
98 | test_datacache_quota_sqlite_LDADD = \ | ||
99 | $(top_builddir)/src/datacache/libgnunetdatacache.la \ | ||
100 | $(top_builddir)/src/util/libgnunetutil.la | ||
101 | |||
102 | perf_datacache_sqlite_SOURCES = \ | ||
103 | perf_datacache.c | ||
104 | perf_datacache_sqlite_LDADD = \ | ||
105 | $(top_builddir)/src/datacache/libgnunetdatacache.la \ | ||
106 | $(top_builddir)/src/util/libgnunetutil.la | ||
107 | |||
108 | test_datacache_mysql_SOURCES = \ | ||
67 | test_datacache.c | 109 | test_datacache.c |
68 | test_datacache_LDADD = \ | 110 | test_datacache_mysql_LDADD = \ |
69 | $(top_builddir)/src/datacache/libgnunetdatacache.la \ | 111 | $(top_builddir)/src/datacache/libgnunetdatacache.la \ |
70 | $(top_builddir)/src/util/libgnunetutil.la | 112 | $(top_builddir)/src/util/libgnunetutil.la |
71 | 113 | ||
72 | test_datacache_quota_SOURCES = \ | 114 | test_datacache_quota_mysql_SOURCES = \ |
73 | test_datacache_quota.c | 115 | test_datacache_quota.c |
74 | test_datacache_quota_LDADD = \ | 116 | test_datacache_quota_mysql_LDADD = \ |
75 | $(top_builddir)/src/datacache/libgnunetdatacache.la \ | 117 | $(top_builddir)/src/datacache/libgnunetdatacache.la \ |
76 | $(top_builddir)/src/util/libgnunetutil.la | 118 | $(top_builddir)/src/util/libgnunetutil.la |
77 | 119 | ||
78 | perf_datacache_SOURCES = \ | 120 | perf_datacache_mysql_SOURCES = \ |
79 | perf_datacache.c | 121 | perf_datacache.c |
80 | perf_datacache_LDADD = \ | 122 | perf_datacache_mysql_LDADD = \ |
81 | $(top_builddir)/src/datacache/libgnunetdatacache.la \ | 123 | $(top_builddir)/src/datacache/libgnunetdatacache.la \ |
82 | $(top_builddir)/src/util/libgnunetutil.la | 124 | $(top_builddir)/src/util/libgnunetutil.la |
83 | 125 | ||
84 | EXTRA_DIST = \ | 126 | EXTRA_DIST = \ |
85 | test_datacache_data.conf \ | 127 | test_datacache_data_sqlite.conf \ |
86 | perf_datacache_data.conf | 128 | perf_datacache_data_sqlite.conf \ |
129 | test_datacache_data_mysql.conf \ | ||
130 | perf_datacache_data_mysql.conf | ||