1192991Srmacklem# $FreeBSD: releng/10.3/sys/modules/nfscl/Makefile 223483 2011-06-23 20:31:52Z uqs $ 2192991Srmacklem 3221032Srmacklem.PATH: ${.CURDIR}/../../fs/nfsclient ${.CURDIR}/../../nfs 4192991SrmacklemKMOD= nfscl 5192991SrmacklemSRCS= vnode_if.h \ 6192991Srmacklem nfs_clrpcops.c \ 7192991Srmacklem nfs_clkrpc.c \ 8192991Srmacklem nfs_clstate.c \ 9192991Srmacklem nfs_clcomsubs.c \ 10192991Srmacklem nfs_clport.c \ 11192991Srmacklem nfs_clbio.c \ 12192991Srmacklem nfs_clnfsiod.c \ 13192991Srmacklem nfs_clnode.c \ 14192991Srmacklem nfs_clsubs.c \ 15192991Srmacklem nfs_clvfsops.c \ 16192991Srmacklem nfs_clvnops.c \ 17223483Suqs opt_bootp.h \ 18192991Srmacklem opt_inet.h \ 19192991Srmacklem opt_inet6.h \ 20223483Suqs opt_kdtrace.h \ 21223483Suqs opt_kgssapi.h \ 22223483Suqs opt_nfs.h \ 23192991Srmacklem opt_nfsroot.h \ 24223483Suqs opt_ufs.h 25192991Srmacklem 26221032Srmacklem.if !defined(KERNBUILDDIR) 27221032SrmacklemNFS_INET?= 1 # 0/1 - requires INET to be configured in kernel 28221032SrmacklemNFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel 29221032SrmacklemNFS_ROOT?= 1 # 0/1 - requires NFS_ROOT to be configured in kernel 30221032Srmacklem 31221032Srmacklem.if ${NFS_INET} > 0 32221032Srmacklemopt_inet.h: 33221032Srmacklem echo "#define INET 1" > ${.TARGET} 34221032Srmacklem.endif 35221032Srmacklem 36221032Srmacklem.if ${NFS_INET6} > 0 37221032Srmacklemopt_inet6.h: 38221032Srmacklem echo "#define INET6 1" > ${.TARGET} 39221032Srmacklem.endif 40221032Srmacklem 41221032Srmacklem.if ${NFS_ROOT} > 0 42221032Srmacklemopt_nfsroot.h: 43221032Srmacklem echo "#define NFS_ROOT 1" > ${.TARGET} 44221032Srmacklem.endif 45221032Srmacklem.else 46221032SrmacklemOPT_NFS_ROOT!= cat ${KERNBUILDDIR}/opt_nfsroot.h 47221032Srmacklem.if empty(OPT_NFS_ROOT) 48221032SrmacklemNFS_ROOT= 0 49221032Srmacklem.else 50221032SrmacklemNFS_ROOT= 1 51221032Srmacklem.endif 52221032Srmacklem.endif 53221032Srmacklem 54221032Srmacklem.if ${NFS_ROOT} > 0 55221032SrmacklemSRCS+= nfs_diskless.c 56221032Srmacklem.endif 57221032Srmacklem 58192991Srmacklem.include <bsd.kmod.mk> 59