summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/leveldb/Makefile.am17
-rw-r--r--api/leveldb/dummy.cc28
2 files changed, 43 insertions, 2 deletions
diff --git a/api/leveldb/Makefile.am b/api/leveldb/Makefile.am
index c1aa5916802..6e47a53a8fe 100644
--- a/api/leveldb/Makefile.am
+++ b/api/leveldb/Makefile.am
@@ -1,7 +1,6 @@
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/api/leveldb/include
lib_LTLIBRARIES = libwiredtiger_leveldb.la
-LDADD = $(lib_LTLIBRARIES) $(top_builddir)/libwiredtiger.la
noinst_PROGRAMS = leveldb_test
@@ -39,6 +38,7 @@ leveldbinclude_HEADERS += \
endif
libwiredtiger_leveldb_la_LDFLAGS = -release @VERSION@
+libwiredtiger_leveldb_la_LIBADD = $(top_builddir)/libwiredtiger.la
libwiredtiger_leveldb_la_SOURCES = \
leveldb_wt.cc \
db/write_batch.cc \
@@ -52,8 +52,21 @@ if HAVE_ROCKSDB
libwiredtiger_leveldb_la_SOURCES += rocks_wt.cc
endif
+if HAVE_ROCKSDB
+pkglib_LTLIBRARIES = librocksdb.la
+else
+pkglib_LTLIBRARIES = libleveldb.la
+endif
+
+libleveldb_la_LDFLAGS = -release @VERSION@
+libleveldb_la_LIBADD = libwiredtiger_leveldb.la
+libleveldb_la_SOURCES = dummy.cc
+
+librocksdb_la_LDFLAGS = -release @VERSION@
+librocksdb_la_LIBADD = libwiredtiger_leveldb.la
+librocksdb_la_SOURCES = dummy.cc
leveldb_test_SOURCES = leveldb_test.cc
-#leveldb_test_LDADD = $(top_builddir)/libwiredtiger.la
+leveldb_test_LDADD = libwiredtiger_leveldb.la
TESTS = $(noinst_PROGRAMS)
diff --git a/api/leveldb/dummy.cc b/api/leveldb/dummy.cc
new file mode 100644
index 00000000000..d56f03b544b
--- /dev/null
+++ b/api/leveldb/dummy.cc
@@ -0,0 +1,28 @@
+/*-
+ * Public Domain 2008-2014 WiredTiger, Inc.
+ *
+ * This is free and unencumbered software released into the public domain.
+ *
+ * Anyone is free to copy, modify, publish, use, compile, sell, or
+ * distribute this software, either in source code form or as a compiled
+ * binary, for any purpose, commercial or non-commercial, and by any
+ * means.
+ *
+ * In jurisdictions that recognize copyright laws, the author or authors
+ * of this software dedicate any and all copyright interest in the
+ * software to the public domain. We make this dedication for the benefit
+ * of the public at large and to the detriment of our heirs and
+ * successors. We intend this dedication to be an overt act of
+ * relinquishment in perpetuity of all present and future rights to this
+ * software under copyright law.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+/* Nothing to see, just keep build tools happy. */