Skip to content

Commit

Permalink
build: move bitcoin-config.h to its own directory
Browse files Browse the repository at this point in the history
This allows us to include its path without making other header includes valid.
  • Loading branch information
theuni authored and sipa committed Jun 21, 2014
1 parent 3820e01 commit 5437248
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ AC_ARG_WITH([protoc-bindir],[AS_HELP_STRING([--with-protoc-bindir=BIN_DIR],[spec


AC_CONFIG_SRCDIR([src])
AC_CONFIG_HEADERS([src/bitcoin-config.h])
AC_CONFIG_HEADERS([src/config/bitcoin-config.h])

dnl Checks for programs.
AC_PROG_CXX
Expand Down
4 changes: 3 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ $(LIBLEVELDB) $(LIBMEMENV):
OPT="$(CXXFLAGS) $(CPPFLAGS)"
endif

BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS)
BITCOIN_CONFIG_INCLUDES=-I$(builddir)/config
BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BITCOIN_CONFIG_INCLUDES) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS)

noinst_LIBRARIES = \
libbitcoin_server.a \
Expand Down Expand Up @@ -219,6 +220,7 @@ EXTRA_DIST = leveldb
clean-local:
-$(MAKE) -C leveldb clean
rm -f leveldb/*/*.gcno leveldb/helpers/memenv/*.gcno
-rm -f config.h

.rc.o:
@test -f $(WINDRES)
Expand Down
Empty file added src/config/.empty
Empty file.

0 comments on commit 5437248

Please sign in to comment.