2009-05-28 19:45:11 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2011-04-25 22:22:51 +00:00
|
|
|
.PATH: ${.CURDIR}/../../fs/nfsclient ${.CURDIR}/../../nfs
|
2009-05-28 19:45:11 +00:00
|
|
|
KMOD= nfscl
|
|
|
|
SRCS= vnode_if.h \
|
|
|
|
nfs_clrpcops.c \
|
|
|
|
nfs_clkrpc.c \
|
|
|
|
nfs_clstate.c \
|
|
|
|
nfs_clcomsubs.c \
|
|
|
|
nfs_clport.c \
|
|
|
|
nfs_clbio.c \
|
|
|
|
nfs_clnfsiod.c \
|
|
|
|
nfs_clnode.c \
|
|
|
|
nfs_clsubs.c \
|
|
|
|
nfs_clvfsops.c \
|
|
|
|
nfs_clvnops.c \
|
2011-06-23 20:31:52 +00:00
|
|
|
opt_bootp.h \
|
2009-05-28 19:45:11 +00:00
|
|
|
opt_inet.h \
|
|
|
|
opt_inet6.h \
|
2011-06-23 20:31:52 +00:00
|
|
|
opt_kgssapi.h \
|
2009-05-28 19:45:11 +00:00
|
|
|
opt_nfs.h \
|
2011-06-23 20:31:52 +00:00
|
|
|
opt_nfsroot.h \
|
|
|
|
opt_ufs.h
|
2009-05-28 19:45:11 +00:00
|
|
|
|
2011-04-25 22:22:51 +00:00
|
|
|
.if !defined(KERNBUILDDIR)
|
|
|
|
NFS_ROOT?= 1 # 0/1 - requires NFS_ROOT to be configured in kernel
|
|
|
|
|
|
|
|
.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
|
|
|
|
.endif
|
|
|
|
|
2009-05-28 19:45:11 +00:00
|
|
|
.include <bsd.kmod.mk>
|