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.osx | |
parent | 9f56678fceef0a53411bdfcac82ab65f7b896838 (diff) |
Makefile integration of LevelDB
Diffstat (limited to 'src/makefile.osx')
-rw-r--r-- | src/makefile.osx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/makefile.osx b/src/makefile.osx index 359739bd5e..bfda788410 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -21,6 +21,7 @@ LIBPATHS= \ USE_UPNP:=1 USE_IPV6:=1 +USE_LEVELDB:=1 LIBS= -dead_strip @@ -119,6 +120,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 |