aboutsummaryrefslogtreecommitdiff
path: root/src/makefile.mingw
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-08-30 21:13:50 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-10-20 23:08:56 +0200
commit3ff3a2bd60a905d830de157390facde14aa0ffe3 (patch)
tree970054f91c27d9a09f0858e6c42b2b059e859eca /src/makefile.mingw
parent9f56678fceef0a53411bdfcac82ab65f7b896838 (diff)
Makefile integration of LevelDB
Diffstat (limited to 'src/makefile.mingw')
-rw-r--r--src/makefile.mingw13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/makefile.mingw b/src/makefile.mingw
index 54054c25f9..e2560d9912 100644
--- a/src/makefile.mingw
+++ b/src/makefile.mingw
@@ -4,6 +4,7 @@
USE_UPNP:=0
USE_IPV6:=1
+USE_LEVELDB:=1
INCLUDEPATHS= \
-I"C:\boost-1.50.0-mgw" \
@@ -86,6 +87,18 @@ all: bitcoind.exe
test check: test_bitcoin.exe FORCE
test_bitcoin.exe
+#
+# 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:
+ cd leveldb; make libleveldb.a libmemenv.a; cd ..
+obj/db.o: leveldb/libleveldb.lib
+endif
+
obj/%.o: %.cpp $(HEADERS)
g++ -c $(CFLAGS) -o $@ $<