2 LEVELDB_CPPFLAGS += -I$(top_srcdir)/src/leveldb/include
3 LEVELDB_CPPFLAGS += -I$(top_srcdir)/src/leveldb/helpers/memenv
4 LIBLEVELDB += $(top_builddir)/src/leveldb/libleveldb.a
5 LIBMEMENV += $(top_builddir)/src/leveldb/libmemenv.a
8 AM_CPPFLAGS = $(INCLUDES) \
9 -I$(top_builddir)/src/obj \
11 $(BOOST_CPPFLAGS) $(BOOST_INCLUDES)
12 AM_CPPFLAGS += $(LEVELDB_CPPFLAGS)
13 AM_LDFLAGS = $(PTHREAD_CFLAGS)
15 LIBBITCOIN_SERVER=libbitcoin_server.a
16 LIBBITCOIN_WALLET=libbitcoin_wallet.a
17 LIBBITCOIN_COMMON=libbitcoin_common.a
18 LIBBITCOIN_CLI=libbitcoin_cli.a
19 LIBBITCOINQT=qt/libbitcoinqt.a
22 $(LIBLEVELDB) $(LIBMEMENV):
23 $(MAKE) -C $(top_builddir)/src leveldb/$(@F)
24 $(LIBLEVELDB): $(LIBMEMENV)
28 $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
29 $(CPPFLAGS) $(AM_CXXFLAGS) $(QT_INCLUDES) $(CXXFLAGS) -c -o $@ $<
32 @test -f $(WINDRES) && $(WINDRES) -i $< -o $@ || \
33 echo error: could not build $@
36 @test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
37 @test -f $(UIC) && QT_SELECT=$(QT_SELECT) $(UIC) -o $(abs_builddir)/$@ $(abs_srcdir)/$< || echo error: could not build $(abs_builddir)/$@
38 $(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/
[email protected] && mv $(abs_builddir)/$@{.n,}
39 $(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/
[email protected] && mv $(abs_builddir)/$@{.n,}
42 QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
47 QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
52 @test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
53 @test -f $(LRELEASE) && QT_SELECT=$(QT_SELECT) $(LRELEASE) $(abs_srcdir)/$< -qm $(abs_builddir)/$@ || \
54 echo error: could not build $(abs_builddir)/$@
56 %.pb.cc %.pb.h: %.proto
57 test -f $(PROTOC) && $(PROTOC) --cpp_out=$(@D) --proto_path=$(abspath $(<D) $<) || \
58 echo error: could not build $@
62 @echo "namespace json_tests{" > $@
63 @echo "static unsigned const char $(*F)[] = {" >> $@
64 @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
70 @echo "namespace alert_tests{" > $@
71 @echo "static unsigned const char $(*F)[] = {" >> $@
72 @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@