1 # $NetBSD: Makefile.inc,v 1.11 2009/07/21 00:37:25 pooka Exp $
8 USE_FORT?= yes # network client
10 .if exists(${.CURDIR}/../../Makefile.inc)
11 .include "${.CURDIR}/../../Makefile.inc"
16 PROG= rump_${MOUNTNAME}
17 MAN= rump_${MOUNTNAME}.8
19 MOUNTDIR= ${.CURDIR}/../../../sbin
20 MOUNT= ${MOUNTDIR}/mount
22 CPPFLAGS+= -I${MOUNTDIR}/mount_${MOUNTNAME} -I${MOUNT} -DMOUNT_NOMAIN
23 SRCS+= mount_${MOUNTNAME}.c rump_${MOUNTNAME}.c pathadj.c fattr.c
25 # on select archs use the kernel module directly, otherwise fallback
30 OSRELEASE!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh
31 KMODULEDIR= ${DESTDIR}/stand/${MACHINE}/${OSRELEASE}/modules/${MOUNTNAME}
32 LDADD+= ${KMODULEDIR}/${MOUNTNAME}.kmod
34 LDADD+= -lrumpfs_${MOUNTNAME}
38 .PATH: ${MOUNT} ${MOUNTDIR}/mount_${MOUNTNAME}
41 LDADD+= -lp2k -lukfs -lrumpvfs -lrump -lrumpuser -lpuffs -lutil
44 DPADD+= ${LIBP2K} ${LIBUKFS} ${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
45 DPADD+= ${LIBPUFFS} ${LIBUTIL} ${LIBPTHREAD}