mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 03:33:27 -03:00
4f9e993bc9
Make it possible to build Bitcoin without wallet (and thus without BDB) so that it only functions as node.
72 lines
2.5 KiB
Text
72 lines
2.5 KiB
Text
AM_CPPFLAGS = $(INCLUDES) \
|
|
-I$(top_builddir)/src/obj \
|
|
-I$(top_srcdir)/src/leveldb/include \
|
|
$(BDB_CPPFLAGS) \
|
|
$(BOOST_INCLUDES)
|
|
AM_LDFLAGS = $(PTHREAD_CFLAGS)
|
|
|
|
LIBBITCOIN_SERVER=$(top_builddir)/src/libbitcoin_server.a
|
|
LIBBITCOIN_WALLET=$(top_builddir)/src/libbitcoin_wallet.a
|
|
LIBBITCOIN_COMMON=$(top_builddir)/src/libbitcoin_common.a
|
|
LIBBITCOIN_CLI=$(top_builddir)/src/libbitcoin_cli.a
|
|
LIBLEVELDB=$(top_builddir)/src/leveldb/libleveldb.a
|
|
LIBMEMENV=$(top_builddir)/src/leveldb/libmemenv.a
|
|
LIBBITCOINQT=$(top_builddir)/src/qt/libbitcoinqt.a
|
|
|
|
$(LIBBITCOIN):
|
|
$(MAKE) -C $(top_builddir)/src $(@F)
|
|
|
|
$(LIBLEVELDB) $(LIBMEMENV):
|
|
$(MAKE) -C $(top_builddir)/src leveldb/$(@F)
|
|
|
|
$(LIBBITCOINQT):
|
|
$(MAKE) -C $(top_builddir)/src/qt $(@F)
|
|
|
|
.mm.o:
|
|
$(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
|
$(CPPFLAGS) $(AM_CXXFLAGS) $(QT_INCLUDES) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
.rc.o:
|
|
@test -f $(WINDRES) && $(WINDRES) -i $< -o $@ || \
|
|
echo error: could not build $@
|
|
|
|
ui_%.h: %.ui
|
|
@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
|
|
@test -f $(UIC) && $(UIC) -o $(abs_builddir)/$@ $(abs_srcdir)/$< || echo error: could not build $(abs_builddir)/$@
|
|
$(SED) -i.bak -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ && rm $(abs_builddir)/$@.bak
|
|
$(SED) -i.bak -e '/^\*\*.*by:/d' $(abs_builddir)/$@ && rm $(abs_builddir)/$@.bak
|
|
|
|
%.moc: %.cpp
|
|
$(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
|
|
$(SED) -i.bak -e '/^\*\*.*Created:/d' $@ && rm $@.bak
|
|
$(SED) -i.bak -e '/^\*\*.*by:/d' $@ && rm $@.bak
|
|
|
|
moc_%.cpp: %.h
|
|
$(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
|
|
$(SED) -i.bak -e '/^\*\*.*Created:/d' $@ && rm $@.bak
|
|
$(SED) -i.bak -e '/^\*\*.*by:/d' $@ && rm $@.bak
|
|
|
|
%.qm: %.ts
|
|
@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
|
|
@test -f $(LRELEASE) && $(LRELEASE) $(abs_srcdir)/$< -qm $(abs_builddir)/$@ || \
|
|
echo error: could not build $(abs_builddir)/$@
|
|
|
|
%.pb.cc %.pb.h: %.proto
|
|
test -f $(PROTOC) && $(PROTOC) --cpp_out=$(@D) --proto_path=$(abspath $(<D) $<) || \
|
|
echo error: could not build $@
|
|
|
|
%.json.h: %.json
|
|
@$(MKDIR_P) $(@D)
|
|
@echo "namespace json_tests{" > $@
|
|
@echo "static unsigned const char $(*F)[] = {" >> $@
|
|
@$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
|
|
@echo "};};" >> $@
|
|
@echo "Generated $@"
|
|
|
|
%.raw.h: %.raw
|
|
@$(MKDIR_P) $(@D)
|
|
@echo "namespace alert_tests{" > $@
|
|
@echo "static unsigned const char $(*F)[] = {" >> $@
|
|
@$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
|
|
@echo "};};" >> $@
|
|
@echo "Generated $@"
|