xref: /OK3568_Linux_fs/kernel/fs/nfs/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# Makefile for the Linux nfs filesystem routines.
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunobj-$(CONFIG_NFS_FS) += nfs.o
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunCFLAGS_nfstrace.o += -I$(src)
9*4882a593Smuzhiyunnfs-y 			:= client.o dir.o file.o getroot.o inode.o super.o \
10*4882a593Smuzhiyun			   io.o direct.o pagelist.o read.o symlink.o unlink.o \
11*4882a593Smuzhiyun			   write.o namespace.o mount_clnt.o nfstrace.o \
12*4882a593Smuzhiyun			   export.o sysfs.o fs_context.o
13*4882a593Smuzhiyunnfs-$(CONFIG_ROOT_NFS)	+= nfsroot.o
14*4882a593Smuzhiyunnfs-$(CONFIG_SYSCTL)	+= sysctl.o
15*4882a593Smuzhiyunnfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunobj-$(CONFIG_NFS_V2) += nfsv2.o
18*4882a593Smuzhiyunnfsv2-y := nfs2super.o proc.o nfs2xdr.o
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunobj-$(CONFIG_NFS_V3) += nfsv3.o
21*4882a593Smuzhiyunnfsv3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
22*4882a593Smuzhiyunnfsv3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunobj-$(CONFIG_NFS_V4) += nfsv4.o
25*4882a593SmuzhiyunCFLAGS_nfs4trace.o += -I$(src)
26*4882a593Smuzhiyunnfsv4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
27*4882a593Smuzhiyun	  delegation.o nfs4idmap.o callback.o callback_xdr.o callback_proc.o \
28*4882a593Smuzhiyun	  nfs4namespace.o nfs4getroot.o nfs4client.o nfs4session.o \
29*4882a593Smuzhiyun	  dns_resolve.o nfs4trace.o
30*4882a593Smuzhiyunnfsv4-$(CONFIG_NFS_USE_LEGACY_DNS) += cache_lib.o
31*4882a593Smuzhiyunnfsv4-$(CONFIG_SYSCTL)	+= nfs4sysctl.o
32*4882a593Smuzhiyunnfsv4-$(CONFIG_NFS_V4_1)	+= pnfs.o pnfs_dev.o pnfs_nfs.o
33*4882a593Smuzhiyunnfsv4-$(CONFIG_NFS_V4_2)	+= nfs42proc.o nfs42xattr.o
34*4882a593Smuzhiyun
35*4882a593Smuzhiyunobj-$(CONFIG_PNFS_FILE_LAYOUT) += filelayout/
36*4882a593Smuzhiyunobj-$(CONFIG_PNFS_BLOCK) += blocklayout/
37*4882a593Smuzhiyunobj-$(CONFIG_PNFS_FLEXFILE_LAYOUT) += flexfilelayout/
38