]> sourceware.org Git - lvm2.git/blob - lib/Makefile.in
Add lvm_getpagesize wrapper.
[lvm2.git] / lib / Makefile.in
1 #
2 # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 # Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
4 #
5 # This file is part of the 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 mm/memlock.c \
83 regex/matcher.c \
84 regex/parse_rx.c \
85 regex/ttree.c \
86 report/report.c \
87 striped/striped.c \
88 uuid/uuid.c \
89 zero/zero.c
90
91 ifeq ("@LVM1@", "internal")
92 SOURCES +=\
93 format1/disk-rep.c \
94 format1/format1.c \
95 format1/import-export.c \
96 format1/import-extents.c \
97 format1/layout.c \
98 format1/lvm1-label.c \
99 format1/vg_number.c
100 endif
101
102 ifeq ("@POOL@", "internal")
103 SOURCES +=\
104 format_pool/disk_rep.c \
105 format_pool/format_pool.c \
106 format_pool/import_export.c \
107 format_pool/pool_label.c
108 endif
109
110 ifeq ("@CLUSTER@", "internal")
111 SOURCES += locking/cluster_locking.c
112 endif
113
114 ifeq ("@CLUSTER@", "shared")
115 SUBDIRS += locking
116 endif
117
118 ifeq ("@SNAPSHOTS@", "internal")
119 SOURCES += snapshot/snapshot.c
120 endif
121
122 ifeq ("@MIRRORS@", "internal")
123 SOURCES += mirror/mirrored.c
124 endif
125
126 ifeq ("@DEVMAPPER@", "yes")
127 SOURCES +=\
128 activate/dev_manager.c \
129 activate/fs.c
130 endif
131
132 ifeq ("@HAVE_LIBDL@", "yes")
133 SOURCES +=\
134 locking/external_locking.c \
135 misc/sharedlib.c
136 endif
137
138 ifeq ("@DMEVENTD@", "yes")
139 CLDFLAGS += -ldevmapper-event
140 endif
141
142 LIB_STATIC = liblvm.a
143
144 $(SUBDIRS): $(LIB_STATIC)
145
146 CLEAN_TARGETS += liblvm.cflow
147
148 include $(top_srcdir)/make.tmpl
149
150 liblvm.cflow: $(SOURCES)
151 set -e; (echo -n "SOURCES += "; \
152 echo $(SOURCES) | \
153 sed "s/^/ /;s/ / $(top_srcdir)\/lib\//g;s/$$//"; \
154 ) > $@
155
156 cflow: liblvm.cflow
This page took 0.045004 seconds and 6 git commands to generate.