]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/modules/nfs4client/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / sys / modules / nfs4client / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs4client \
4         ${.CURDIR}/../../nfs ${.CURDIR}/../../rpc
5 KMOD=   nfs4client
6 SRCS=   vnode_if.h \
7         nfs_bio.c nfs_lock.c nfs_node.c nfs_nfsiod.c \
8         nfs_common.c \
9         opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h \
10         nfs4_dev.c nfs4_idmap.c nfs4_socket.c nfs4_subs.c \
11         nfs4_vfs_subs.c  nfs4_vfsops.c nfs4_vn_subs.c nfs4_vnops.c
12 SRCS+=  opt_inet6.h
13
14 # USE THE RPCCLNT:
15 CFLAGS+= -DRPCCLNT_DEBUG
16 SRCS+= rpcclnt.c
17
18 # USE THE NEW IDMAPPER
19 CFLAGS+= -DUSE_NEW_IDMAPPER
20
21 .if !defined(KERNBUILDDIR)
22 NFS_INET?=      1       # 0/1 - requires INET to be configured in kernel
23 NFS_INET6?=     1       # 0/1 - requires INET6 to be configured in kernel
24
25 .if ${NFS_INET} > 0
26 opt_inet.h:
27         echo "#define INET 1" > ${.TARGET}
28 .endif
29
30 .if ${NFS_INET6} > 0
31 opt_inet6.h:
32         echo "#define INET6 1" > ${.TARGET}
33 .endif
34 .endif
35
36 .include <bsd.kmod.mk>