Makefile revision 155823
150477Speter# $FreeBSD: head/sys/modules/nfsclient/Makefile 155823 2006-02-18 23:31:49Z yar $
22998Swollman
3122770Simp.PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs4client \
4122770Simp	${.CURDIR}/../../nfs ${.CURDIR}/../../rpc
5122770Simp
683651SpeterKMOD=	nfsclient
783651SpeterSRCS=	vnode_if.h \
883702Speter	nfs_bio.c nfs_lock.c nfs_node.c nfs_socket.c nfs_subs.c nfs_nfsiod.c \
983651Speter	nfs_vfsops.c nfs_vnops.c nfs_common.c \
10131840Sbrian	opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h
11122770SimpSRCS+=	nfs4_dev.c nfs4_idmap.c nfs4_socket.c nfs4_subs.c \
12122770Simp	nfs4_vfs_subs.c  nfs4_vfsops.c nfs4_vn_subs.c nfs4_vnops.c
13100134SalfredSRCS+=	opt_inet6.h
1470711Sobrien
15122770Simp# USE THE RPCCLNT:
16122770SimpCFLAGS+= -DRPCCLNT_DEBUG
17122770SimpSRCS+= rpcclnt.c
18122770Simp
19122770Simp# USE THE NEW IDMAPPER
20122770SimpCFLAGS+= -DUSE_NEW_IDMAPPER
21122770Simp
22151350Syar.if !defined(KERNBUILDDIR)
23151350SyarNFS_INET?=	1	# 0/1 - requires INET to be configured in kernel
24151350SyarNFS_INET6?=	1	# 0/1 - requires INET6 to be configured in kernel
25155823SyarNFS_ROOT?=	1	# 0/1 - requires NFS_ROOT to be configured in kernel
26151350Syar
27134748Sru.if ${NFS_INET} > 0
2883651Speteropt_inet.h:
2937462Sbde	echo "#define INET 1" > ${.TARGET}
3032357Seivind.endif
3132357Seivind
32100134Salfred.if ${NFS_INET6} > 0
33100134Salfredopt_inet6.h:
34100134Salfred	echo "#define INET6 1" > ${.TARGET}
35100134Salfred.endif
36155823Syar
37155823Syar.if ${NFS_ROOT} > 0
38155823Syaropt_nfsroot.h:
39155823Syar	echo "#define NFS_ROOT 1" > ${.TARGET}
40151350Syar.endif
41155823Syar.else
42155823SyarOPT_NFS_ROOT!=	cat ${KERNBUILDDIR}/opt_nfsroot.h
43155823Syar.if empty(OPT_NFS_ROOT)
44155823SyarNFS_ROOT=	0
45155823Syar.else
46155823SyarNFS_ROOT=	1
47155823Syar.endif
48155823Syar.endif
49100134Salfred
50155823Syar.if ${NFS_ROOT} > 0
51155823SyarSRCS+=	nfs_diskless.c
52155823Syar.endif
53155823Syar
5460966Speter.include <bsd.kmod.mk>
55100134Salfred
56