summaryrefslogtreecommitdiffstats
path: root/daemons
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-10-02 19:10:31 +0000
committerAlasdair Kergon <agk@redhat.com>2009-10-02 19:10:31 +0000
commitdb8b5af9d94f537b6e9c9483c2bde06ac9edb621 (patch)
tree11cca90b013c731ba7060d0f608657127fb794dc /daemons
parent1ae301590bbdebdcd7464e52fed7c49c12fa00bf (diff)
downloadlvm2-db8b5af9d94f537b6e9c9483c2bde06ac9edb621.tar.gz
lvm2-db8b5af9d94f537b6e9c9483c2bde06ac9edb621.tar.xz
lvm2-db8b5af9d94f537b6e9c9483c2bde06ac9edb621.zip
Allow for a build directory separate from the source.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/Makefile.in3
-rw-r--r--daemons/clvmd/Makefile.in5
-rw-r--r--daemons/cmirrord/Makefile.in5
-rw-r--r--daemons/dmeventd/Makefile.in5
-rw-r--r--daemons/dmeventd/plugins/Makefile.in3
-rw-r--r--daemons/dmeventd/plugins/mirror/Makefile.in5
-rw-r--r--daemons/dmeventd/plugins/snapshot/Makefile.in5
7 files changed, 19 insertions, 12 deletions
diff --git a/daemons/Makefile.in b/daemons/Makefile.in
index ee4efe87..92773bb6 100644
--- a/daemons/Makefile.in
+++ b/daemons/Makefile.in
@@ -13,6 +13,7 @@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
+top_builddir = @top_builddir@
VPATH = @srcdir@
.PHONY: dmeventd clvmd cmirrord
@@ -29,7 +30,7 @@ ifeq ("@BUILD_DMEVENTD@", "yes")
SUBDIRS += dmeventd
endif
-include $(top_srcdir)/make.tmpl
+include ../make.tmpl
ifeq ("@BUILD_DMEVENTD@", "yes")
device-mapper: dmeventd.device-mapper
diff --git a/daemons/clvmd/Makefile.in b/daemons/clvmd/Makefile.in
index c23b51eb..109a8b0a 100644
--- a/daemons/clvmd/Makefile.in
+++ b/daemons/clvmd/Makefile.in
@@ -13,6 +13,7 @@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
+top_builddir = @top_builddir@
VPATH = @srcdir@
CCS_LIBS = @CCS_LIBS@
@@ -85,12 +86,12 @@ LVMLIBS += -ldevmapper
DEFS += -D_REENTRANT
CFLAGS += -fno-strict-aliasing
-include $(top_srcdir)/make.tmpl
+include ../../make.tmpl
INSTALL_TARGETS = \
install_clvmd
-clvmd: $(OBJECTS) $(top_srcdir)/lib/liblvm-internal.a
+clvmd: $(OBJECTS) $(top_builddir)/lib/liblvm-internal.a
$(CC) -o clvmd $(OBJECTS) $(CFLAGS) $(LDFLAGS) \
$(LVMLIBS) $(LMLIBS) $(LIBS)
diff --git a/daemons/cmirrord/Makefile.in b/daemons/cmirrord/Makefile.in
index add4d55b..2bf1e351 100644
--- a/daemons/cmirrord/Makefile.in
+++ b/daemons/cmirrord/Makefile.in
@@ -13,6 +13,7 @@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
+top_builddir = @top_builddir@
VPATH = @srcdir@
CPG_LIBS = @CPG_LIBS@
@@ -24,13 +25,13 @@ SOURCES = clogd.c cluster.c functions.c link_mon.c local.c logging.c
TARGETS = cmirrord
-include $(top_srcdir)/make.tmpl
+include ../../make.tmpl
LIBS += -ldevmapper
LMLIBS += $(CPG_LIBS) $(SACKPT_LIBS)
CFLAGS += $(CPG_CFLAGS) $(SACKPT_CFLAGS)
-cmirrord: $(OBJECTS) $(top_srcdir)/lib/liblvm-internal.a
+cmirrord: $(OBJECTS) $(top_builddir)/lib/liblvm-internal.a
$(CC) -o cmirrord $(OBJECTS) $(LDFLAGS) \
$(LVMLIBS) $(LMLIBS) $(LIBS)
diff --git a/daemons/dmeventd/Makefile.in b/daemons/dmeventd/Makefile.in
index 1e659e04..e16b1454 100644
--- a/daemons/dmeventd/Makefile.in
+++ b/daemons/dmeventd/Makefile.in
@@ -13,6 +13,7 @@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
+top_builddir = @top_builddir@
VPATH = @srcdir@
SOURCES = libdevmapper-event.c
@@ -36,7 +37,7 @@ ifneq ($(MAKECMDGOALS),device-mapper)
SUBDIRS+=plugins
endif
-include $(top_srcdir)/make.tmpl
+include ../../make.tmpl
all: dmeventd
device-mapper: dmeventd $(LIB_STATIC)
@@ -66,7 +67,7 @@ install: $(INSTALL_TYPE) install_include install_dmeventd
install_device-mapper: $(INSTALL_TYPE) install_include install_dmeventd
install_include:
- $(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper-event.h \
+ $(INSTALL) -D $(OWNER) $(GROUP) -m 444 $(srcdir)/libdevmapper-event.h \
$(includedir)/libdevmapper-event.h
install_dynamic: libdevmapper-event.$(LIB_SUFFIX)
diff --git a/daemons/dmeventd/plugins/Makefile.in b/daemons/dmeventd/plugins/Makefile.in
index 7fe9dc82..d6590410 100644
--- a/daemons/dmeventd/plugins/Makefile.in
+++ b/daemons/dmeventd/plugins/Makefile.in
@@ -14,9 +14,10 @@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
+top_builddir = @top_builddir@
VPATH = @srcdir@
SUBDIRS += mirror snapshot
-include $(top_srcdir)/make.tmpl
+include ../../../make.tmpl
diff --git a/daemons/dmeventd/plugins/mirror/Makefile.in b/daemons/dmeventd/plugins/mirror/Makefile.in
index 51eaba60..1bc586a3 100644
--- a/daemons/dmeventd/plugins/mirror/Makefile.in
+++ b/daemons/dmeventd/plugins/mirror/Makefile.in
@@ -14,10 +14,11 @@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
+top_builddir = @top_builddir@
VPATH = @srcdir@
INCLUDES += -I${top_srcdir}/tools
-CLDFLAGS += -L${top_srcdir}/tools -ldevmapper @LVM2CMD_LIB@
+CLDFLAGS += -L${top_builddir}/tools -ldevmapper @LVM2CMD_LIB@
SOURCES = dmeventd_mirror.c
@@ -29,7 +30,7 @@ endif
LIB_VERSION = $(LIB_VERSION_LVM)
-include $(top_srcdir)/make.tmpl
+include $(top_builddir)/make.tmpl
install_lvm2: libdevmapper-event-lvm2mirror.$(LIB_SUFFIX)
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
diff --git a/daemons/dmeventd/plugins/snapshot/Makefile.in b/daemons/dmeventd/plugins/snapshot/Makefile.in
index 863838f1..27791542 100644
--- a/daemons/dmeventd/plugins/snapshot/Makefile.in
+++ b/daemons/dmeventd/plugins/snapshot/Makefile.in
@@ -14,10 +14,11 @@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
+top_builddir = @top_builddir@
VPATH = @srcdir@
INCLUDES += -I${top_srcdir}/tools
-CLDFLAGS += -L${top_srcdir}/tools -ldevmapper @LVM2CMD_LIB@
+CLDFLAGS += -L${top_builddir}/tools -ldevmapper @LVM2CMD_LIB@
SOURCES = dmeventd_snapshot.c
@@ -29,7 +30,7 @@ endif
LIB_VERSION = $(LIB_VERSION_LVM)
-include $(top_srcdir)/make.tmpl
+include $(top_builddir)/make.tmpl
install_lvm2: libdevmapper-event-lvm2snapshot.$(LIB_SUFFIX)
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \