summaryrefslogtreecommitdiff
path: root/libstore/Makefile
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-06-18 17:05:12 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-06-18 17:05:12 +0200
commit566222bce7a75f66cb7930f1808ab4aad4ab5d5e (patch)
tree31c120c61a8575c34ba327e5538dc9bfbb520bc2 /libstore/Makefile
parentc3f57e636d9456cce0e4274f5eb1f9fe44e4ffb9 (diff)
Build part only when parted support is enabled
* libstore/Makefile (store-types): Remove part. [HAVE_PARTED] (store-types): Add part. [HAVE_PARTED] (libstore.so-LDLIBS): Add -lparted.
Diffstat (limited to 'libstore/Makefile')
-rw-r--r--libstore/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/libstore/Makefile b/libstore/Makefile
index 2733119b..b1172c6a 100644
--- a/libstore/Makefile
+++ b/libstore/Makefile
@@ -40,11 +40,15 @@ store-types = \
module \
mvol \
nbd \
- part \
remap \
task \
zero
+ifeq (HAVE_PARTED,yes)
+store-types += part
+libstore.so-LDLIBS += -lparted
+endif
+
libstore.so-LDLIBS += -ldl
LCLHDRS=store.h
installhdrs=store.h