1# $FreeBSD: releng/10.3/sys/modules/nfsclient/Makefile 221032 2011-04-25 22:22:51Z rmacklem $ 2 3.PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs ${.CURDIR}/../../rpc 4 5KMOD= nfsclient 6SRCS= vnode_if.h \ 7 nfs_bio.c nfs_node.c nfs_subs.c nfs_nfsiod.c \ 8 nfs_vfsops.c nfs_vnops.c nfs_krpc.c \ 9 opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h 10SRCS+= opt_inet6.h opt_kdtrace.h opt_kgssapi.h 11 12.if !defined(KERNBUILDDIR) 13NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel 14NFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel 15NFS_ROOT?= 1 # 0/1 - requires NFS_ROOT to be configured in kernel 16 17.if ${NFS_INET} > 0 18opt_inet.h: 19 echo "#define INET 1" > ${.TARGET} 20.endif 21 22.if ${NFS_INET6} > 0 23opt_inet6.h: 24 echo "#define INET6 1" > ${.TARGET} 25.endif 26 27.if ${NFS_ROOT} > 0 28opt_nfsroot.h: 29 echo "#define NFS_ROOT 1" > ${.TARGET} 30.endif 31.else 32OPT_NFS_ROOT!= cat ${KERNBUILDDIR}/opt_nfsroot.h 33.if empty(OPT_NFS_ROOT) 34NFS_ROOT= 0 35.else 36NFS_ROOT= 1 37.endif 38.endif 39 40.if ${NFS_ROOT} > 0 41SRCS+= nfs_diskless.c 42.endif 43 44.include <bsd.kmod.mk> 45