summaryrefslogtreecommitdiff
path: root/libdm/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'libdm/Makefile.in')
-rw-r--r--libdm/Makefile.in54
1 files changed, 35 insertions, 19 deletions
diff --git a/libdm/Makefile.in b/libdm/Makefile.in
index bddb0a0..2758648 100644
--- a/libdm/Makefile.in
+++ b/libdm/Makefile.in
@@ -10,22 +10,28 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software Foundation,
-# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
+abs_srcdir = @abs_srcdir@
+
+SUBDIRS=dm-tools
SOURCES =\
datastruct/bitset.c \
datastruct/hash.c \
datastruct/list.c \
libdm-common.c \
- libdm-file.c \
+ libdm-config.c \
libdm-deptree.c \
- libdm-string.c \
+ libdm-file.c \
libdm-report.c \
- libdm-config.c \
+ libdm-stats.c \
+ libdm-string.c \
+ libdm-targets.c \
+ libdm-timestamp.c \
mm/dbg_malloc.c \
mm/pool.c \
regex/matcher.c \
@@ -33,10 +39,7 @@ SOURCES =\
regex/ttree.c \
$(interface)/libdm-iface.c
-INCLUDES = -I$(srcdir)/$(interface) -I$(srcdir)
-ifeq ("@VALGRIND_POOL@", "yes")
-INCLUDES += @VALGRIND_CFLAGS@
-endif
+INCLUDES = -I$(srcdir)/$(interface)
ifeq ("@STATIC_LINK@", "yes")
LIB_STATIC = $(interface)/libdevmapper.a
@@ -44,7 +47,7 @@ endif
LIB_SHARED = $(interface)/libdevmapper.$(LIB_SUFFIX)
LIB_VERSION = $(LIB_VERSION_DM)
-TARGETS += libdevmapper.$(LIB_SUFFIX) libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION)
+TARGETS = libdevmapper.$(LIB_SUFFIX) libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION) .symver_check
CFLOW_LIST = $(SOURCES)
CFLOW_LIST_TARGET = libdevmapper.cflow
@@ -52,17 +55,27 @@ CFLOW_LIST_TARGET = libdevmapper.cflow
EXPORTED_HEADER = $(srcdir)/libdevmapper.h
EXPORTED_FN_PREFIX = dm
-include $(top_builddir)/make.tmpl
+include $(top_builddir)/libdm/make.tmpl
-DEFS += -DDM_DEVICE_UID=@DM_DEVICE_UID@ -DDM_DEVICE_GID=@DM_DEVICE_GID@ \
- -DDM_DEVICE_MODE=@DM_DEVICE_MODE@
+PROGS_CFLAGS = $(UDEV_CFLAGS)
-LIBS += $(SELINUX_LIBS) $(UDEV_LIBS)
+device-mapper: $(TARGETS)
-device-mapper: all
+dm-tools.device-mapper: device-mapper
libdevmapper.$(LIB_SUFFIX) libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION): $(LIB_SHARED)
- $(LN_S) -f $< $@
+ @echo " [LN] $<"
+ $(Q) $(LN_S) -f $< $@
+
+# Check versioned build when default versioned symbol is present @@
+# also the older symbol is built-in
+.symver_check: $(LIB_SHARED)
+ @echo " [CHECK] $<"
+ $(Q) if $(READELF) -Ws $< | grep -q dm_stats_create_region@@; then \
+ SYM=$$($(READELF) -Ws $< | grep dm_stats_create_region@DM_1_02_106); \
+ if test -n "$$SYM"; then touch $@; \
+ else echo >&2 "Missing versioned symbols in $<"; false; fi; \
+ else touch $@; fi
.PHONY: install_dynamic install_static install_include \
install_ioctl install_ioctl_static \
@@ -83,7 +96,8 @@ install: $(INSTALL_TYPE) install_include
install_device-mapper: install
install_include: $(srcdir)/libdevmapper.h
- $(INSTALL_DATA) -D $< $(includedir)/$(<F)
+ @echo " [INSTALL] $<"
+ $(Q) $(INSTALL_DATA) -D $< $(includedir)/$(<F)
install_dynamic: install_@interface@
@@ -92,10 +106,12 @@ install_static: install_@interface@_static
install_ioctl: install_lib_shared
install_pkgconfig: libdevmapper.pc
- $(INSTALL_DATA) -D $< $(pkgconfigdir)/devmapper.pc
+ @echo " [INSTALL] $<"
+ $(Q) $(INSTALL_DATA) -D $< $(pkgconfigdir)/devmapper.pc
install_ioctl_static: $(LIB_STATIC)
- $(INSTALL_DATA) -D $< $(usrlibdir)/$(<F)
+ @echo " [INSTALL] $<"
+ $(Q) $(INSTALL_DATA) -D $< $(usrlibdir)/$(<F)
CLEAN_TARGETS += ioctl/libdevmapper.a
-DISTCLEAN_TARGETS += libdevmapper.pc .exported_symbols_generated
+DISTCLEAN_TARGETS += libdevmapper.pc make.tmpl