1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/fs/nfsclient ${SRCTOP}/sys/nfs 4KMOD= nfscl 5SRCS= vnode_if.h \ 6 nfs_clrpcops.c \ 7 nfs_clkrpc.c \ 8 nfs_clstate.c \ 9 nfs_clcomsubs.c \ 10 nfs_clport.c \ 11 nfs_clbio.c \ 12 nfs_clnfsiod.c \ 13 nfs_clnode.c \ 14 nfs_clsubs.c \ 15 nfs_clvfsops.c \ 16 nfs_clvnops.c \ 17 opt_bootp.h \ 18 opt_inet.h \ 19 opt_inet6.h \ 20 opt_kern_tls.h \ 21 opt_kgssapi.h \ 22 opt_nfs.h \ 23 opt_nfsroot.h \ 24 opt_ufs.h 25 26.if !defined(KERNBUILDDIR) 27NFS_ROOT?= 1 # 0/1 - requires NFS_ROOT to be configured in kernel 28 29.if ${NFS_ROOT} > 0 30opt_nfsroot.h: 31 echo "#define NFS_ROOT 1" > ${.TARGET} 32.endif 33.else 34OPT_NFS_ROOT!= cat ${KERNBUILDDIR}/opt_nfsroot.h 35.if empty(OPT_NFS_ROOT) 36NFS_ROOT= 0 37.else 38NFS_ROOT= 1 39.endif 40.endif 41 42.if ${NFS_ROOT} > 0 43SRCS+= nfs_diskless.c 44.endif 45 46.include <bsd.kmod.mk> 47