aboutsummaryrefslogtreecommitdiff
path: root/src/makefile.unix
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile.unix')
-rw-r--r--src/makefile.unix13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/makefile.unix b/src/makefile.unix
index a41b57b4fc..01b637e9c6 100644
--- a/src/makefile.unix
+++ b/src/makefile.unix
@@ -4,6 +4,7 @@
USE_UPNP:=0
USE_IPV6:=1
+USE_LEVELDB:=1
LINK:=$(CXX)
@@ -135,6 +136,18 @@ all: bitcoind
test check: test_bitcoin FORCE
./test_bitcoin
+#
+# LevelDB support
+#
+ifdef USE_LEVELDB
+LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a
+DEFS += $(addprefix -I,$(CURDIR)/leveldb/include) -DUSE_LEVELDB
+DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers)
+leveldb/libleveldb.a:
+ @echo "Building LevelDB ..."; cd leveldb; make libleveldb.a libmemenv.a; cd ..;
+obj/db.o: leveldb/libleveldb.a
+endif
+
# auto-generated dependencies:
-include obj/*.P
-include obj-test/*.P