NetBSD/usr.sbin/puffs/Makefile.inc

31 lines
784 B
Makefile

# $NetBSD: Makefile.inc,v 1.5 2008/08/06 20:14:08 pooka Exp $
USE_FORT?= yes # network client
.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
LDADD+= -lrumpfs_${MOUNTNAME}
.PATH: ${MOUNT} ${MOUNTDIR}/mount_${MOUNTNAME}
.endif # MOUNTNAME
LDADD+= -lp2k -lukfs -lrump -lrumpuser -lpuffs -lutil -lpthread
DPADD+= ${LIBP2K} ${LIBUKFS} ${LIBRUMP} ${LIBRUMPUSER} ${LIBPUFFS}
DPADD+= ${LIBUTIL} ${LIBPTHREAD}
LDFLAGS+= -Wl,--wrap=malloc
.endif # ISRUMP