1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1994-09-22 22:12:59 +00:00
|
|
|
|
2011-04-25 22:22:51 +00:00
|
|
|
.PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs ${.CURDIR}/../../rpc
|
2003-11-16 00:00:06 +00:00
|
|
|
|
2001-09-18 23:32:09 +00:00
|
|
|
KMOD= nfsclient
|
1999-12-12 16:47:33 +00:00
|
|
|
SRCS= vnode_if.h \
|
2010-07-24 22:11:11 +00:00
|
|
|
nfs_bio.c nfs_node.c nfs_subs.c nfs_nfsiod.c \
|
2010-02-16 20:00:21 +00:00
|
|
|
nfs_vfsops.c nfs_vnops.c nfs_krpc.c \
|
2004-07-08 22:35:36 +00:00
|
|
|
opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h
|
2013-11-25 07:38:45 +00:00
|
|
|
SRCS+= opt_inet6.h opt_kgssapi.h
|
2001-09-18 23:32:09 +00:00
|
|
|
|
2005-10-14 23:30:17 +00:00
|
|
|
.if !defined(KERNBUILDDIR)
|
2006-02-18 23:31:49 +00:00
|
|
|
NFS_ROOT?= 1 # 0/1 - requires NFS_ROOT to be configured in kernel
|
2005-10-14 23:30:17 +00:00
|
|
|
|
2006-02-18 23:31:49 +00:00
|
|
|
.if ${NFS_ROOT} > 0
|
|
|
|
opt_nfsroot.h:
|
|
|
|
echo "#define NFS_ROOT 1" > ${.TARGET}
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
OPT_NFS_ROOT!= cat ${KERNBUILDDIR}/opt_nfsroot.h
|
|
|
|
.if empty(OPT_NFS_ROOT)
|
|
|
|
NFS_ROOT= 0
|
|
|
|
.else
|
|
|
|
NFS_ROOT= 1
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${NFS_ROOT} > 0
|
|
|
|
SRCS+= nfs_diskless.c
|
2005-10-14 23:30:17 +00:00
|
|
|
.endif
|
2002-07-15 19:40:23 +00:00
|
|
|
|
2000-05-27 01:14:33 +00:00
|
|
|
.include <bsd.kmod.mk>
|