150477Speter# $FreeBSD: releng/10.3/sys/modules/nfsclient/Makefile 221032 2011-04-25 22:22:51Z rmacklem $ 22998Swollman 3221032Srmacklem.PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs ${.CURDIR}/../../rpc 4122770Simp 583651SpeterKMOD= nfsclient 683651SpeterSRCS= vnode_if.h \ 7210455Srmacklem nfs_bio.c nfs_node.c nfs_subs.c nfs_nfsiod.c \ 8203968Smarius nfs_vfsops.c nfs_vnops.c nfs_krpc.c \ 9131840Sbrian opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h 10193744SbzSRCS+= opt_inet6.h opt_kdtrace.h opt_kgssapi.h 1170711Sobrien 12151350Syar.if !defined(KERNBUILDDIR) 13151350SyarNFS_INET?= 1 # 0/1 - requires INET to be configured in kernel 14151350SyarNFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel 15155823SyarNFS_ROOT?= 1 # 0/1 - requires NFS_ROOT to be configured in kernel 16151350Syar 17134748Sru.if ${NFS_INET} > 0 1883651Speteropt_inet.h: 1937462Sbde echo "#define INET 1" > ${.TARGET} 2032357Seivind.endif 2132357Seivind 22100134Salfred.if ${NFS_INET6} > 0 23100134Salfredopt_inet6.h: 24100134Salfred echo "#define INET6 1" > ${.TARGET} 25100134Salfred.endif 26155823Syar 27155823Syar.if ${NFS_ROOT} > 0 28155823Syaropt_nfsroot.h: 29155823Syar echo "#define NFS_ROOT 1" > ${.TARGET} 30151350Syar.endif 31155823Syar.else 32155823SyarOPT_NFS_ROOT!= cat ${KERNBUILDDIR}/opt_nfsroot.h 33155823Syar.if empty(OPT_NFS_ROOT) 34155823SyarNFS_ROOT= 0 35155823Syar.else 36155823SyarNFS_ROOT= 1 37155823Syar.endif 38155823Syar.endif 39100134Salfred 40155823Syar.if ${NFS_ROOT} > 0 41155823SyarSRCS+= nfs_diskless.c 42155823Syar.endif 43155823Syar 4460966Speter.include <bsd.kmod.mk> 45