]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/modules/nfsclient/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / sys / modules / nfsclient / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../nfsclient ${.CURDIR}/../../nfs4client \
4         ${.CURDIR}/../../nfs ${.CURDIR}/../../rpc
5
6 KMOD=   nfsclient
7 SRCS=   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
11 SRCS+=  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
13 SRCS+=  opt_inet6.h
14
15 # USE THE RPCCLNT:
16 CFLAGS+= -DRPCCLNT_DEBUG
17 SRCS+= rpcclnt.c
18
19 # USE THE NEW IDMAPPER
20 CFLAGS+= -DUSE_NEW_IDMAPPER
21
22 .if !defined(KERNBUILDDIR)
23 NFS_INET?=      1       # 0/1 - requires INET to be configured in kernel
24 NFS_INET6?=     1       # 0/1 - requires INET6 to be configured in kernel
25 NFS_ROOT?=      1       # 0/1 - requires NFS_ROOT to be configured in kernel
26
27 .if ${NFS_INET} > 0
28 opt_inet.h:
29         echo "#define INET 1" > ${.TARGET}
30 .endif
31
32 .if ${NFS_INET6} > 0
33 opt_inet6.h:
34         echo "#define INET6 1" > ${.TARGET}
35 .endif
36
37 .if ${NFS_ROOT} > 0
38 opt_nfsroot.h:
39         echo "#define NFS_ROOT 1" > ${.TARGET}
40 .endif
41 .else
42 OPT_NFS_ROOT!=  cat ${KERNBUILDDIR}/opt_nfsroot.h
43 .if empty(OPT_NFS_ROOT)
44 NFS_ROOT=       0
45 .else
46 NFS_ROOT=       1
47 .endif
48 .endif
49
50 .if ${NFS_ROOT} > 0
51 SRCS+=  nfs_diskless.c
52 .endif
53
54 .include <bsd.kmod.mk>