Makefile revision 193744
1235274Sgabor# $FreeBSD: head/sys/modules/nfsclient/Makefile 193744 2009-06-08 19:57:35Z bz $ 2235274Sgabor 3235274Sgabor.PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs ${.CURDIR}/../../rpc 4235274Sgabor 5235274SgaborKMOD= nfsclient 6235274SgaborSRCS= vnode_if.h \ 7235274Sgabor nfs_bio.c nfs_lock.c nfs_node.c nfs_socket.c nfs_subs.c nfs_nfsiod.c \ 8235274Sgabor nfs_vfsops.c nfs_vnops.c nfs_common.c nfs_krpc.c \ 9235274Sgabor opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h 10235274SgaborSRCS+= 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