[build] add --enable-dev-tools configure flag

This builds tools that I want to keep in the same code base, but not
intended for general release.
This commit is contained in:
Joe Thornber
2016-02-24 13:41:43 +00:00
parent f193a70a31
commit 5f879237f5
5 changed files with 58 additions and 1 deletions

View File

@@ -95,7 +95,14 @@ SOURCE=\
thin-provisioning/thin_restore.cc \
thin-provisioning/thin_rmap.cc \
thin-provisioning/thin_trim.cc \
thin-provisioning/xml_format.cc
thin-provisioning/xml_format.cc \
DEVTOOLS_SOURCE=\
thin-provisioning/thin_generate_metadata.cc
ifeq ("@DEVTOOLS@", "yes")
SOURCE+=$(DEVTOOLS_SOURCE)
endif
CC:=@CC@
CXX:=@CXX@
@@ -106,6 +113,11 @@ TOP_BUILDDIR:=@top_builddir@
CFLAGS+=-g -Wall -O3
CFLAGS+=@LFS_FLAGS@
CXXFLAGS+=-g -Wall -fno-strict-aliasing -std=c++11
ifeq ("@DEVTOOLS@", "yes")
CXXFLAGS+=-DDEV_TOOLS
endif
CXXFLAGS+=@CXXOPTIMISE_FLAG@
CXXFLAGS+=@CXXDEBUG_FLAG@
CXXFLAGS+=@CXX_STRERROR_FLAG@