autotools: fix the Makefile.include to be safely included anywhere.

This way we can reuse rules rather than duplicating them.
This commit is contained in:
Cory Fields
2013-09-18 15:45:31 -04:00
parent c546dc05bb
commit 7a3df1cd94
5 changed files with 9 additions and 11 deletions

View File

@@ -1,13 +1,11 @@
.PHONY: FORCE
# Helper for rules and subdir Makefiles to find parent targets.
# Flags and other non-target variables should not be set here.
LIBBITCOIN=$(top_builddir)/src/libbitcoin.a
LIBLEVELDB=$(top_builddir)/src/leveldb/libleveldb.a
LIBMEMENV=$(top_builddir)/src/leveldb/libmemenv.a
LIBBITCOINQT=$(top_builddir)/src/qt/libbitcoinqt.a
INCLUDES += $(BDB_CPPFLAGS)
LIBBITCOIN += $(BDB_LIBS)
$(LIBBITCOIN):
$(MAKE) -C $(top_builddir)/src $(@F)