Expand PMF_FN_* macros.
[netbsd-mini2440.git] / usr.sbin / puffs / Makefile.inc
blobb1b42a8b3d604a8808b7387e87d3ca049a186eb4
1 #       $NetBSD: Makefile.inc,v 1.11 2009/07/21 00:37:25 pooka Exp $
3 WARNS?= 4
5 .include <bsd.own.mk>
6 .include <bsd.sys.mk>
8 USE_FORT?= yes  # network client
10 .if exists(${.CURDIR}/../../Makefile.inc)
11 .include "${.CURDIR}/../../Makefile.inc"
12 .endif
14 .ifdef ISRUMP
15 .ifdef MOUNTNAME
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
26 # to the rump library
27 .ifndef DONOTLINKLIBS
28 .undef RUMPKMOD
29 .ifdef RUMPKMOD
30 OSRELEASE!=     ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh
31 KMODULEDIR=     ${DESTDIR}/stand/${MACHINE}/${OSRELEASE}/modules/${MOUNTNAME}
32 LDADD+=         ${KMODULEDIR}/${MOUNTNAME}.kmod
33 .else
34 LDADD+=         -lrumpfs_${MOUNTNAME}
35 .endif
36 .endif
38 .PATH:          ${MOUNT} ${MOUNTDIR}/mount_${MOUNTNAME}
39 .endif # MOUNTNAME
41 LDADD+=         -lp2k -lukfs -lrumpvfs -lrump -lrumpuser -lpuffs -lutil
42 LDADD+=         -lpthread
44 DPADD+=         ${LIBP2K} ${LIBUKFS} ${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER}
45 DPADD+=         ${LIBPUFFS} ${LIBUTIL} ${LIBPTHREAD}
46 .endif # ISRUMP