diff options
author | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-07-12 09:58:04 +0000 |
---|---|---|
committer | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-07-12 09:58:04 +0000 |
commit | 97d142230b783a3d667cdfedb7fc0397ce831c66 (patch) | |
tree | f08017db62178245d04c8210d598ce16b2b6bfbc /src/psycstore/Makefile.am | |
parent | a00afbdaae8de7fd752aab1ed5028833a85eeea7 (diff) | |
download | gnunet-97d142230b783a3d667cdfedb7fc0397ce831c66.tar.gz gnunet-97d142230b783a3d667cdfedb7fc0397ce831c66.zip |
fix Makefile
Diffstat (limited to 'src/psycstore/Makefile.am')
-rw-r--r-- | src/psycstore/Makefile.am | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/psycstore/Makefile.am b/src/psycstore/Makefile.am index ee61b8c78..4da0a89d8 100644 --- a/src/psycstore/Makefile.am +++ b/src/psycstore/Makefile.am | |||
@@ -20,6 +20,13 @@ if USE_COVERAGE | |||
20 | XLIB = -lgcov | 20 | XLIB = -lgcov |
21 | endif | 21 | endif |
22 | 22 | ||
23 | if HAVE_MYSQL | ||
24 | MYSQL_PLUGIN = libgnunet_plugin_psycstore_mysql.la | ||
25 | if HAVE_TESTING | ||
26 | MYSQL_TESTS = test_plugin_psycstore_mysql | ||
27 | endif | ||
28 | endif | ||
29 | |||
23 | if HAVE_SQLITE | 30 | if HAVE_SQLITE |
24 | SQLITE_PLUGIN = libgnunet_plugin_psycstore_sqlite.la | 31 | SQLITE_PLUGIN = libgnunet_plugin_psycstore_sqlite.la |
25 | if HAVE_TESTING | 32 | if HAVE_TESTING |
@@ -53,7 +60,8 @@ gnunet_service_psycstore_LDADD = \ | |||
53 | $(GN_LIBINTL) | 60 | $(GN_LIBINTL) |
54 | 61 | ||
55 | plugin_LTLIBRARIES = \ | 62 | plugin_LTLIBRARIES = \ |
56 | $(SQLITE_PLUGIN) | 63 | $(SQLITE_PLUGIN) \ |
64 | $(MYSQL_PLUGIN) | ||
57 | 65 | ||
58 | libgnunet_plugin_psycstore_mysql_la_SOURCES = \ | 66 | libgnunet_plugin_psycstore_mysql_la_SOURCES = \ |
59 | plugin_psycstore_mysql.c | 67 | plugin_psycstore_mysql.c |
@@ -83,6 +91,7 @@ if HAVE_SQLITE | |||
83 | if HAVE_TESTING | 91 | if HAVE_TESTING |
84 | check_PROGRAMS = \ | 92 | check_PROGRAMS = \ |
85 | $(SQLITE_TESTS) \ | 93 | $(SQLITE_TESTS) \ |
94 | $(MYSQL_TESTS) \ | ||
86 | test_psycstore | 95 | test_psycstore |
87 | endif | 96 | endif |
88 | endif | 97 | endif |
@@ -108,3 +117,10 @@ test_plugin_psycstore_sqlite_SOURCES = \ | |||
108 | test_plugin_psycstore_sqlite_LDADD = \ | 117 | test_plugin_psycstore_sqlite_LDADD = \ |
109 | $(top_builddir)/src/testing/libgnunettesting.la \ | 118 | $(top_builddir)/src/testing/libgnunettesting.la \ |
110 | $(top_builddir)/src/util/libgnunetutil.la | 119 | $(top_builddir)/src/util/libgnunetutil.la |
120 | |||
121 | test_plugin_psycstore_mysql_SOURCES = \ | ||
122 | test_plugin_psycstore.c | ||
123 | test_plugin_psycstore_mysql_LDADD = \ | ||
124 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
125 | $(top_builddir)/src/util/libgnunetutil.la | ||
126 | |||