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