Makefile revision 134748
1# $FreeBSD: head/sys/modules/nfsclient/Makefile 134748 2004-09-04 06:37:58Z ru $
2
3.PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs4client \
4	${.CURDIR}/../../nfs ${.CURDIR}/../../rpc
5
6KMOD=	nfsclient
7SRCS=	vnode_if.h \
8	nfs_bio.c nfs_lock.c nfs_node.c nfs_socket.c nfs_subs.c nfs_nfsiod.c \
9	nfs_vfsops.c nfs_vnops.c nfs_common.c \
10	opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h
11SRCS+=	nfs4_dev.c nfs4_idmap.c nfs4_socket.c nfs4_subs.c \
12	nfs4_vfs_subs.c  nfs4_vfsops.c nfs4_vn_subs.c nfs4_vnops.c
13SRCS+=	opt_inet6.h
14
15NFS_INET?=	1	# 0/1 - requires INET to be configured in kernel
16NFS_INET6?=	1	# 0/1 - requires INET6 to be configured in kernel
17
18# USE THE RPCCLNT:
19CFLAGS+= -DRPCCLNT_DEBUG
20SRCS+= rpcclnt.c
21
22# USE THE NEW IDMAPPER
23CFLAGS+= -DUSE_NEW_IDMAPPER
24
25.if ${NFS_INET} > 0
26opt_inet.h:
27	echo "#define INET 1" > ${.TARGET}
28.endif
29
30.if ${NFS_INET6} > 0
31opt_inet6.h:
32	echo "#define INET6 1" > ${.TARGET}
33.endif
34
35.include <bsd.kmod.mk>
36
37