xref: /freebsd/sys/modules/nfscl/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/fs/nfsclient ${SRCTOP}/sys/nfs
2bcbdacddSRick MacklemKMOD=	nfscl
3bcbdacddSRick MacklemSRCS=	vnode_if.h \
4bcbdacddSRick Macklem	nfs_clrpcops.c \
5bcbdacddSRick Macklem	nfs_clkrpc.c \
6bcbdacddSRick Macklem	nfs_clstate.c \
7bcbdacddSRick Macklem	nfs_clcomsubs.c \
8bcbdacddSRick Macklem	nfs_clport.c \
9bcbdacddSRick Macklem	nfs_clbio.c \
10bcbdacddSRick Macklem	nfs_clnfsiod.c \
11bcbdacddSRick Macklem	nfs_clnode.c \
12bcbdacddSRick Macklem	nfs_clsubs.c \
13bcbdacddSRick Macklem	nfs_clvfsops.c \
14bcbdacddSRick Macklem	nfs_clvnops.c \
15898dec78SUlrich Spörlein	opt_bootp.h \
16bcbdacddSRick Macklem	opt_inet.h \
17bcbdacddSRick Macklem	opt_inet6.h \
18*ba774e92SRick Macklem	opt_kern_tls.h \
19898dec78SUlrich Spörlein	opt_kgssapi.h \
20bcbdacddSRick Macklem	opt_nfs.h \
21898dec78SUlrich Spörlein	opt_nfsroot.h \
22898dec78SUlrich Spörlein	opt_ufs.h
23bcbdacddSRick Macklem
247c208ed6SRick Macklem.if !defined(KERNBUILDDIR)
257c208ed6SRick MacklemNFS_ROOT?=	1	# 0/1 - requires NFS_ROOT to be configured in kernel
267c208ed6SRick Macklem
277c208ed6SRick Macklem.if ${NFS_ROOT} > 0
287c208ed6SRick Macklemopt_nfsroot.h:
297c208ed6SRick Macklem	echo "#define NFS_ROOT 1" > ${.TARGET}
307c208ed6SRick Macklem.endif
317c208ed6SRick Macklem.else
327c208ed6SRick MacklemOPT_NFS_ROOT!=	cat ${KERNBUILDDIR}/opt_nfsroot.h
337c208ed6SRick Macklem.if empty(OPT_NFS_ROOT)
347c208ed6SRick MacklemNFS_ROOT=	0
357c208ed6SRick Macklem.else
367c208ed6SRick MacklemNFS_ROOT=	1
377c208ed6SRick Macklem.endif
387c208ed6SRick Macklem.endif
397c208ed6SRick Macklem
407c208ed6SRick Macklem.if ${NFS_ROOT} > 0
417c208ed6SRick MacklemSRCS+=	nfs_diskless.c
427c208ed6SRick Macklem.endif
437c208ed6SRick Macklem
44bcbdacddSRick Macklem.include <bsd.kmod.mk>
45