]> sourceware.org Git - lvm2.git/blame - libdm/Makefile.in
Fix error message when pvmove LV activation fails with name already in use.
[lvm2.git] / libdm / Makefile.in
CommitLineData
8f47e579 1#
8b67f40d 2# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
23b059e7 3# Copyright (C) 2004-2010 Red Hat, Inc. All rights reserved.
8f47e579 4#
8b67f40d 5# This file is part of the device-mapper userspace tools.
8f47e579 6#
8b67f40d
AK
7# This copyrighted material is made available to anyone wishing to use,
8# modify, copy, or redistribute it subject to the terms and conditions
9# of the GNU Lesser General Public License v.2.1.
10#
11# You should have received a copy of the GNU Lesser General Public License
12# along with this program; if not, write to the Free Software Foundation,
13# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
8f47e579
AK
14
15srcdir = @srcdir@
16top_srcdir = @top_srcdir@
db8b5af9 17top_builddir = @top_builddir@
8f47e579 18
3d0480ed
AK
19SOURCES =\
20 datastruct/bitset.c \
21 datastruct/hash.c \
3e5b6ed2 22 datastruct/list.c \
3d0480ed
AK
23 libdm-common.c \
24 libdm-file.c \
25 libdm-deptree.c \
7d7736b7 26 libdm-string.c \
61997bb9 27 libdm-report.c \
e59e2f7c 28 libdm-config.c \
3d0480ed
AK
29 mm/dbg_malloc.c \
30 mm/pool.c \
38862fcd
AK
31 regex/matcher.c \
32 regex/parse_rx.c \
33 regex/ttree.c \
3d0480ed 34 $(interface)/libdm-iface.c
638754e5 35
db8b5af9 36INCLUDES = -I$(srcdir)/$(interface) -I$(srcdir)
8f47e579 37
beeae21d 38ifeq ("@STATIC_LINK@", "yes")
5c9e27f3 39LIB_STATIC = $(interface)/libdevmapper.a
beeae21d 40endif
3d2aecf0 41
23b059e7 42LIB_SHARED = $(interface)/libdevmapper.$(LIB_SUFFIX)
2c44337b 43LIB_VERSION = $(LIB_VERSION_DM)
23b059e7 44TARGETS += libdevmapper.$(LIB_SUFFIX) libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION)
5c9e27f3 45
b41f5924
ZK
46CFLOW_LIST = $(SOURCES)
47CFLOW_LIST_TARGET = libdevmapper.cflow
48
8b205571
AK
49EXPORTED_HEADER = $(srcdir)/libdevmapper.h
50EXPORTED_FN_PREFIX = dm
51
0c330786
ZK
52include $(top_builddir)/make.tmpl
53
2bd5b63f
AK
54DEFS += -DDM_DEVICE_UID=@DM_DEVICE_UID@ -DDM_DEVICE_GID=@DM_DEVICE_GID@ \
55 -DDM_DEVICE_MODE=@DM_DEVICE_MODE@
6b70629c 56
db724a44 57LIBS += $(SELINUX_LIBS) $(UDEV_LIBS)
f8f6ec92 58
0782ad50
AK
59device-mapper: all
60
23b059e7
ZK
61libdevmapper.$(LIB_SUFFIX) libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION): $(LIB_SHARED)
62 $(LN_S) -f $< $@
63
d81e3d0b 64.PHONY: install_dynamic install_static install_include \
1f84815c 65 install_ioctl install_ioctl_static \
0c8ff3ad 66 install_pkgconfig
f1568304 67
8398c19c
AK
68INSTALL_TYPE = install_dynamic
69
ef6c23b6 70ifeq ("@STATIC_LINK@", "yes")
8398c19c 71 INSTALL_TYPE += install_static
ef6c23b6
AK
72endif
73
0c8ff3ad
AK
74ifeq ("@PKGCONFIG@", "yes")
75 INSTALL_TYPE += install_pkgconfig
76endif
77
d81e3d0b
AK
78install: $(INSTALL_TYPE) install_include
79
77b69aa7
AK
80install_device-mapper: install
81
23b059e7
ZK
82install_include: $(srcdir)/libdevmapper.h
83 $(INSTALL_DATA) -D $< $(includedir)/$(<F)
ef6c23b6
AK
84
85install_dynamic: install_@interface@
8f47e579 86
04c7da67 87install_static: install_@interface@_static
4ab5b206 88
23b059e7 89install_ioctl: install_lib_shared
d917c98c 90
23b059e7 91install_pkgconfig: libdevmapper.pc
fff111fe 92 $(INSTALL_DATA) -D $< $(pkgconfigdir)/devmapper.pc
ef6c23b6 93
23b059e7
ZK
94install_ioctl_static: $(LIB_STATIC)
95 $(INSTALL_DATA) -D $< $(usrlibdir)/$(<F)
4cc80882 96
23b059e7 97CLEAN_TARGETS += ioctl/libdevmapper.a
56081fe9 98DISTCLEAN_TARGETS += libdevmapper.pc .exported_symbols_generated
This page took 0.078453 seconds and 5 git commands to generate.