LVM2 ./Makefile.in ./make.tmpl.in daemons/Make ...
Subsystems (2)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-03-29 14:11:18
Modified files:
. : Makefile.in make.tmpl.in
daemons : Makefile.in
daemons/dmeventd: Makefile.in daemons/dmeventd/plugins/mirror: Makefile.in
include : Makefile.in
lib : Makefile.in
libdm : Makefile.in
tools : Makefile.in
Log message:
Update cflow file generation - support build dir and use $(top_srcdir) to obtain sources. Create make.tmpl target for
simplier generation of cflow files with the help of CFLOW_LIST, CFLOW_LIST_TARGET, CFLOW_TARGET.
Still cflow usage is not perfect.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/Makefile.in.diff?cvsroot=lvm2&r1=1.45&r2=1.46
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/make.tmpl.in.diff?cvsroot=lvm2&r1=1.84&r2=1.85
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/Makefile.in.diff?cvsroot=lvm2&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/dmeventd/Makefile.in.diff?cvsroot=lvm2&r1=1.37&r2=1.38
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/dmeventd/plugins/mirror/Makefile.in.diff?cvsroot=lvm2&r1=1.16&r2=1.17
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/include/Makefile.in.diff?cvsroot=lvm2&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/Makefile.in.diff?cvsroot=lvm2&r1=1.98&r2=1.99
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/Makefile.in.diff?cvsroot=lvm2&r1=1.50&r2=1.51
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/Makefile.in.diff?cvsroot=lvm2&r1=1.111&r2=1.112
Makefile.in +4 -3
@@ -65,9 +65,10 @@ pofile: po.pofile endif -ifneq ("@CFLOW_CMD@", "") -tools.cflow: lib.cflow -cflow: tools.cflow +ifneq ("$(CFLOW_CMD)", "") +tools.cflow: libdm.cflow lib.cflow +daemons.cflow: tools.cflow +cflow: include.cflow endif ifneq ("@CSCOPE_CMD@", "")
make.tmpl.in +55 -6
95 lines not on this page · raw message
daemons/Makefile.in +4 -1
@@ -1,5 +1,5 @@ # -# Copyright (C) 2004 Red Hat, Inc. All rights reserved. +# Copyright (C) 2004-2010 Red Hat, Inc. All rights reserved. # # This file is part of LVM2. #
@@ -28,6 +28,9 @@ ifeq ("@BUILD_DMEVENTD@", "yes") SUBDIRS += dmeventd +ifneq ("$(CFLOW_CMD)", "") +daemons.cflow: dmeventd.cflow +endif endif ifeq ($(MAKECMDGOALS),distclean)
daemons/dmeventd/Makefile.in +15 -2
@@ -1,5 +1,5 @@ # -# Copyright (C) 2005-2007 Red Hat, Inc. All rights reserved. +# Copyright (C) 2005-2010 Red Hat, Inc. All rights reserved. # # This file is part of the device-mapper userspace tools. #
@@ -43,12 +43,16 @@ VERSIONED_SHLIB = $(LIB_SHARED).$(LIB_VERSION) endif -CLEAN_TARGETS = dmeventd.o dmeventd.static dmeventd.gcda dmeventd.gcno +CLEAN_TARGETS = dmeventd.static $(LIB_NAME).a ifneq ($(MAKECMDGOALS),device-mapper) SUBDIRS+=plugins endif +CFLOW_LIST = $(SOURCES) +CFLOW_LIST_TARGET = $(LIB_NAME).cflow +CFLOW_TARGET = dmeventd + include $(top_builddir)/make.tmpl all: device-mapper
@@ -72,6 +76,15 @@ INSTALL_LIB_TARGETS += install_pkgconfig endif +ifneq ("$(CFLOW_CMD)", "") +CFLOW_SOURCES = $(addprefix $(srcdir)/, $(SOURCES)) +-include $(top_builddir)/libdm/libdevmapper.cflow +-include $(top_builddir)/lib/liblvm-internal.cflow +-include $(top_builddir)/lib/liblvm2cmd.cflow +-include $(top_builddir)/daemons/dmeventd/$(LIB_NAME).cflow +-include $(top_builddir)/daemons/dmeventd/plugins/mirror/$(LIB_NAME)-lvm2mirror.cflow +endif + install_include: $(INSTALL) -D $(OWNER) $(GROUP) -m 444 $(srcdir)/libdevmapper-event.h \ $(includedir)/libdevmapper-event.h
daemons/dmeventd/plugins/mirror/Makefile.in +7 -3
@@ -22,19 +22,23 @@ SOURCES = dmeventd_mirror.c +LIB_NAME = libdevmapper-event-lvm2mirror ifeq ("@LIB_SUFFIX@","dylib") - LIB_SHARED = libdevmapper-event-lvm2mirror.dylib + LIB_SHARED = $(LIB_NAME).dylib else - LIB_SHARED = libdevmapper-event-lvm2mirror.so + LIB_SHARED = $(LIB_NAME).so endif LIB_VERSION = $(LIB_VERSION_LVM) +CFLOW_LIST = $(SOURCES) +CFLOW_LIST_TARGET = $(LIB_NAME).cflow + include $(top_builddir)/make.tmpl LIBS += @LVM2CMD_LIB@ -ldevmapper-event-lvm2 -ldevmapper $(PTHREAD_LIBS) -install_lvm2: libdevmapper-event-lvm2mirror.$(LIB_SUFFIX) +install_lvm2: $(LIB_NAME).$(LIB_SUFFIX) $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \ $(libdir)/$<
include/Makefile.in +1 -2
@@ -48,5 +48,4 @@ install_lvm2: -cflow: - +cflow: all
lib/Makefile.in +3 -10
@@ -150,8 +150,6 @@ LIB_NAME = liblvm-internal LIB_STATIC = $(LIB_NAME).a -CLEAN_TARGETS += $(LIB_NAME).cflow - ifeq ($(MAKECMDGOALS),distclean) SUBDIRS =\ format1 \
@@ -161,14 +159,9 @@ locking endif +CFLOW_LIST = $(SOURCES) +CFLOW_LIST_TARGET = $(LIB_NAME).cflow + include $(top_builddir)/make.tmpl $(SUBDIRS): $(LIB_STATIC) - -$(LIB_NAME).cflow: $(SOURCES) - set -e; (echo -n "SOURCES += "; \ - echo $(SOURCES) | \ - sed "s/^/ /;s/ / $(top_srcdir)\/lib\//g;s/$$//"; \ - ) > $@ - -cflow: $(LIB_NAME).cflow
libdm/Makefile.in +3 -0
@@ -47,6 +47,9 @@ VERSIONED_SHLIB = libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION_DM) LIB_VERSION = $(LIB_VERSION_DM) +CFLOW_LIST = $(SOURCES) +CFLOW_LIST_TARGET = libdevmapper.cflow + include $(top_builddir)/make.tmpl DEFS += -DDM_DEVICE_UID=@DM_DEVICE_UID@ -DDM_DEVICE_GID=@DM_DEVICE_GID@ \
tools/Makefile.in +7 -15
@@ -89,7 +89,6 @@ CLEAN_TARGETS = liblvm2cmd.$(LIB_SUFFIX) liblvm2cmd.a liblvm2cmd-static.a lvm lvm.o \ lvm2cmd.o lvm2cmd-static.o lvm2cmdlib.o lvm.static \ - lvm.cflow lvm.xref lvm.tree lvm.rxref lvm.rtree \ lvmcmdlib.o lvm-static.o dmsetup.o $(TARGETS_DM) ifeq ("@CMDLIB@", "yes")
@@ -105,6 +104,10 @@ DEFS += -DLVM_SHARED_PATH=\"$(exec_prefix)/sbin/lvm\" +CFLOW_LIST = lvmcmdlib.c lvm2cmd.c +CFLOW_LIST_TARGET = liblvm2cmd.cflow +CFLOW_TARGET = lvm + include $(top_builddir)/make.tmpl LIBS += $(UDEV_LIBS)
@@ -147,20 +150,9 @@ install_tools_dynamic install_tools_static ifneq ("$(CFLOW_CMD)", "") -CFLOW_FLAGS += --cpp="$(CC) -E" -.PHONY: lvm.cflow --include $(top_srcdir)/lib/liblvm-internal.cflow -lvm.cflow: $(SOURCES) - $(CFLOW_CMD) -o$@ $(CFLOW_FLAGS) $(INCLUDES) $(DEFS) $(SOURCES) -lvm.rxref: $(SOURCES) - $(CFLOW_CMD) -o$@ --cpp="$(CC) -E" -r --omit-arguments -x $(INCLUDES) $(DEFS) $(SOURCES) -lvm.xref: $(SOURCES) - $(CFLOW_CMD) -o$@ --cpp="$(CC) -E" --omit-arguments -x $(INCLUDES) $(DEFS) $(SOURCES) -lvm.rtree: $(SOURCES) - $(CFLOW_CMD) -o$@ --cpp="$(CC) -E" -r --omit-arguments -T -b $(INCLUDES) $(DEFS) $(SOURCES) -lvm.tree: $(SOURCES) - $(CFLOW_CMD) -o$@ --cpp="$(CC) -E" --omit-arguments -T -b $(INCLUDES) $(DEFS) $(SOURCES) -cflow: lvm.cflow lvm.xref lvm.tree lvm.rtree lvm.rxref +CFLOW_SOURCES = $(addprefix $(srcdir)/, $(SOURCES)) +-include $(top_builddir)/libdm/libdevmapper.cflow +-include $(top_builddir)/lib/liblvm-internal.cflow endif install_cmdlib_dynamic: liblvm2cmd.$(LIB_SUFFIX)