1# $NetBSD: Makefile,v 1.4 2008/12/22 18:13:30 agc Exp $ 2 3LVM2_DIR= ${.CURDIR}/../../../contrib/lvm2 4 5LVM2_DISTDIR= ${LVM2_DIR}/dist 6LIBDM_DISTDIR= ${LVM2_DIR}/dist/libdm 7LIBDM_SRCDIR= ${LVM2_DIR}/lib/libdevmapper 8.PATH: ${LVM2_DISTDIR}/man 9 10PROG= dmsetup 11 12MAN= dmsetup.8 13 14CFLAGS+= -I${LIBDM_DISTDIR}/ -I${LIBDM_DISTDIR}/misc \ 15 -I. -I${LIBDM_DISTDIR}/ioctl -I${LVM2_DISTDIR}/include 16 17CFLAGS+= -D__LIB_DEVMAPPER__ -DDM_DEVICE_UID=0 \ 18 -DDM_DEVICE_GID=0 -DDM_DEVICE_MODE=0600 19 20LDADD+= -ldevmapper -lprop 21DPADD+= ${LIBDEVMAPPER} ${LIBPROP} 22 23.PATH: ${LVM2_DISTDIR}/tools 24 25.include <bsd.prog.mk> 26