configure: Simplify common AM_CPPFLAGS and AM_LDFLAGS to a Makefile.common
This commit is contained in:
parent
fb4a31a26c
commit
eb12a14da7
6 changed files with 21 additions and 24 deletions
|
@ -1,8 +1,7 @@
|
||||||
include Makefile.include
|
include Makefile.include
|
||||||
AM_CPPFLAGS = $(INCLUDES) -I$(top_builddir)/src/obj \
|
|
||||||
-I$(top_srcdir)/src/leveldb/include -I$(top_srcdir)/src/leveldb/helpers \
|
AM_CPPFLAGS += -I$(top_srcdir)/src/leveldb/helpers/memenv \
|
||||||
-I$(builddir) $(BOOST_INCLUDES) $(BDB_CPPFLAGS)
|
-I$(builddir)
|
||||||
AM_LDFLAGS = $(PTHREAD_CFLAGS)
|
|
||||||
|
|
||||||
noinst_LIBRARIES = libbitcoin.a
|
noinst_LIBRARIES = libbitcoin.a
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
# Helper for rules and subdir Makefiles to find parent targets.
|
AM_CPPFLAGS = $(INCLUDES) \
|
||||||
# Flags and other non-target variables should not be set here.
|
-I$(top_builddir)/src/obj \
|
||||||
|
-I$(top_srcdir)/src/leveldb/include \
|
||||||
|
$(BDB_CPPFLAGS) \
|
||||||
|
$(BOOST_INCLUDES)
|
||||||
|
AM_LDFLAGS = $(PTHREAD_CFLAGS)
|
||||||
|
|
||||||
LIBBITCOIN=$(top_builddir)/src/libbitcoin.a
|
LIBBITCOIN=$(top_builddir)/src/libbitcoin.a
|
||||||
LIBLEVELDB=$(top_builddir)/src/leveldb/libleveldb.a
|
LIBLEVELDB=$(top_builddir)/src/leveldb/libleveldb.a
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include <leveldb/cache.h>
|
#include <leveldb/cache.h>
|
||||||
#include <leveldb/env.h>
|
#include <leveldb/env.h>
|
||||||
#include <leveldb/filter_policy.h>
|
#include <leveldb/filter_policy.h>
|
||||||
#include <memenv/memenv.h>
|
#include <memenv.h>
|
||||||
|
|
||||||
void HandleError(const leveldb::Status &status) throw(leveldb_error) {
|
void HandleError(const leveldb::Status &status) throw(leveldb_error) {
|
||||||
if (status.ok())
|
if (status.ok())
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
include $(top_srcdir)/src/Makefile.include
|
include $(top_srcdir)/src/Makefile.include
|
||||||
|
|
||||||
AM_CPPFLAGS = $(INCLUDES) -I$(top_builddir)/src/obj \
|
AM_CPPFLAGS += -I$(top_srcdir)/src \
|
||||||
-I$(top_srcdir)/src/leveldb/include -I$(top_srcdir)/src \
|
-I$(top_builddir)/src/qt \
|
||||||
-I$(top_srcdir)/src/leveldb/helpers -I$(top_builddir)/src/qt \
|
-I$(top_builddir)/src/qt/forms \
|
||||||
-I$(top_builddir)/src/qt/forms $(BOOST_INCLUDES) $(PROTOBUF_CFLAGS) \
|
$(PROTOBUF_CFLAGS) \
|
||||||
$(QR_CFLAGS) $(BDB_CPPFLAGS)
|
$(QR_CFLAGS)
|
||||||
AM_LDFLAGS = $(PTHREAD_CFLAGS)
|
|
||||||
bin_PROGRAMS = bitcoin-qt
|
bin_PROGRAMS = bitcoin-qt
|
||||||
noinst_LIBRARIES = libbitcoinqt.a
|
noinst_LIBRARIES = libbitcoinqt.a
|
||||||
SUBDIRS = $(BUILD_TEST_QT)
|
SUBDIRS = $(BUILD_TEST_QT)
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
include $(top_srcdir)/src/Makefile.include
|
include $(top_srcdir)/src/Makefile.include
|
||||||
|
|
||||||
AM_CPPFLAGS = $(INCLUDES) -I$(top_builddir)/src/obj \
|
AM_CPPFLAGS += -I$(top_srcdir)/src \
|
||||||
-I$(top_srcdir)/src/leveldb/include -I$(top_srcdir)/src \
|
-I$(top_srcdir)/src/qt \
|
||||||
-I$(top_srcdir)/src/leveldb/helpers -I$(top_srcdir)/src/qt \
|
-I$(top_builddir)/src/qt \
|
||||||
-I$(top_builddir)/src/qt $(BOOST_INCLUDES) $(PROTOBUF_CFLAGS) \
|
$(PROTOBUF_CFLAGS) \
|
||||||
$(QR_CFLAGS) $(BDB_CPPFLAGS)
|
$(QR_CFLAGS)
|
||||||
AM_LDFLAGS = $(PTHREAD_CFLAGS)
|
|
||||||
bin_PROGRAMS = test_bitcoin-qt
|
bin_PROGRAMS = test_bitcoin-qt
|
||||||
TESTS = test_bitcoin-qt
|
TESTS = test_bitcoin-qt
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
include $(top_srcdir)/src/Makefile.include
|
include $(top_srcdir)/src/Makefile.include
|
||||||
|
|
||||||
AM_CPPFLAGS = $(INCLUDES) -I$(top_builddir)/src/obj \
|
AM_CPPFLAGS += -I$(top_srcdir)/src
|
||||||
-I$(top_srcdir)/src/leveldb/include -I$(top_srcdir)/src/leveldb/helpers \
|
|
||||||
-I$(top_srcdir)/src $(BOOST_INCLUDES) $(BDB_CPPFLAGS)
|
|
||||||
|
|
||||||
AM_LDFLAGS = $(PTHREAD_CFLAGS)
|
|
||||||
|
|
||||||
bin_PROGRAMS = test_bitcoin
|
bin_PROGRAMS = test_bitcoin
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue