2013-11-12 12:09:55 -08:00
|
|
|
if EMBEDDED_LEVELDB
|
|
|
|
LEVELDB_CPPFLAGS += -I$(top_srcdir)/src/leveldb/include
|
|
|
|
LEVELDB_CPPFLAGS += -I$(top_srcdir)/src/leveldb/helpers/memenv
|
|
|
|
LIBLEVELDB += $(top_builddir)/src/leveldb/libleveldb.a
|
|
|
|
LIBMEMENV += $(top_builddir)/src/leveldb/libmemenv.a
|
|
|
|
endif
|
|
|
|
|
2013-09-08 19:02:28 -07:00
|
|
|
AM_CPPFLAGS = $(INCLUDES) \
|
|
|
|
-I$(top_builddir)/src/obj \
|
|
|
|
$(BDB_CPPFLAGS) \
|
2013-11-22 04:32:36 -08:00
|
|
|
$(BOOST_CPPFLAGS) $(BOOST_INCLUDES)
|
2013-11-12 12:09:55 -08:00
|
|
|
AM_CPPFLAGS += $(LEVELDB_CPPFLAGS)
|
2013-09-08 19:02:28 -07:00
|
|
|
AM_LDFLAGS = $(PTHREAD_CFLAGS)
|
2013-05-27 16:55:01 -07:00
|
|
|
|
2013-11-27 06:41:12 -08:00
|
|
|
LIBBITCOIN_SERVER=$(top_builddir)/src/libbitcoin_server.a
|
2013-11-29 07:50:11 -08:00
|
|
|
LIBBITCOIN_WALLET=$(top_builddir)/src/libbitcoin_wallet.a
|
2013-11-27 06:41:12 -08:00
|
|
|
LIBBITCOIN_COMMON=$(top_builddir)/src/libbitcoin_common.a
|
|
|
|
LIBBITCOIN_CLI=$(top_builddir)/src/libbitcoin_cli.a
|
2013-05-27 16:55:01 -07:00
|
|
|
LIBBITCOINQT=$(top_builddir)/src/qt/libbitcoinqt.a
|
|
|
|
|
|
|
|
$(LIBBITCOIN):
|
|
|
|
$(MAKE) -C $(top_builddir)/src $(@F)
|
|
|
|
|
2013-11-12 12:09:55 -08:00
|
|
|
if EMBEDDED_LEVELDB
|
2013-05-27 16:55:01 -07:00
|
|
|
$(LIBLEVELDB) $(LIBMEMENV):
|
|
|
|
$(MAKE) -C $(top_builddir)/src leveldb/$(@F)
|
2013-11-12 12:09:55 -08:00
|
|
|
endif
|
2013-05-27 16:55:01 -07:00
|
|
|
|
|
|
|
$(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)
|
2013-12-02 13:55:37 -08:00
|
|
|
@test -f $(UIC) && QT_SELECT=$(QT_SELECT) $(UIC) -o $(abs_builddir)/$@ $(abs_srcdir)/$< || echo error: could not build $(abs_builddir)/$@
|
2014-05-02 12:32:12 -07:00
|
|
|
$(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,}
|
|
|
|
$(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,}
|
2013-05-27 16:55:01 -07:00
|
|
|
|
|
|
|
%.moc: %.cpp
|
2013-12-02 13:55:37 -08:00
|
|
|
QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
|
2014-05-02 12:32:12 -07:00
|
|
|
$(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,}
|
|
|
|
$(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,}
|
2013-05-27 16:55:01 -07:00
|
|
|
|
|
|
|
moc_%.cpp: %.h
|
2013-12-02 13:55:37 -08:00
|
|
|
QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
|
2014-05-02 12:32:12 -07:00
|
|
|
$(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,}
|
|
|
|
$(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,}
|
2013-05-27 16:55:01 -07:00
|
|
|
|
|
|
|
%.qm: %.ts
|
|
|
|
@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
|
2013-12-02 13:55:37 -08:00
|
|
|
@test -f $(LRELEASE) && QT_SELECT=$(QT_SELECT) $(LRELEASE) $(abs_srcdir)/$< -qm $(abs_builddir)/$@ || \
|
2013-05-27 16:55:01 -07:00
|
|
|
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 $@
|
2013-09-10 12:18:09 -07:00
|
|
|
|
|
|
|
%.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 $@"
|