aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/Makefile
diff options
context:
space:
mode:
authorSanjay Ghemawat <sanjay@google.com>2012-12-27 10:38:48 -0800
committerGavin Andresen <gavinandresen@gmail.com>2013-01-23 14:00:29 -0500
commitf79ddf24a967a0043270b2999921550c6c366ec4 (patch)
tree2f4819b34a46cd15ef6b985a0d367d0b0cf3f77f /src/leveldb/Makefile
parentb1024662eafddd5560fbfbac29333e5e967ca0f8 (diff)
added utility to dump leveldb files
Diffstat (limited to 'src/leveldb/Makefile')
-rw-r--r--src/leveldb/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leveldb/Makefile b/src/leveldb/Makefile
index fdc66f9a2b..fef085b9c4 100644
--- a/src/leveldb/Makefile
+++ b/src/leveldb/Makefile
@@ -50,7 +50,7 @@ TESTS = \
version_set_test \
write_batch_test
-PROGRAMS = db_bench $(TESTS)
+PROGRAMS = db_bench leveldbutil $(TESTS)
BENCHMARKS = db_bench_sqlite3 db_bench_tree_db
LIBRARY = libleveldb.a
@@ -69,7 +69,7 @@ SHARED = $(SHARED1)
else
# Update db.h if you change these.
SHARED_MAJOR = 1
-SHARED_MINOR = 7
+SHARED_MINOR = 8
SHARED1 = libleveldb.$(PLATFORM_SHARED_EXT)
SHARED2 = $(SHARED1).$(SHARED_MAJOR)
SHARED3 = $(SHARED1).$(SHARED_MAJOR).$(SHARED_MINOR)
@@ -107,6 +107,9 @@ db_bench_sqlite3: doc/bench/db_bench_sqlite3.o $(LIBOBJECTS) $(TESTUTIL)
db_bench_tree_db: doc/bench/db_bench_tree_db.o $(LIBOBJECTS) $(TESTUTIL)
$(CXX) $(LDFLAGS) doc/bench/db_bench_tree_db.o $(LIBOBJECTS) $(TESTUTIL) -o $@ -lkyotocabinet $(LIBS)
+leveldbutil: db/leveldb_main.o $(LIBOBJECTS)
+ $(CXX) $(LDFLAGS) db/leveldb_main.o $(LIBOBJECTS) -o $@ $(LIBS)
+
arena_test: util/arena_test.o $(LIBOBJECTS) $(TESTHARNESS)
$(CXX) $(LDFLAGS) util/arena_test.o $(LIBOBJECTS) $(TESTHARNESS) -o $@ $(LIBS)