Makefile revision 197535
1# $FreeBSD: head/sys/modules/nfslockd/Makefile 197535 2009-09-27 13:24:34Z nyan $
2
3.PATH: ${.CURDIR}/../../nlm ${.CURDIR}/../../rpc
4KMOD=	nfslockd
5SRCS=	vnode_if.h \
6	nlm_advlock.c \
7	nlm_prot_clnt.c \
8	nlm_prot_impl.c \
9	nlm_prot_server.c \
10	nlm_prot_svc.c \
11	nlm_prot_xdr.c \
12	sm_inter_xdr.c
13SRCS+=	opt_inet6.h opt_nfs.h
14
15.if !defined(KERNBUILDDIR)
16NFS_INET6?=	1	# 0/1 - requires INET6 to be configured in kernel
17NFSCLIENT?=	1	# 0/1 - requires NFSCLIENT to be configured in kernel
18
19.if ${NFS_INET6} > 0
20opt_inet6.h:
21	echo "#define INET6 1" > ${.TARGET}
22.endif
23
24.if ${NFSCLIENT} > 0
25opt_nfs.h:
26	echo "#define NFSCLIENT 1" > ${.TARGET}
27.endif
28
29.endif
30
31.include <bsd.kmod.mk>
32