NetBSD/usr.sbin/puffs/Makefile.inc

42 lines
1.1 KiB
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.8 2009/01/05 21:45:35 pooka Exp $
.include <bsd.own.mk>
.include <bsd.sys.mk>
2007-05-28 16:06:17 +04:00
USE_FORT?= yes # network client
2006-12-29 20:42:52 +03:00
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
.ifdef(ISRUMP)
.ifdef(MOUNTNAME)
PROG= rump_${MOUNTNAME}
MAN= rump_${MOUNTNAME}.8
MOUNTDIR= ${.CURDIR}/../../../sbin
MOUNT= ${MOUNTDIR}/mount
CPPFLAGS+= -I${MOUNTDIR}/mount_${MOUNTNAME} -I${MOUNT} -DMOUNT_NOMAIN
SRCS+= mount_${MOUNTNAME}.c rump_${MOUNTNAME}.c pathadj.c fattr.c
# on select archs use the kernel module directly, otherwise fallback
# to the rump library
.ifdef(RUMPKMOD)
OSRELEASE!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh
KMODULEDIR= ${DESTDIR}/stand/${MACHINE}/${OSRELEASE}/modules/${MOUNTNAME}
LDADD+= ${KMODULEDIR}/${MOUNTNAME}.kmod
.else
LDADD+= -lrumpfs_${MOUNTNAME}
.endif
.PATH: ${MOUNT} ${MOUNTDIR}/mount_${MOUNTNAME}
.endif # MOUNTNAME
LDADD+= -lp2k -lukfs -lrumpvfs -lrump -lrumpuser -lpuffs -lutil
LDADD+= -lpthread
DPADD+= ${LIBP2K} ${LIBUKFS} ${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
DPADD+= ${LIBPUFFS} ${LIBUTIL} ${LIBPTHREAD}
.endif # ISRUMP