Makefile integration of LevelDB
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user