2 # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 # Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
5 # This file is part of LVM2.
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.
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
16 top_srcdir
= @top_srcdir@
17 top_builddir
= @top_builddir@
20 ifeq ("@LVM1@", "shared")
24 ifeq ("@POOL@", "shared")
25 SUBDIRS
+= format_pool
28 ifeq ("@SNAPSHOTS@", "shared")
32 ifeq ("@MIRRORS@", "shared")
39 commands
/toolcontext.c \
42 datastruct
/str_list.c \
51 filters
/filter-composite.c \
52 filters
/filter-persistent.c \
53 filters
/filter-regex.c \
54 filters
/filter-sysfs.c \
57 format_text
/archive.c \
58 format_text
/archiver.c \
59 format_text
/export.c \
61 format_text
/format-text.c \
62 format_text
/import.c \
63 format_text
/import_vsn1.c \
65 format_text
/text_label.c \
68 locking
/file_locking.c \
70 locking
/no_locking.c \
79 metadata
/snapshot_manip.c \
93 ifeq ("@HAVE_REALTIME@", "yes")
98 ifeq ("@LVM1@", "internal")
102 format1
/import-export.c \
103 format1
/import-extents.c \
105 format1
/lvm1-label.c \
109 ifeq ("@POOL@", "internal")
111 format_pool
/disk_rep.c \
112 format_pool
/format_pool.c \
113 format_pool
/import_export.c \
114 format_pool
/pool_label.c
117 ifeq ("@CLUSTER@", "internal")
118 SOURCES
+= locking
/cluster_locking.c
121 ifeq ("@CLUSTER@", "shared")
125 ifeq ("@SNAPSHOTS@", "internal")
126 SOURCES
+= snapshot
/snapshot.c
129 ifeq ("@MIRRORS@", "internal")
130 SOURCES
+= mirror
/mirrored.c
133 ifeq ("@DEVMAPPER@", "yes")
135 activate
/dev_manager.c \
139 ifeq ("@HAVE_LIBDL@", "yes")
141 locking
/external_locking.c \
145 ifeq ("@DMEVENTD@", "yes")
146 CLDFLAGS
+= -L..
/daemons
/dmeventd
147 LIBS
+= -ldevmapper-event
150 LIB_NAME
= liblvm-internal
151 LIB_STATIC
= $(LIB_NAME
).a
153 CLEAN_TARGETS
+= $(LIB_NAME
).cflow
157 $(SUBDIRS
): $(LIB_STATIC
)
159 $(LIB_NAME
).cflow
: $(SOURCES
)
160 set
-e
; (echo
-n
"SOURCES += "; \
162 sed
"s/^/ /;s/ / $(top_srcdir)\/lib\//g;s/$$//"; \
165 cflow
: $(LIB_NAME
).cflow