[dm-devel] [PATCH 33/33] Make libdmmp build optional
Martin Wilck
mwilck at suse.com
Tue Feb 28 16:23:29 UTC 2017
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
Makefile | 6 +++++-
Makefile.inc | 3 +++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 9f8bf775..cfee0d07 100644
--- a/Makefile
+++ b/Makefile
@@ -30,12 +30,16 @@ BUILDDIRS = \
libmultipath/prioritizers \
libmultipath/checkers \
libmpathpersist \
- libdmmp \
multipath \
multipathd \
mpathpersist \
kpartx
+ifneq ($(ENABLE_LIBDMMP),0)
+BUILDDIRS += \
+ libdmmp
+endif
+
all: recurse
recurse:
diff --git a/Makefile.inc b/Makefile.inc
index b5e910f9..740081e3 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -11,6 +11,9 @@
#
# Uncomment to disable RADOS support (e.g. if rados headers are missing).
# ENABLE_RADOS = 0
+#
+# Uncomment to disable libdmmp support
+# ENABLE_LIBDMMP = 0
ifeq ($(TOPDIR),)
TOPDIR = ..
--
2.11.0
More information about the dm-devel
mailing list