xref: /freebsd/sys/modules/nfscl/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.PATH: ${SRCTOP}/sys/fs/nfsclient ${SRCTOP}/sys/nfs
2KMOD=	nfscl
3SRCS=	vnode_if.h \
4	nfs_clrpcops.c \
5	nfs_clkrpc.c \
6	nfs_clstate.c \
7	nfs_clcomsubs.c \
8	nfs_clport.c \
9	nfs_clbio.c \
10	nfs_clnfsiod.c \
11	nfs_clnode.c \
12	nfs_clsubs.c \
13	nfs_clvfsops.c \
14	nfs_clvnops.c \
15	opt_bootp.h \
16	opt_inet.h \
17	opt_inet6.h \
18	opt_kern_tls.h \
19	opt_kgssapi.h \
20	opt_nfs.h \
21	opt_nfsroot.h \
22	opt_ufs.h
23
24.if !defined(KERNBUILDDIR)
25NFS_ROOT?=	1	# 0/1 - requires NFS_ROOT to be configured in kernel
26
27.if ${NFS_ROOT} > 0
28opt_nfsroot.h:
29	echo "#define NFS_ROOT 1" > ${.TARGET}
30.endif
31.else
32OPT_NFS_ROOT!=	cat ${KERNBUILDDIR}/opt_nfsroot.h
33.if empty(OPT_NFS_ROOT)
34NFS_ROOT=	0
35.else
36NFS_ROOT=	1
37.endif
38.endif
39
40.if ${NFS_ROOT} > 0
41SRCS+=	nfs_diskless.c
42.endif
43
44.include <bsd.kmod.mk>
45