blob: 5f6db37f461e5490c8baf49c87e76160a5bf3ad0 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# Makefile for the Linux nfs filesystem routines.
4#
5
6obj-$(CONFIG_NFS_FS) += nfs.o
7
Trond Myklebustf4ce1292013-08-19 18:59:33 -04008CFLAGS_nfstrace.o += -I$(src)
Bryan Schumaker2ba68002012-05-10 16:47:19 -04009nfs-y := client.o dir.o file.o getroot.o inode.o super.o \
Trond Myklebusta5864c92016-06-03 17:07:19 -040010 io.o direct.o pagelist.o read.o symlink.o unlink.o \
Trond Myklebust996bc4f2019-01-24 16:10:46 -050011 write.o namespace.o mount_clnt.o nfstrace.o \
David Howells9954bf92019-12-10 07:31:04 -050012 export.o sysfs.o fs_context.o
Chuck Lever3ea97302007-07-01 12:13:27 -040013nfs-$(CONFIG_ROOT_NFS) += nfsroot.o
Bryan Schumaker89d77c82012-07-30 16:05:25 -040014nfs-$(CONFIG_SYSCTL) += sysctl.o
Dave Wysochanskia6b5a282020-11-14 13:43:54 -050015nfs-$(CONFIG_NFS_FSCACHE) += fscache.o
Dean Hildebrand7ab672c2010-10-20 00:18:00 -040016
bjschuma@gmail.com1ae811e2012-08-08 13:57:06 -040017obj-$(CONFIG_NFS_V2) += nfsv2.o
18nfsv2-y := nfs2super.o proc.o nfs2xdr.o
Bryan Schumakerddda8e02012-07-30 16:05:23 -040019
bjschuma@gmail.com1ae811e2012-08-08 13:57:06 -040020obj-$(CONFIG_NFS_V3) += nfsv3.o
21nfsv3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
22nfsv3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040023
bjschuma@gmail.com1ae811e2012-08-08 13:57:06 -040024obj-$(CONFIG_NFS_V4) += nfsv4.o
Trond Myklebustc6d01c62013-08-09 11:51:26 -040025CFLAGS_nfs4trace.o += -I$(src)
bjschuma@gmail.com1ae811e2012-08-08 13:57:06 -040026nfsv4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
Anna Schumaker7b320382015-04-15 13:00:06 -040027 delegation.o nfs4idmap.o callback.o callback_xdr.o callback_proc.o \
Chuck Lever9d330592013-08-09 12:48:44 -040028 nfs4namespace.o nfs4getroot.o nfs4client.o nfs4session.o \
29 dns_resolve.o nfs4trace.o
Trond Myklebustc8d74d92013-06-01 11:50:58 -040030nfsv4-$(CONFIG_NFS_USE_LEGACY_DNS) += cache_lib.o
bjschuma@gmail.com1ae811e2012-08-08 13:57:06 -040031nfsv4-$(CONFIG_SYSCTL) += nfs4sysctl.o
Tom Haynesf54bcf22014-12-11 15:34:59 -050032nfsv4-$(CONFIG_NFS_V4_1) += pnfs.o pnfs_dev.o pnfs_nfs.o
Frank van der Linden95ad37f2020-06-23 22:39:04 +000033nfsv4-$(CONFIG_NFS_V4_2) += nfs42proc.o nfs42xattr.o
Bryan Schumaker89d77c82012-07-30 16:05:25 -040034
Tom Haynesb5968722014-05-12 14:35:52 -070035obj-$(CONFIG_PNFS_FILE_LAYOUT) += filelayout/
Fred Isaman155e7522011-07-30 20:52:39 -040036obj-$(CONFIG_PNFS_BLOCK) += blocklayout/
Tom Haynesd67ae822014-12-11 17:02:04 -050037obj-$(CONFIG_PNFS_FLEXFILE_LAYOUT) += flexfilelayout/