diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-08-30 21:13:50 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-10-20 23:08:56 +0200 |
commit | 3ff3a2bd60a905d830de157390facde14aa0ffe3 (patch) | |
tree | 970054f91c27d9a09f0858e6c42b2b059e859eca /src/makefile.linux-mingw | |
parent | 9f56678fceef0a53411bdfcac82ab65f7b896838 (diff) |
Makefile integration of LevelDB
Diffstat (limited to 'src/makefile.linux-mingw')
-rw-r--r-- | src/makefile.linux-mingw | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/makefile.linux-mingw b/src/makefile.linux-mingw index 0970469a98..8f8279c926 100644 --- a/src/makefile.linux-mingw +++ b/src/makefile.linux-mingw @@ -6,6 +6,7 @@ DEPSDIR:=/usr/i586-mingw32msvc USE_UPNP:=0 USE_IPV6:=1 +USE_LEVELDB:=1 INCLUDEPATHS= \ -I"$(CURDIR)" \ @@ -86,6 +87,15 @@ OBJS= \ all: bitcoind.exe +ifdef USE_LEVELDB +LIBS += $(CURDIR)/leveldb/libleveldb.lib $(CURDIR)/leveldb/libmemenv.a +DEFS += -I"$(CURDIR)/leveldb/include" -DUSE_LEVELDB +DEFS += -I"$(CURDIR)/leveldb/helpers" +leveldb/libleveldb.a: + @echo "Building LevelDB ..."; cd leveldb; TARGET_OS=OS_WINDOWS_CROSSCOMPILE CXXFLAGS="-I$(INCLUDEPATHS)" LDFLAGS="-L$(LIBPATHS)" make libleveldb.a libmemenv.a; cd .. +obj/db.o: leveldb/libleveldb.a +endif + obj/build.h: FORCE /bin/sh ../share/genbuild.sh obj/build.h version.cpp: obj/build.h |