]> sourceware.org Git - lvm2.git/blob - lib/Makefile.in
Correct typo in comments: s/is part of the LVM2/is part of LVM2/.
[lvm2.git] / lib / Makefile.in
1 #
2 # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 # Copyright (C) 2004-2007 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 ifeq ("@LVM1@", "shared")
20 SUBDIRS = format1
21 endif
22
23 ifeq ("@POOL@", "shared")
24 SUBDIRS += format_pool
25 endif
26
27 ifeq ("@SNAPSHOTS@", "shared")
28 SUBDIRS += snapshot
29 endif
30
31 ifeq ("@MIRRORS@", "shared")
32 SUBDIRS += mirror
33 endif
34
35 SOURCES =\
36 activate/activate.c \
37 cache/lvmcache.c \
38 commands/toolcontext.c \
39 config/config.c \
40 datastruct/btree.c \
41 datastruct/list.c \
42 datastruct/str_list.c \
43 device/dev-cache.c \
44 device/dev-io.c \
45 device/dev-md.c \
46 device/device.c \
47 display/display.c \
48 error/errseg.c \
49 filters/filter-composite.c \
50 filters/filter-persistent.c \
51 filters/filter-regex.c \
52 filters/filter-sysfs.c \
53 filters/filter-md.c \
54 filters/filter.c \
55 format_text/archive.c \
56 format_text/archiver.c \
57 format_text/export.c \
58 format_text/flags.c \
59 format_text/format-text.c \
60 format_text/import.c \
61 format_text/import_vsn1.c \
62 format_text/tags.c \
63 format_text/text_label.c \
64 label/label.c \
65 locking/file_locking.c \
66 locking/locking.c \
67 locking/no_locking.c \
68 log/log.c \
69 metadata/lv_manip.c \
70 metadata/merge.c \
71 metadata/metadata.c \
72 metadata/mirror.c \
73 metadata/pv_manip.c \
74 metadata/pv_map.c \
75 metadata/segtype.c \
76 metadata/snapshot_manip.c \
77 misc/crc.c \
78 misc/lvm-exec.c \
79 misc/lvm-file.c \
80 misc/lvm-string.c \
81 misc/lvm-wrappers.c \
82 misc/timestamp.c \
83 misc/util.c \
84 mm/memlock.c \
85 report/report.c \
86 striped/striped.c \
87 uuid/uuid.c \
88 zero/zero.c
89
90 ifeq ("@LVM1@", "internal")
91 SOURCES +=\
92 format1/disk-rep.c \
93 format1/format1.c \
94 format1/import-export.c \
95 format1/import-extents.c \
96 format1/layout.c \
97 format1/lvm1-label.c \
98 format1/vg_number.c
99 endif
100
101 ifeq ("@POOL@", "internal")
102 SOURCES +=\
103 format_pool/disk_rep.c \
104 format_pool/format_pool.c \
105 format_pool/import_export.c \
106 format_pool/pool_label.c
107 endif
108
109 ifeq ("@CLUSTER@", "internal")
110 SOURCES += locking/cluster_locking.c
111 endif
112
113 ifeq ("@CLUSTER@", "shared")
114 SUBDIRS += locking
115 endif
116
117 ifeq ("@SNAPSHOTS@", "internal")
118 SOURCES += snapshot/snapshot.c
119 endif
120
121 ifeq ("@MIRRORS@", "internal")
122 SOURCES += mirror/mirrored.c
123 endif
124
125 ifeq ("@DEVMAPPER@", "yes")
126 SOURCES +=\
127 activate/dev_manager.c \
128 activate/fs.c
129 endif
130
131 ifeq ("@HAVE_LIBDL@", "yes")
132 SOURCES +=\
133 locking/external_locking.c \
134 misc/sharedlib.c
135 endif
136
137 ifeq ("@DMEVENTD@", "yes")
138 CLDFLAGS += -ldevmapper-event
139 endif
140
141 LIB_STATIC = liblvm.a
142
143 $(SUBDIRS): $(LIB_STATIC)
144
145 CLEAN_TARGETS += liblvm.cflow
146
147 include $(top_srcdir)/make.tmpl
148
149 liblvm.cflow: $(SOURCES)
150 set -e; (echo -n "SOURCES += "; \
151 echo $(SOURCES) | \
152 sed "s/^/ /;s/ / $(top_srcdir)\/lib\//g;s/$$//"; \
153 ) > $@
154
155 cflow: liblvm.cflow
This page took 0.046024 seconds and 6 git commands to generate.