]> sourceware.org Git - lvm2.git/blame - liblvm/Makefile.in
pre-release
[lvm2.git] / liblvm / Makefile.in
CommitLineData
e0c64c6c
DW
1#
2# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
f9bd7087 3# Copyright (C) 2004-2012 Red Hat, Inc. All rights reserved.
e0c64c6c
DW
4#
5# This file is part of LVM2.
6#
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 General Public License v.2.
10#
11# You should have received a copy of the GNU 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
14
15srcdir = @srcdir@
16top_srcdir = @top_srcdir@
db8b5af9 17top_builddir = @top_builddir@
e0c64c6c
DW
18
19SOURCES =\
ccc2e192 20 lvm_misc.c \
930a1434 21 lvm_base.c \
f032ed74
DW
22 lvm_lv.c \
23 lvm_pv.c \
930a1434 24 lvm_vg.c
e0c64c6c 25
572fefeb 26LIB_NAME = liblvm2app
340b6b0f 27LIB_VERSION = $(LIB_VERSION_APP)
e0c64c6c 28
beeae21d 29ifeq ("@STATIC_LINK@", "yes")
70046623
AK
30 LIB_STATIC = $(LIB_NAME).a
31endif
32
23b059e7 33LIB_SHARED = $(LIB_NAME).$(LIB_SUFFIX)
e0c64c6c 34
23b059e7 35CLEAN_TARGETS += liblvm.cflow $(LIB_NAME).a
e0c64c6c 36
8b205571
AK
37EXPORTED_HEADER = $(srcdir)/lvm2app.h
38EXPORTED_FN_PREFIX = lvm
39
f9bd7087
ZK
40LDDEPS += $(top_builddir)/lib/liblvm-internal.a
41
814aebc4 42include $(top_builddir)/make.tmpl
e0c64c6c 43
f0f0b802 44LIBS += $(LVMINTERNAL_LIBS) -ldevmapper
77986fa7 45
a4cc1ef5
DW
46ifeq ("@DMEVENTD@", "yes")
47 LIBS += -ldevmapper-event
48endif
49
23b059e7 50.PHONY: install_dynamic install_static install_include install_pkgconfig
70046623
AK
51
52INSTALL_TYPE = install_dynamic
53
54ifeq ("@STATIC_LINK@", "yes")
55 INSTALL_TYPE += install_static
56endif
57
58ifeq ("@PKGCONFIG@", "yes")
59 INSTALL_TYPE += install_pkgconfig
60endif
61
62install: $(INSTALL_TYPE) install_include
63
23b059e7
ZK
64install_include: $(srcdir)/lvm2app.h
65 $(INSTALL_DATA) -D $< $(includedir)/$(<F)
70046623 66
23b059e7 67install_dynamic: install_lib_shared
70046623
AK
68
69install_static: $(LIB_STATIC)
23b059e7 70 $(INSTALL_DATA) -D $< $(usrlibdir)/$(<F)
70046623 71
23b059e7 72install_pkgconfig: $(LIB_NAME).pc
fff111fe 73 $(INSTALL_DATA) -D $< $(pkgconfigdir)/lvm2app.pc
70046623 74
e0c64c6c
DW
75liblvm.cflow: $(SOURCES)
76 set -e; (echo -n "SOURCES += "; \
77 echo $(SOURCES) | \
c47ad883 78 sed "s/^/ /;s/ / $(top_srcdir)\/liblvm\//g;s/$$//"; \
e0c64c6c
DW
79 ) > $@
80
81cflow: liblvm.cflow
70046623 82
56081fe9 83DISTCLEAN_TARGETS += $(LIB_NAME).pc .exported_symbols_generated
This page took 0.058274 seconds and 5 git commands to generate.