1 # $NetBSD: Makefile,v 1.6 2009/01/13 22:38:00 haad Exp $
6 .
include "../../lvm2tools.mk"
8 .PATH
: ${LVM2_DISTDIR}/man
14 SRCS
= dumpconfig.c formats.c lvchange.c lvconvert.c lvcreate.c \
15 lvdisplay.c lvextend.c lvmchange.c lvmcmdline.c \
16 lvmdiskscan.c lvreduce.c lvremove.c lvrename.c lvresize.c \
17 lvscan.c polldaemon.c pvchange.c pvck.c pvcreate.c \
18 pvdisplay.c pvmove.c pvremove.c pvresize.c pvscan.c \
19 reporter.c segtypes.c toollib.c vgcfgbackup.c \
20 vgcfgrestore.c vgchange.c vgck.c vgconvert.c vgcreate.c \
21 vgdisplay.c vgexport.c vgextend.c vgimport.c vgmerge.c \
22 vgmknodes.c vgreduce.c vgremove.c vgrename.c vgscan.c \
26 CPPFLAGS
+= -I
${LVM2_DISTDIR}/lib
-I
${LVM2_DISTDIR}/include \
27 -I.
-I
${LIBDM_INCLUDE} -I
${LVM2_DISTDIR}/tools \
30 CPPFLAGS
+= -DLVM_SHARED_PATH
=\"$(BINDIR
)/lvm
\"
32 # Some parts of the code can't be protected because if its
35 .if defined
(USE_SSP
) && (${USE_SSP} != "no")
36 CPPFLAGS
+= -Wno-stack-protector
39 MAN
= lvchange
.8 lvconvert
.8 lvcreate
.8 lvdisplay
.8 lvextend
.8 \
40 lvm
.8 lvm.conf
.5 lvmchange
.8 lvmdiskscan
.8 lvmdump
.8 \
41 lvreduce
.8 lvremove
.8 lvrename
.8 lvresize
.8 lvs
.8 \
42 lvscan
.8 pvchange
.8 pvck
.8 pvcreate
.8 pvdisplay
.8 \
43 pvmove
.8 pvremove
.8 pvresize
.8 pvs
.8 pvscan
.8 \
44 vgcfgbackup
.8 vgcfgrestore
.8 vgchange
.8 vgck
.8 vgconvert
.8 \
45 vgcreate
.8 vgdisplay
.8 vgexport
.8 vgextend
.8 vgimport
.8 \
46 vgmerge
.8 vgmknodes
.8 vgreduce
.8 vgremove
.8 vgrename
.8 \
47 vgs
.8 vgscan
.8 vgsplit
.8
50 MKLINKS
+= lvchange
.8 lvchange
.1 \
51 lvconvert
.8 lvconvert
.1 \
52 lvcreate
.8 lvcreate
.1 \
53 lvdisplay
.8 lvdisplay
.1 \
54 lvextend
.8 lvextend
.1 \
57 lvmchange
.8 lvmchange
.1 \
58 lvmdiskscan
.8 lvmdiskscan
.1 \
60 lvreduce
.8 lvreduce
.1 \
61 lvremove
.8 lvremove
.1 \
62 lvrename
.8 lvrename
.1 \
63 lvresize
.8 lvresize
.1 \
66 pvchange
.8 pvchange
.1 \
68 pvcreate
.8 pvcreate
.1 \
69 pvdisplay
.8 pvdisplay
.1 \
71 pvremove
.8 pvremove
.1 \
72 pvresize
.8 pvresize
.1 \
75 vgcfgbackup
.8 vgcfgbackup
.1 \
76 vgcfgrestore
.8 vgcfgrestore
.1 \
77 vgchange
.8 vgchange
.1 \
79 vgconvert
.8 vgconvert
.1 \
80 vgcreate
.8 vgcreate
.1 \
81 vgdisplay
.8 vgdisplay
.1 \
82 vgexport
.8 vgexport
.1 \
83 vgextend
.8 vgextend
.1 \
84 vgimport
.8 vgimport
.1 \
86 vgmknodes
.8 vgmknodes
.1 \
87 vgreduce
.8 vgreduce
.1 \
88 vgremove
.8 vgremove
.1 \
89 vgrename
.8 vgrename
.1 \
94 LIBLVM_OBJDIR
!= cd
${LVM2_SRCDIR}/lib
/liblvm
&& ${PRINTOBJDIR}
95 LDADD
+= -L
${LIBLVM_OBJDIR} -llvm
96 DPADD
+= ${LIBLVM_OBJDIR}/liblvm.a
98 LIBDM_OBJDIR
!= cd
${LIBDM_SRCDIR} && ${PRINTOBJDIR}
99 LDADD
+= -L
${LIBDM_OBJDIR} -ldevmapper
100 DPADD
+= ${LIBDM_OBJDIR}/libdevmapper.a
102 LDADD
+= -lprop
-ledit
-ltermcap
106 .PATH
: ${LVM2_DISTDIR}/tools
109 .
include <bsd.prog.mk
>