]> sourceware.org Git - lvm2.git/blob - Makefile.in
Rename liblvm.so to liblvm2app.so and use configure --enable-applib.
[lvm2.git] / Makefile.in
1 #
2 # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 # Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
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
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18
19 SUBDIRS = doc include man scripts
20
21 ifeq ("@INTL@", "yes")
22 SUBDIRS += po
23 endif
24
25 SUBDIRS += lib tools daemons libdm
26
27 ifeq ("@APPLIB@", "yes")
28 SUBDIRS += liblvm
29 endif
30
31 ifeq ($(MAKECMDGOALS),distclean)
32 SUBDIRS += daemons/clvmd \
33 daemons/dmeventd/plugins \
34 daemons/dmeventd \
35 lib/format1 \
36 lib/format_pool \
37 lib/locking \
38 lib/mirror \
39 lib/snapshot \
40 test/api \
41 test \
42 po
43 DISTCLEAN_TARGETS += lib/misc/configure.h lib/misc/lvm-version.h
44 DISTCLEAN_DIRS += lcov_reports*
45 endif
46
47 include make.tmpl
48
49 libdm: include
50 lib: libdm
51 liblvm: lib
52 daemons: lib tools
53 tools: lib device-mapper
54 po: tools daemons
55
56 libdm.device-mapper: include.device-mapper
57 daemons.device-mapper: libdm.device-mapper
58 tools.device-mapper: libdm.device-mapper
59 device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper
60
61 ifeq ("@INTL@", "yes")
62 lib.pofile: include.pofile
63 tools.pofile: lib.pofile
64 daemons.pofile: lib.pofile
65 po.pofile: tools.pofile daemons.pofile
66 pofile: po.pofile
67 endif
68
69 ifneq ("@CFLOW_CMD@", "")
70 tools.cflow: lib.cflow
71 cflow: tools.cflow
72 endif
73
74 ifneq ("@CSCOPE_CMD@", "")
75 cscope.out: tools
76 @CSCOPE_CMD@ -b -R
77 all: cscope.out
78 endif
79
80 check: all
81 $(MAKE) -C test all
82
83 ifneq ("@LCOV@", "")
84 .PHONY: lcov-reset lcov lcov-dated
85
86 ifeq ($(MAKECMDGOALS),lcov-dated)
87 LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports-$(shell date +%Y%m%d%k%M%S)
88 else
89 LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports
90 endif
91
92 lcov-reset:
93 $(LCOV) -d $(top_srcdir)/dmeventd --zerocounters
94 $(LCOV) -d $(top_srcdir)/libdm --zerocounters
95 $(LCOV) -d $(top_srcdir)/lib --zerocounters
96 $(LCOV) -d $(top_srcdir)/tools --zerocounters
97
98 lcov: all
99 $(RM) -rf $(LCOV_REPORTS_DIR)
100 $(MKDIR_P) $(LCOV_REPORTS_DIR)
101 $(LCOV) -b ${top_srcdir}/libdm -d $(top_srcdir)/libdm -c -o $(LCOV_REPORTS_DIR)/libdm.info
102 $(LCOV) -b $(top_srcdir)/lib -d $(top_srcdir)/lib -c -o $(LCOV_REPORTS_DIR)/lib.info
103 $(LCOV) -b $(top_srcdir)/tools -d $(top_srcdir)/tools -c -o $(LCOV_REPORTS_DIR)/tools.info
104 DMEVENTD_INFO="$(LCOV_REPORTS_DIR)/dmeventd.info" ;\
105 DMEVENTD_INFO_A="-a $$DMEVENTDINFO" ;\
106 $(LCOV) -b $(top_srcdir)/dmeventd -d $(top_srcdir)/dmeventd -c -o $$DMEVENTD_INFO || DMEVENTD_INFO_A="" ;\
107 $(LCOV) $$DMEVENTD_INFO_A -a $(LCOV_REPORTS_DIR)/lib.info \
108 -a $(LCOV_REPORTS_DIR)/libdm.info \
109 -a $(LCOV_REPORTS_DIR)/tools.info \
110 -o $(LCOV_REPORTS_DIR)/lvm.info
111 ifneq ("@GENHTML@", "")
112 $(GENHTML) -o $(LCOV_REPORTS_DIR) -p $(top_srcdir) $(LCOV_REPORTS_DIR)/lvm.info
113 endif
114
115 lcov-dated: lcov
116
117 endif
This page took 0.042313 seconds and 6 git commands to generate.