comparison src/makefile.mingw @ 3660:ca9488dc3b38 draft

Remove BDB block database support
author Pieter Wuille <pieter.wuille@gmail.com>
date Tue, 16 Oct 2012 22:23:39 +0200
parents 526ec2f104b0
children 4d31215fcb05
comparison
equal deleted inserted replaced
3659:7c2963c3101d 3660:ca9488dc3b38
2 # Distributed under the MIT/X11 software license, see the accompanying 2 # Distributed under the MIT/X11 software license, see the accompanying
3 # file COPYING or http://www.opensource.org/licenses/mit-license.php. 3 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 4
5 USE_UPNP:=0 5 USE_UPNP:=0
6 USE_IPV6:=1 6 USE_IPV6:=1
7 USE_LEVELDB:=1
8 7
9 INCLUDEPATHS= \ 8 INCLUDEPATHS= \
10 -I"C:\boost-1.50.0-mgw" \ 9 -I"C:\boost-1.50.0-mgw" \
11 -I"C:\db-4.8.30.NC-mgw\build_unix" \ 10 -I"C:\db-4.8.30.NC-mgw\build_unix" \
12 -I"C:\openssl-1.0.1c-mgw\include" 11 -I"C:\openssl-1.0.1c-mgw\include"
77 obj/script.o \ 76 obj/script.o \
78 obj/sync.o \ 77 obj/sync.o \
79 obj/util.o \ 78 obj/util.o \
80 obj/wallet.o \ 79 obj/wallet.o \
81 obj/walletdb.o \ 80 obj/walletdb.o \
82 obj/noui.o 81 obj/noui.o \
82 obj/leveldb.o \
83 obj/txdb.o
83 84
84 85
85 all: bitcoind.exe 86 all: bitcoind.exe
86 87
87 test check: test_bitcoin.exe FORCE 88 test check: test_bitcoin.exe FORCE
88 test_bitcoin.exe 89 test_bitcoin.exe
89 90
90 # 91 #
91 # LevelDB support 92 # LevelDB support
92 # 93 #
93 ifdef USE_LEVELDB
94 LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a 94 LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a
95 DEFS += $(addprefix -I,$(CURDIR)/leveldb/include) -DUSE_LEVELDB 95 DEFS += $(addprefix -I,$(CURDIR)/leveldb/include)
96 DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers) 96 DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers)
97 OBJS += obj/leveldb.o obj/txdb-leveldb.o
98 leveldb/libleveldb.a: 97 leveldb/libleveldb.a:
99 cd leveldb; make libleveldb.a libmemenv.a; cd .. 98 cd leveldb; make libleveldb.a libmemenv.a; cd ..
100 obj/leveldb.o: leveldb/libleveldb.lib 99 obj/leveldb.o: leveldb/libleveldb.lib
101 else
102 OBJS += obj/txdb-bdb.o
103 endif
104 100
105 obj/%.o: %.cpp $(HEADERS) 101 obj/%.o: %.cpp $(HEADERS)
106 g++ -c $(CFLAGS) -o $@ $< 102 g++ -c $(CFLAGS) -o $@ $<
107 103
108 bitcoind.exe: $(OBJS:obj/%=obj/%) 104 bitcoind.exe: $(OBJS:obj/%=obj/%)