8923c5fc83d75fadba253da94ca9e0ee19763aaa
[dragonfly.git] / gnu / lib / liblvm / Makefile
1 #       $NetBSD: Makefile,v 1.4 2009/12/02 01:54:20 haad Exp $
2
3 LVM2_DIR=       ${.CURDIR}/../../../contrib/lvm2
4
5 LIB=            lvm
6 SHLIB_MAJOR?=   0
7
8 LVM2_DISTDIR=   ${LVM2_DIR}/dist
9
10 CFLAGS+=        -D_XOPEN_SOURCE=600
11 CFLAGS+=        -I${LVM2_DISTDIR}/lib -I${LVM2_DISTDIR}/include \
12                 -I. 
13
14 # Some parts of liblvm can't be protected because if its
15 # alloca() usage.
16 #
17 .if defined(USE_SSP) && (${USE_SSP} != "no")
18 CPPFLAGS+=      -Wno-stack-protector
19 .endif
20
21 CPPFLAGS.imLcLkup.c=-Wno-error
22
23 SRCS+=          activate.c lvmcache.c toolcontext.c config.c btree.c \
24                 str_list.c dev-cache.c dev-io.c dev-md.c device.c dev-swap.c \
25                 display.c errseg.c filter-composite.c \
26                 filter-persistent.c \
27                 filter-regex.c filter-sysfs.c filter-md.c archive.c \
28                 archiver.c export.c flags.c format-text.c import.c \
29                 import_vsn1.c tags.c text_label.c freeseg.c label.c \
30                 file_locking.c locking.c no_locking.c log.c lv_manip.c \
31                 merge.c metadata.c mirror.c pv_manip.c pv_map.c segtype.c \
32                 snapshot_manip.c crc.c lvm-exec.c lvm-file.c lvm-string.c \
33                 lvm-wrappers.c timestamp.c util.c memlock.c report.c \
34                 striped.c unknown.c uuid.c zero.c disk-rep.c format1.c \
35                 import-export.c \
36                 import-extents.c layout.c lvm1-label.c vg_number.c \
37                 disk_rep.c format_pool.c import_export.c pool_label.c \
38                 filter_dragonfly.c snapshot.c mirrored.c dev_manager.c fs.c \
39                 lvm-globals.c dev.c
40
41 LDADD+=         -lprop -ldevattr
42
43 .PATH:  ${LVM2_DISTDIR}/lib/
44 .PATH:  ${LVM2_DISTDIR}/lib/activate
45 .PATH:  ${LVM2_DISTDIR}/lib/cache
46 .PATH:  ${LVM2_DISTDIR}/lib/commands
47 .PATH:  ${LVM2_DISTDIR}/lib/config
48 .PATH:  ${LVM2_DISTDIR}/lib/datastruct
49 .PATH:  ${LVM2_DISTDIR}/lib/device
50 .PATH:  ${LVM2_DISTDIR}/lib/display
51 .PATH:  ${LVM2_DISTDIR}/lib/error
52 .PATH:  ${LVM2_DISTDIR}/lib/filters
53 .PATH:  ${LVM2_DISTDIR}/lib/format1
54 .PATH:  ${LVM2_DISTDIR}/lib/format_pool
55 .PATH:  ${LVM2_DISTDIR}/lib/format_text
56 .PATH:  ${LVM2_DISTDIR}/lib/freeseg
57 .PATH:  ${LVM2_DISTDIR}/lib/label
58 .PATH:  ${LVM2_DISTDIR}/lib/locking
59 .PATH:  ${LVM2_DISTDIR}/lib/log
60 .PATH:  ${LVM2_DISTDIR}/lib/metadata
61 .PATH:  ${LVM2_DISTDIR}/lib/mirror
62 .PATH:  ${LVM2_DISTDIR}/lib/misc
63 .PATH:  ${LVM2_DISTDIR}/lib/mm
64 .PATH:  ${LVM2_DISTDIR}/lib/report
65 .PATH:  ${LVM2_DISTDIR}/lib/snapshot
66 .PATH:  ${LVM2_DISTDIR}/lib/striped
67 .PATH:  ${LVM2_DISTDIR}/lib/unknown
68 .PATH:  ${LVM2_DISTDIR}/lib/uuid
69 .PATH:  ${LVM2_DISTDIR}/lib/zero
70 .PATH:  ${LVM2_DISTDIR}/lib/dragonfly
71
72 .include <bsd.lib.mk>