1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../fs/nfsclient ${.CURDIR}/../../nfs
4 KMOD= nfscl
5 SRCS= vnode_if.h \
6 nfs_clrpcops.c \
7 nfs_clkrpc.c \
8 nfs_clstate.c \
9 nfs_clcomsubs.c \
10 nfs_clport.c \
11 nfs_clbio.c \
12 nfs_clnfsiod.c \
13 nfs_clnode.c \
14 nfs_clsubs.c \
15 nfs_clvfsops.c \
16 nfs_clvnops.c \
17 opt_inet.h \
18 opt_inet6.h \
19 opt_bootp.h \
20 opt_nfsroot.h \
21 opt_nfs.h \
22 opt_ufs.h \
23 opt_kgssapi.h
24
25 .if !defined(KERNBUILDDIR)
26 NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel
27 NFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel
28 NFS_ROOT?= 1 # 0/1 - requires NFS_ROOT to be configured in kernel
29
30 .if ${NFS_INET} > 0
31 opt_inet.h:
32 echo "#define INET 1" > ${.TARGET}
33 .endif
34
35 .if ${NFS_INET6} > 0
36 opt_inet6.h:
37 echo "#define INET6 1" > ${.TARGET}
38 .endif
39
40 .if ${NFS_ROOT} > 0
41 opt_nfsroot.h:
42 echo "#define NFS_ROOT 1" > ${.TARGET}
43 .endif
44 .else
45 OPT_NFS_ROOT!= cat ${KERNBUILDDIR}/opt_nfsroot.h
46 .if empty(OPT_NFS_ROOT)
47 NFS_ROOT= 0
48 .else
49 NFS_ROOT= 1
50 .endif
51 .endif
52
53 .if ${NFS_ROOT} > 0
54 SRCS+= nfs_diskless.c
55 .endif
56
57 .include <bsd.kmod.mk>
Cache object: 17fbc36bc89d501544602339c162e9e6
|