mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +03:00
Use $(top_builddir) for inclusion of make.tmpl in Makefiles.
This commit is contained in:
parent
c2fa9fa909
commit
814aebc4e9
@ -1,5 +1,6 @@
|
||||
Version 2.02.62 -
|
||||
====================================
|
||||
Use $(top_builddir) for inclusion of make.tmpl in Makefiles.
|
||||
Fix autoconf warning about ignored datarootdir.
|
||||
Increase AC_PREREQ version to 2.61 (for AC_PROC_SED, AC_PROG_MKDIR_P).
|
||||
Handle a misaligned device that reports a -1 alignment_offset.
|
||||
|
@ -30,7 +30,7 @@ ifeq ("@BUILD_DMEVENTD@", "yes")
|
||||
SUBDIRS += dmeventd
|
||||
endif
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
ifeq ("@BUILD_DMEVENTD@", "yes")
|
||||
device-mapper: dmeventd.device-mapper
|
||||
|
@ -86,7 +86,7 @@ LVMLIBS += -ldevmapper
|
||||
DEFS += -D_REENTRANT
|
||||
CFLAGS += -fno-strict-aliasing
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
INSTALL_TARGETS = \
|
||||
install_clvmd
|
||||
|
@ -25,7 +25,7 @@ SOURCES = clogd.c cluster.c compat.c functions.c link_mon.c local.c logging.c
|
||||
|
||||
TARGETS = cmirrord
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
LIBS += -ldevmapper
|
||||
LMLIBS += $(CPG_LIBS) $(SACKPT_LIBS)
|
||||
|
@ -48,7 +48,7 @@ ifneq ($(MAKECMDGOALS),device-mapper)
|
||||
SUBDIRS+=plugins
|
||||
endif
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
all: device-mapper
|
||||
device-mapper: $(TARGETS)
|
||||
|
@ -19,7 +19,7 @@ VPATH = @srcdir@
|
||||
|
||||
SUBDIRS += lvm2 mirror snapshot
|
||||
|
||||
include ../../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
mirror: lvm2
|
||||
snapshot: lvm2
|
||||
|
@ -19,7 +19,7 @@ VPATH = @srcdir@
|
||||
CONFSRC=example.conf
|
||||
CONFDEST=lvm.conf
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install_lvm2: $(CONFSRC)
|
||||
@if [ ! -e $(confdir)/$(CONFDEST) ]; then \
|
||||
|
@ -143,7 +143,7 @@ ifeq ("@HAVE_LIBDL@", "yes")
|
||||
endif
|
||||
|
||||
ifeq ("@DMEVENTD@", "yes")
|
||||
CLDFLAGS += -L../daemons/dmeventd
|
||||
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd
|
||||
LIBS += -ldevmapper-event
|
||||
endif
|
||||
|
||||
@ -152,7 +152,7 @@ LIB_STATIC = $(LIB_NAME).a
|
||||
|
||||
CLEAN_TARGETS += $(LIB_NAME).cflow
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
$(SUBDIRS): $(LIB_STATIC)
|
||||
|
||||
|
@ -29,7 +29,7 @@ SOURCES =\
|
||||
LIB_SHARED = liblvm2format1.so
|
||||
LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install: liblvm2format1.so
|
||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||
|
@ -26,7 +26,7 @@ SOURCES =\
|
||||
LIB_SHARED = liblvm2formatpool.so
|
||||
LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install: liblvm2formatpool.so
|
||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||
|
@ -22,7 +22,7 @@ SOURCES = cluster_locking.c
|
||||
LIB_SHARED = liblvm2clusterlock.so
|
||||
LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install install_cluster: liblvm2clusterlock.so
|
||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||
|
@ -22,7 +22,7 @@ SOURCES = mirrored.c
|
||||
LIB_SHARED = liblvm2mirror.so
|
||||
LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install: liblvm2mirror.so
|
||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||
|
@ -22,7 +22,7 @@ SOURCES = snapshot.c
|
||||
LIB_SHARED = liblvm2snapshot.so
|
||||
LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install: liblvm2snapshot.so
|
||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||
|
@ -50,7 +50,7 @@ LIB_VERSION = $(LIB_VERSION_DM)
|
||||
DEFS += -DDM_DEVICE_UID=@DM_DEVICE_UID@ -DDM_DEVICE_GID=@DM_DEVICE_GID@ \
|
||||
-DDM_DEVICE_MODE=@DM_DEVICE_MODE@
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
device-mapper: all
|
||||
|
||||
|
@ -40,7 +40,7 @@ endif
|
||||
|
||||
CLEAN_TARGETS += liblvm.cflow
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
LIBS += -ldevmapper -llvm-internal
|
||||
|
||||
|
@ -48,7 +48,7 @@ MAN8DIR=${mandir}/man8
|
||||
|
||||
CLEAN_TARGETS=$(MAN5) $(MAN8) $(MAN8CLUSTER) $(FSADMMAN) $(MAN8DM)
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
ifneq ("@CLVMD@", "none")
|
||||
install: install_cluster
|
||||
|
@ -22,8 +22,8 @@ SOURCES=\
|
||||
|
||||
TARGETS=dev_cache_t
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
dev_cache_t: dev_cache_t.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o dev_cache_t dev_cache_t.o -L$(top_srcdir)/lib -llvm
|
||||
$(CC) -o dev_cache_t dev_cache_t.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
|
@ -25,11 +25,11 @@ TARGETS=\
|
||||
rfilter_t \
|
||||
pfilter_t
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
rfilter_t: rfilter_t.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o rfilter_t rfilter_t.o -L$(top_srcdir)/lib -llvm
|
||||
$(CC) -o rfilter_t rfilter_t.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
pfilter_t: pfilter_t.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o pfilter_t pfilter_t.o -L$(top_srcdir)/lib -llvm
|
||||
$(CC) -o pfilter_t pfilter_t.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
|
@ -32,21 +32,21 @@ TARGETS=\
|
||||
read_pv_t \
|
||||
get_vgs_t
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
read_vg_t: read_vg_t.o pretty_print.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o read_vg_t read_vg_t.o pretty_print.o -L$(top_srcdir)/lib -llvm
|
||||
read_vg_t: read_vg_t.o pretty_print.o $(top_builddir)/lib/liblvm.a
|
||||
$(CC) -o read_vg_t read_vg_t.o pretty_print.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
write_vg_t: write_vg_t.o pretty_print.o $(top_srcdir)/lib/liblvm.a
|
||||
write_vg_t: write_vg_t.o pretty_print.o $(top_builddir)/lib/liblvm.a
|
||||
$(CC) -o write_vg_t write_vg_t.o pretty_print.o \
|
||||
-L$(top_srcdir)/lib -llvm
|
||||
-L$(top_builddir)/lib -llvm
|
||||
|
||||
get_pvs_t: get_pvs_t.o pretty_print.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o get_pvs_t get_pvs_t.o pretty_print.o -L$(top_srcdir)/lib -llvm
|
||||
get_pvs_t: get_pvs_t.o pretty_print.o $(top_builddir)/lib/liblvm.a
|
||||
$(CC) -o get_pvs_t get_pvs_t.o pretty_print.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
read_pv_t: read_pv_t.o pretty_print.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o read_pv_t read_pv_t.o pretty_print.o -L$(top_srcdir)/lib -llvm
|
||||
read_pv_t: read_pv_t.o pretty_print.o $(top_builddir)/lib/liblvm.a
|
||||
$(CC) -o read_pv_t read_pv_t.o pretty_print.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
get_vgs_t: get_vgs_t.o pretty_print.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o get_vgs_t get_vgs_t.o pretty_print.o -L$(top_srcdir)/lib -llvm
|
||||
get_vgs_t: get_vgs_t.o pretty_print.o $(top_builddir)/lib/liblvm.a
|
||||
$(CC) -o get_vgs_t get_vgs_t.o pretty_print.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
|
@ -22,12 +22,12 @@ SOURCES=\
|
||||
|
||||
TARGETS=dbg_malloc_t
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
dbg_malloc_t: dbg_malloc_t.o
|
||||
$(CC) $(CFLAGS) -o dbg_malloc_t dbg_malloc_t.o \
|
||||
-L$(top_srcdir)/lib -llvm
|
||||
-L$(top_builddir)/lib -llvm
|
||||
|
||||
pool_t: pool_t.o
|
||||
$(CC) $(CFLAGS) -o pool_t pool_t.o -L$(top_srcdir)/lib -llvm
|
||||
$(CC) $(CFLAGS) -o pool_t pool_t.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
|
@ -25,11 +25,11 @@ TARGETS=\
|
||||
parse_t \
|
||||
matcher_t
|
||||
|
||||
include ../../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
parse_t: parse_t.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o parse_t parse_t.o -L$(top_srcdir)/lib -llvm
|
||||
parse_t: parse_t.o $(top_builddir)/lib/liblvm.a
|
||||
$(CC) -o parse_t parse_t.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
matcher_t: matcher_t.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o matcher_t matcher_t.o -L$(top_srcdir)/lib -llvm
|
||||
matcher_t: matcher_t.o $(top_builddir)/lib/liblvm.a
|
||||
$(CC) -o matcher_t matcher_t.o -L$(top_builddir)/lib -llvm
|
||||
|
||||
|
@ -25,7 +25,7 @@ DM_POSOURCES = $(top_srcdir)/dmsetup/*.pot $(top_srcdir)/libdm/*.pot \
|
||||
|
||||
LVM_POSOURCES = $(top_srcdir)/tools/*.pot $(top_srcdir)/lib/*/*.pot
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
lvm2.po: Makefile $(LVM_POSOURCES)
|
||||
@echo Compiling string table
|
||||
|
@ -16,7 +16,7 @@ top_srcdir = @top_srcdir@
|
||||
top_builddir = @top_builddir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install:
|
||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(srcdir)/lvm_dump.sh \
|
||||
|
@ -107,7 +107,7 @@ LVMLIBS += -ldevmapper
|
||||
|
||||
DEFS += -DLVM_SHARED_PATH=\"$(exec_prefix)/sbin/lvm\"
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
device-mapper: $(TARGETS_DM)
|
||||
|
||||
|
@ -22,7 +22,7 @@ DM_DIR=$(shell grep "\#define DM_DIR" $(top_srcdir)/libdm/misc/dm-ioctl.h | awk
|
||||
|
||||
CLEAN_TARGETS=10-dm.rules
|
||||
|
||||
include ../make.tmpl
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
%: %.in
|
||||
$(SED) -e "s/(DM_DIR)/$(DM_DIR)/" $< >$@
|
||||
|
Loading…
Reference in New Issue
Block a user