1 # $NetBSD: Makefile,v 1.3 2009/12/01 23:12:51 haad Exp $
7 .
include "../../lvm2tools.mk"
11 CPPFLAGS
+= -I
${LIBDM_DISTDIR} -I
${LIBDM_DISTDIR}/misc
-I
${LIBDM_DISTDIR}/mm \
12 -I
${LIBDM_DISTDIR}/datastruct
-I
${LIBDM_DISTDIR}/ioctl \
13 -I
${LVM2_DISTDIR}/include -I
${LIBDM_SRCDIR} -D__NetBSD__
16 CPPFLAGS
+= -D__LIB_DEVMAPPER__
-DDM_DEVICE_UID
=0 \
17 -DDM_DEVICE_GID
=0 -DDM_DEVICE_MODE
=0600
21 SRCS
+= bitset.c hash.c list.c libdm-common.c libdm-file.c \
22 libdm-deptree.c libdm-string.c libdm-report.c \
23 dbg_malloc.c pool.c matcher.c parse_rx.c ttree.c \
24 libdm-nbsd-iface.c libdm_netbsd.c
27 CPPFLAGS
+= -DRUMP_ACTION
-DRUMP_SYS_IOCTL
-DRUMP_SYS_CLOSE
-DRUMP_SYS_OPEN
28 LDADD
+= -lrumpdev_disk
-lrumpdev_dm
-lrumpdev
29 LDADD
+= -lrumpvfs
-lrump
-lrumpuser
-lpthread
33 .PATH
: ${LIBDM_DISTDIR}/
34 .PATH
: ${LIBDM_DISTDIR}/datastruct
35 .PATH
: ${LIBDM_DISTDIR}/mm
36 .PATH
: ${LIBDM_DISTDIR}/regex
37 .PATH
: ${LIBDM_DISTDIR}/ioctl