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