aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.include
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-01-21 08:52:52 +0100
committerWladimir J. van der Laan <[email protected]>2014-01-21 08:55:07 +0100
commita682bc7e46f5a269fd8b6f58bdbe73384f6c76aa (patch)
treea9f1760e66b5ab730ad1d3ec25f7ade6d4e709b4 /src/Makefile.include
parentMerge pull request #3557 (diff)
parentBugfix: Use BOOST_CPPFLAGS when testing for boost sleep vs sleep_for (diff)
downloaddiscoin-a682bc7e46f5a269fd8b6f58bdbe73384f6c76aa.tar.xz
discoin-a682bc7e46f5a269fd8b6f58bdbe73384f6c76aa.zip
Merge pull request #3242
2041365 Bugfix: Use BOOST_CPPFLAGS when testing for boost sleep vs sleep_for (Luke Dashjr) e18e100 configure: Minor grammatical changes to be more clear (Luke Dashjr) a9dbcf0 configure: Change --with[out]-qt to --with[out]-gui and add --with[out]-cli and --with[out]-daemon to support more build configurations (Luke Dashjr) f472990 Bugfix: Correct captitalisation of Qt (Luke Dashjr) f930341 configure: Internal changes to make building bitcoind and bitcoin-cli optional (Luke Dashjr) 4a290b5 Cleanup LevelDB library dependencies (Luke Dashjr) 9b4e03b Bugfix: Undefine _FORTIFY_SOURCE before redefining it, to avoid warnings on compilers that define it by default (Luke Dashjr) 123e4f8 Bugfix: configure: Allow user-provided CXXFLAGS to override default optimisation, debug, and warning flags (Luke Dashjr)
Diffstat (limited to 'src/Makefile.include')
-rw-r--r--src/Makefile.include15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Makefile.include b/src/Makefile.include
index b9e6c262c..01b47d1aa 100644
--- a/src/Makefile.include
+++ b/src/Makefile.include
@@ -1,23 +1,30 @@
+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
+
AM_CPPFLAGS = $(INCLUDES) \
-I$(top_builddir)/src/obj \
- -I$(top_srcdir)/src/leveldb/include \
$(BDB_CPPFLAGS) \
- $(BOOST_INCLUDES)
+ $(BOOST_CPPFLAGS) $(BOOST_INCLUDES)
+AM_CPPFLAGS += $(LEVELDB_CPPFLAGS)
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)
+if EMBEDDED_LEVELDB
$(LIBLEVELDB) $(LIBMEMENV):
$(MAKE) -C $(top_builddir)/src leveldb/$(@F)
+endif
$(LIBBITCOINQT):
$(MAKE) -C $(top_builddir)/src/qt $(@F)