]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | # |
6606c3ae | 2 | # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. |
b88362ff | 3 | # Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved. |
795ca3e5 | 4 | # |
7f8f8bfa | 5 | # This file is part of LVM2. |
795ca3e5 | 6 | # |
6606c3ae 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 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 | |
795ca3e5 AK |
14 | |
15 | srcdir = @srcdir@ | |
16 | top_srcdir = @top_srcdir@ | |
db8b5af9 | 17 | top_builddir = @top_builddir@ |
795ca3e5 | 18 | |
5a52dca9 AK |
19 | ifeq ("@LVM1@", "shared") |
20 | SUBDIRS = format1 | |
21 | endif | |
22 | ||
d8ac0fbc AK |
23 | ifeq ("@POOL@", "shared") |
24 | SUBDIRS += format_pool | |
25 | endif | |
26 | ||
4922197a AK |
27 | ifeq ("@SNAPSHOTS@", "shared") |
28 | SUBDIRS += snapshot | |
29 | endif | |
30 | ||
31 | ifeq ("@MIRRORS@", "shared") | |
32 | SUBDIRS += mirror | |
33 | endif | |
34 | ||
cac52ca4 JEB |
35 | ifeq ("@RAID@", "shared") |
36 | SUBDIRS += raid | |
37 | endif | |
38 | ||
8fea97b7 ZK |
39 | ifeq ("@REPLICATORS@", "shared") |
40 | SUBDIRS += replicator | |
41 | endif | |
42 | ||
3ba4a195 ZK |
43 | ifeq ("@THIN@", "shared") |
44 | SUBDIRS += thin | |
45 | endif | |
46 | ||
84510264 | 47 | SOURCES =\ |
a381c45a | 48 | activate/activate.c \ |
914c9723 | 49 | cache/lvmcache.c \ |
5a52dca9 | 50 | commands/toolcontext.c \ |
795ca3e5 | 51 | config/config.c \ |
b27957a6 | 52 | datastruct/btree.c \ |
aa378998 | 53 | datastruct/str_list.c \ |
150df663 JT |
54 | device/dev-cache.c \ |
55 | device/dev-io.c \ | |
b2dd0bb1 | 56 | device/dev-md.c \ |
3402ccd4 | 57 | device/dev-swap.c \ |
727f7bfa | 58 | device/dev-luks.c \ |
72a5e12b | 59 | device/device.c \ |
12eabe30 | 60 | display/display.c \ |
1832f310 | 61 | error/errseg.c \ |
b4048242 | 62 | unknown/unknown.c \ |
12eabe30 | 63 | filters/filter-composite.c \ |
5f16718b JT |
64 | filters/filter-persistent.c \ |
65 | filters/filter-regex.c \ | |
a8537e6f | 66 | filters/filter-sysfs.c \ |
01c6121b | 67 | filters/filter-md.c \ |
07113bee | 68 | filters/filter-mpath.c \ |
0dc2a4d6 | 69 | filters/filter.c \ |
952d12a5 | 70 | format_text/archive.c \ |
7ac8c238 | 71 | format_text/archiver.c \ |
9f44467d JT |
72 | format_text/export.c \ |
73 | format_text/flags.c \ | |
3eb1b74b | 74 | format_text/format-text.c \ |
9f44467d | 75 | format_text/import.c \ |
5a52dca9 | 76 | format_text/import_vsn1.c \ |
cf6dd251 | 77 | format_text/tags.c \ |
5a52dca9 | 78 | format_text/text_label.c \ |
36081ccf | 79 | freeseg/freeseg.c \ |
493656dd | 80 | label/label.c \ |
7e3d403b | 81 | locking/file_locking.c \ |
7d68b080 | 82 | locking/locking.c \ |
7e3d403b | 83 | locking/no_locking.c \ |
795ca3e5 | 84 | log/log.c \ |
b171907f | 85 | metadata/lv.c \ |
dd4e3f9e | 86 | metadata/lv_manip.c \ |
16ab7a0d | 87 | metadata/merge.c \ |
72a5e12b | 88 | metadata/metadata.c \ |
8afb045a | 89 | metadata/mirror.c \ |
f42b708e | 90 | metadata/pv.c \ |
c54a9405 | 91 | metadata/pv_manip.c \ |
242019fd | 92 | metadata/pv_map.c \ |
4aebd52c | 93 | metadata/raid_manip.c \ |
8fea97b7 | 94 | metadata/replicator_manip.c \ |
c4ddb31a | 95 | metadata/segtype.c \ |
7d68b080 | 96 | metadata/snapshot_manip.c \ |
b88362ff | 97 | metadata/thin_manip.c \ |
81f0124a | 98 | metadata/vg.c \ |
5a52dca9 | 99 | misc/crc.c \ |
f894b4b1 | 100 | misc/lvm-exec.c \ |
952d12a5 | 101 | misc/lvm-file.c \ |
84b9ec97 | 102 | misc/lvm-globals.c \ |
8ef2b021 | 103 | misc/lvm-string.c \ |
916490f8 | 104 | misc/lvm-wrappers.c \ |
8191fe4f | 105 | misc/lvm-percent.c \ |
6c35e3c8 | 106 | misc/util.c \ |
914c9723 | 107 | mm/memlock.c \ |
fc65b903 | 108 | report/properties.c \ |
4c64ed4c | 109 | report/report.c \ |
4922197a | 110 | striped/striped.c \ |
1832f310 | 111 | uuid/uuid.c \ |
e0c64c6c | 112 | zero/zero.c |
5a52dca9 | 113 | |
89044bc0 FDN |
114 | ifeq ("@HAVE_REALTIME@", "yes") |
115 | SOURCES +=\ | |
116 | misc/timestamp.c | |
117 | endif | |
118 | ||
5a52dca9 | 119 | ifeq ("@LVM1@", "internal") |
84510264 | 120 | SOURCES +=\ |
5a52dca9 AK |
121 | format1/disk-rep.c \ |
122 | format1/format1.c \ | |
123 | format1/import-export.c \ | |
124 | format1/import-extents.c \ | |
125 | format1/layout.c \ | |
126 | format1/lvm1-label.c \ | |
127 | format1/vg_number.c | |
128 | endif | |
795ca3e5 | 129 | |
d8ac0fbc AK |
130 | ifeq ("@POOL@", "internal") |
131 | SOURCES +=\ | |
132 | format_pool/disk_rep.c \ | |
133 | format_pool/format_pool.c \ | |
134 | format_pool/import_export.c \ | |
135 | format_pool/pool_label.c | |
136 | endif | |
137 | ||
d3c8211f AK |
138 | ifeq ("@CLUSTER@", "internal") |
139 | SOURCES += locking/cluster_locking.c | |
140 | endif | |
141 | ||
142 | ifeq ("@CLUSTER@", "shared") | |
143 | SUBDIRS += locking | |
144 | endif | |
145 | ||
4922197a AK |
146 | ifeq ("@SNAPSHOTS@", "internal") |
147 | SOURCES += snapshot/snapshot.c | |
148 | endif | |
149 | ||
150 | ifeq ("@MIRRORS@", "internal") | |
151 | SOURCES += mirror/mirrored.c | |
152 | endif | |
153 | ||
cac52ca4 JEB |
154 | ifeq ("@RAID@", "internal") |
155 | SOURCES += raid/raid.c | |
156 | endif | |
157 | ||
8fea97b7 ZK |
158 | ifeq ("@REPLICATORS@", "internal") |
159 | SOURCES += replicator/replicator.c | |
160 | endif | |
161 | ||
3ba4a195 ZK |
162 | ifeq ("@THIN@", "internal") |
163 | SOURCES += thin/thin.c | |
164 | endif | |
165 | ||
199e490e | 166 | ifeq ("@DEVMAPPER@", "yes") |
84510264 | 167 | SOURCES +=\ |
199e490e AK |
168 | activate/dev_manager.c \ |
169 | activate/fs.c | |
170 | endif | |
171 | ||
26e7f2e0 | 172 | ifeq ("@HAVE_LIBDL@", "yes") |
84510264 | 173 | SOURCES +=\ |
b896caa1 AK |
174 | locking/external_locking.c \ |
175 | misc/sharedlib.c | |
26e7f2e0 AK |
176 | endif |
177 | ||
7126d8c2 AK |
178 | ifeq ("@BUILD_LVMETAD@", "yes") |
179 | SOURCES +=\ | |
180 | cache/lvmetad.c | |
181 | endif | |
182 | ||
15d91f5a | 183 | ifeq ("@DMEVENTD@", "yes") |
814aebc4 | 184 | CLDFLAGS += -L$(top_builddir)/daemons/dmeventd |
437219e2 | 185 | LIBS += -ldevmapper-event |
15d91f5a AK |
186 | endif |
187 | ||
0bf8455b DW |
188 | LIB_NAME = liblvm-internal |
189 | LIB_STATIC = $(LIB_NAME).a | |
795ca3e5 | 190 | |
1a91d091 ZK |
191 | ifeq ($(MAKECMDGOALS),distclean) |
192 | SUBDIRS =\ | |
193 | format1 \ | |
194 | format_pool \ | |
195 | snapshot \ | |
196 | mirror \ | |
cac52ca4 | 197 | raid \ |
8fea97b7 | 198 | replicator \ |
3ba4a195 | 199 | thin \ |
1a91d091 ZK |
200 | locking |
201 | endif | |
202 | ||
b41f5924 ZK |
203 | CFLOW_LIST = $(SOURCES) |
204 | CFLOW_LIST_TARGET = $(LIB_NAME).cflow | |
205 | ||
814aebc4 | 206 | include $(top_builddir)/make.tmpl |
795ca3e5 | 207 | |
b6deac33 | 208 | $(SUBDIRS): $(LIB_STATIC) |
b7be589e ZK |
209 | |
210 | DISTCLEAN_TARGETS += misc/configure.h misc/lvm-version.h |