summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/Makefile.in
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2006-02-03 21:31:00 +0000
committerAlasdair Kergon <agk@redhat.com>2006-02-03 21:31:00 +0000
commita0d0eda9b3ad73d35f11708974874ef509230bd2 (patch)
treedd0b0563c240b8a9ae0baeca34e56bc169bcc5e7 /daemons/clvmd/Makefile.in
parentd8f0eeb03957bd1e7b7283fa883cd947d9d447ce (diff)
downloadlvm2-a0d0eda9b3ad73d35f11708974874ef509230bd2.tar.gz
lvm2-a0d0eda9b3ad73d35f11708974874ef509230bd2.tar.xz
lvm2-a0d0eda9b3ad73d35f11708974874ef509230bd2.zip
tweak clvmd makefile
Diffstat (limited to 'daemons/clvmd/Makefile.in')
-rw-r--r--daemons/clvmd/Makefile.in13
1 files changed, 11 insertions, 2 deletions
diff --git a/daemons/clvmd/Makefile.in b/daemons/clvmd/Makefile.in
index af6763d4..bf1e6fa7 100644
--- a/daemons/clvmd/Makefile.in
+++ b/daemons/clvmd/Makefile.in
@@ -53,10 +53,19 @@ endif
TARGETS = \
clvmd
-include $(top_srcdir)/make.tmpl
+LVMLIBS = -llvm
+
+ifeq ("@DMEVENTD@", "yes")
+ LVMLIBS += -ldevmapper-event -lpthread
+endif
+
+ifeq ("@DEVMAPPER@", "yes")
+ LVMLIBS += -ldevmapper
+endif
CFLAGS += -D_REENTRANT -fno-strict-aliasing
-LIBS += -ldevmapper -llvm -lpthread
+
+include $(top_srcdir)/make.tmpl
INSTALL_TARGETS = \
install_clvmd