XLIBS = -lgcov
endif
+if HAVE_SQLITE
+ SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la
+endif
lib_LTLIBRARIES = \
libgnunetdatacache.la
plugin_LTLIBRARIES = \
- libgnunet_plugin_datacache_sqlite.la \
+ $(SQLITE_PLUGIN) \
libgnunet_plugin_datacache_template.la
$(GN_PLUGIN_LDFLAGS)
-check_PROGRAMS = \
+if HAVE_SQLITE
+ SQLITE_TESTS = \
test_datacache \
test_datacache_quota \
perf_datacache
+endif
+
+check_PROGRAMS = $(SQLITE_TESTS)
if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
$(top_builddir)/src/util/libgnunetutil.la \
$(GN_LIBINTL)
+if HAVE_SQLITE
+ SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
+endif
plugin_LTLIBRARIES = \
- libgnunet_plugin_datastore_sqlite.la \
+ $(SQLITE_PLUGIN) \
libgnunet_plugin_datastore_template.la
$(GN_PLUGIN_LDFLAGS)
-check_PROGRAMS = \
+if HAVE_SQLITE
+SQLITE_TESTS = \
test_datastore_api \
test_datastore_api_management \
perf_datastore_api \
perf_plugin_datastore
+endif
+
+check_PROGRAMS = \
+ $(SQLITE_TESTS)
+
if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif