]> sourceware.org Git - lvm2.git/blob - lib/Makefile.in
The lvmetad client-side integration. Only active when use_lvmetad = 1 is set in
[lvm2.git] / lib / Makefile.in
1 #
2 # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 # Copyright (C) 2004-2011 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 top_builddir = @top_builddir@
18
19 INCLUDES += -I$(top_srcdir)/daemons/common -I$(top_srcdir)/daemons/lvmetad
20
21 ifeq ("@LVM1@", "shared")
22 SUBDIRS = format1
23 endif
24
25 ifeq ("@POOL@", "shared")
26 SUBDIRS += format_pool
27 endif
28
29 ifeq ("@SNAPSHOTS@", "shared")
30 SUBDIRS += snapshot
31 endif
32
33 ifeq ("@MIRRORS@", "shared")
34 SUBDIRS += mirror
35 endif
36
37 ifeq ("@RAID@", "shared")
38 SUBDIRS += raid
39 endif
40
41 ifeq ("@REPLICATORS@", "shared")
42 SUBDIRS += replicator
43 endif
44
45 ifeq ("@THIN@", "shared")
46 SUBDIRS += thin
47 endif
48
49 SOURCES =\
50 activate/activate.c \
51 cache/lvmetad.c \
52 cache/lvmcache.c \
53 commands/toolcontext.c \
54 config/config.c \
55 datastruct/btree.c \
56 datastruct/str_list.c \
57 device/dev-cache.c \
58 device/dev-io.c \
59 device/dev-md.c \
60 device/dev-swap.c \
61 device/dev-luks.c \
62 device/device.c \
63 display/display.c \
64 error/errseg.c \
65 unknown/unknown.c \
66 filters/filter-composite.c \
67 filters/filter-persistent.c \
68 filters/filter-regex.c \
69 filters/filter-sysfs.c \
70 filters/filter-md.c \
71 filters/filter-mpath.c \
72 filters/filter.c \
73 format_text/archive.c \
74 format_text/archiver.c \
75 format_text/export.c \
76 format_text/flags.c \
77 format_text/format-text.c \
78 format_text/import.c \
79 format_text/import_vsn1.c \
80 format_text/tags.c \
81 format_text/text_label.c \
82 freeseg/freeseg.c \
83 label/label.c \
84 locking/file_locking.c \
85 locking/locking.c \
86 locking/no_locking.c \
87 log/log.c \
88 metadata/lv.c \
89 metadata/lv_manip.c \
90 metadata/merge.c \
91 metadata/metadata.c \
92 metadata/mirror.c \
93 metadata/pv.c \
94 metadata/pv_manip.c \
95 metadata/pv_map.c \
96 metadata/raid_manip.c \
97 metadata/replicator_manip.c \
98 metadata/segtype.c \
99 metadata/snapshot_manip.c \
100 metadata/thin_manip.c \
101 metadata/vg.c \
102 misc/crc.c \
103 misc/lvm-exec.c \
104 misc/lvm-file.c \
105 misc/lvm-globals.c \
106 misc/lvm-string.c \
107 misc/lvm-wrappers.c \
108 misc/lvm-percent.c \
109 misc/util.c \
110 mm/memlock.c \
111 report/properties.c \
112 report/report.c \
113 striped/striped.c \
114 uuid/uuid.c \
115 zero/zero.c
116
117 ifeq ("@HAVE_REALTIME@", "yes")
118 SOURCES +=\
119 misc/timestamp.c
120 endif
121
122 ifeq ("@LVM1@", "internal")
123 SOURCES +=\
124 format1/disk-rep.c \
125 format1/format1.c \
126 format1/import-export.c \
127 format1/import-extents.c \
128 format1/layout.c \
129 format1/lvm1-label.c \
130 format1/vg_number.c
131 endif
132
133 ifeq ("@POOL@", "internal")
134 SOURCES +=\
135 format_pool/disk_rep.c \
136 format_pool/format_pool.c \
137 format_pool/import_export.c \
138 format_pool/pool_label.c
139 endif
140
141 ifeq ("@CLUSTER@", "internal")
142 SOURCES += locking/cluster_locking.c
143 endif
144
145 ifeq ("@CLUSTER@", "shared")
146 SUBDIRS += locking
147 endif
148
149 ifeq ("@SNAPSHOTS@", "internal")
150 SOURCES += snapshot/snapshot.c
151 endif
152
153 ifeq ("@MIRRORS@", "internal")
154 SOURCES += mirror/mirrored.c
155 endif
156
157 ifeq ("@RAID@", "internal")
158 SOURCES += raid/raid.c
159 endif
160
161 ifeq ("@REPLICATORS@", "internal")
162 SOURCES += replicator/replicator.c
163 endif
164
165 ifeq ("@THIN@", "internal")
166 SOURCES += thin/thin.c
167 endif
168
169 ifeq ("@DEVMAPPER@", "yes")
170 SOURCES +=\
171 activate/dev_manager.c \
172 activate/fs.c
173 endif
174
175 ifeq ("@HAVE_LIBDL@", "yes")
176 SOURCES +=\
177 locking/external_locking.c \
178 misc/sharedlib.c
179 endif
180
181 ifeq ("@DMEVENTD@", "yes")
182 CLDFLAGS += -L$(top_builddir)/daemons/dmeventd
183 LIBS += -ldevmapper-event
184 endif
185
186 LIB_NAME = liblvm-internal
187 LIB_STATIC = $(LIB_NAME).a
188
189 ifeq ($(MAKECMDGOALS),distclean)
190 SUBDIRS =\
191 format1 \
192 format_pool \
193 snapshot \
194 mirror \
195 raid \
196 replicator \
197 thin \
198 locking
199 endif
200
201 CFLOW_LIST = $(SOURCES)
202 CFLOW_LIST_TARGET = $(LIB_NAME).cflow
203
204 include $(top_builddir)/make.tmpl
205
206 $(SUBDIRS): $(LIB_STATIC)
207
208 DISTCLEAN_TARGETS += misc/configure.h misc/lvm-version.h
This page took 0.048613 seconds and 6 git commands to generate.