# $Id: FreeBSD-Makefile,v 1.7 2004/06/10 18:27:29 muzzle Exp $ .PATH: ${.CURDIR}/nfsxclient ${.CURDIR}/nfsx ${.CURDIR}/nfs4client \ ${.CURDIR}/rpcx .OBJDIR: ${.CURDIR}/obj KMOD= nfs4client # Base version free NFS client (nfsxclient/) SRCS= nfs_bio.c nfs_lock.c nfs_node.c \ nfs_subs.c nfs_nfsiod.c nfs_vfsops.c \ nfs_vnops.c # Shared code between client and servers (nfsx/) SRCS+= nfs_socket.c # NFSv4 client (nfs4client/) SRCS+= nfs4_vfsops.c nfs4_vnops.c \ nfs4_vfs_subs.c nfs4_vn_subs.c \ nfs4_subs.c nfs4m_glue.c # Options SRCS+= opt_inet.h opt_inet6.h opt_nfs.h opt_bootp.h opt_nfsroot.h CFLAGS+= -I${.CURDIR} -I${.CURDIR}/nfsx -I${.CURDIR}/nfsxclient # Use the rpcclnt (rpcx/) CFLAGS+= -DRPCCLNT_DEBUG #-DRPCDEVVERBOSE SRCS+= rpcclnt.c rpc_dev.c rpcauth.c rpcauth_sys.c rpcauth_gss.c # Use the new idmapper CFLAGS+= -DUSE_NEW_IDMAPPER SRCS+= nfs4_idmap.c NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel NFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel opt_inet.h: if [ ! -f ${.TARGET} ]; then \ touch ${.TARGET}; fi .if ${NFS_INET} > 0 if [ ! -f ${.TARGET} ]; then \ echo "#define INET 1" > ${.TARGET}; fi .endif .if ${NFS_INET6} > 0 opt_inet6.h: if [ ! -f ${.TARGET} ]; then \ echo "#define INET6 1" > ${.TARGET}; fi .endif opt_nfs.h: if [ ! -f ${.TARGET} ]; then \ echo "#define NFSCLIENT 1" > ${.TARGET} ; fi opt_nfsroot.h: if [ ! -f ${.TARGET} ]; then touch ${.TARGET}; fi opt_bootp.h: if [ ! -f ${.TARGET} ]; then touch ${.TARGET}; fi .include