Yoshihiro Takahashi e8c2bc2b71 Add '#define NFSCLIENT' into opt_nfs.h if the NFSCLIENT variable is 1
(the default is 1).

This makes the nfslockd module works for NFS client.

Reviewed by:	dfr
MFC after:	3 days
2009-09-27 13:24:34 +00:00

32 lines
605 B
Makefile

# $FreeBSD$
.PATH: ${.CURDIR}/../../nlm ${.CURDIR}/../../rpc
KMOD= nfslockd
SRCS= vnode_if.h \
nlm_advlock.c \
nlm_prot_clnt.c \
nlm_prot_impl.c \
nlm_prot_server.c \
nlm_prot_svc.c \
nlm_prot_xdr.c \
sm_inter_xdr.c
SRCS+= opt_inet6.h opt_nfs.h
.if !defined(KERNBUILDDIR)
NFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel
NFSCLIENT?= 1 # 0/1 - requires NFSCLIENT to be configured in kernel
.if ${NFS_INET6} > 0
opt_inet6.h:
echo "#define INET6 1" > ${.TARGET}
.endif
.if ${NFSCLIENT} > 0
opt_nfs.h:
echo "#define NFSCLIENT 1" > ${.TARGET}
.endif
.endif
.include <bsd.kmod.mk>