blob: 3f0983e93a99860ac5a9c7308edfa88ef36f6365 [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 server
4#
5
Christoph Hellwig31ef83d2014-08-16 19:02:22 -05006ccflags-y += -I$(src) # needed for trace events
7
Linus Torvalds1da177e2005-04-16 15:20:36 -07008obj-$(CONFIG_NFSD) += nfsd.o
9
Christoph Hellwig31ef83d2014-08-16 19:02:22 -050010# this one should be compiled first, as the tracing macros can easily blow up
11nfsd-y += trace.o
12
13nfsd-y += nfssvc.o nfsctl.o nfsproc.o nfsfh.o vfs.o \
Jeff Layton65294c12019-08-18 14:18:48 -040014 export.o auth.o lockd.o nfscache.o nfsxdr.o \
15 stats.o filecache.o
Andreas Gruenbachera257cdd2005-06-22 17:16:26 +000016nfsd-$(CONFIG_NFSD_V2_ACL) += nfs2acl.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070017nfsd-$(CONFIG_NFSD_V3) += nfs3proc.o nfs3xdr.o
Andreas Gruenbachera257cdd2005-06-22 17:16:26 +000018nfsd-$(CONFIG_NFSD_V3_ACL) += nfs3acl.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070019nfsd-$(CONFIG_NFSD_V4) += nfs4proc.o nfs4xdr.o nfs4state.o nfs4idmap.o \
NeilBrowna55370a2005-06-23 22:03:52 -070020 nfs4acl.o nfs4callback.o nfs4recover.o
Christoph Hellwig81c39322016-03-04 20:46:16 +010021nfsd-$(CONFIG_NFSD_PNFS) += nfs4layouts.o
22nfsd-$(CONFIG_NFSD_BLOCKLAYOUT) += blocklayout.o blocklayoutxdr.o
Christoph Hellwigf99d4fb2016-03-04 20:46:17 +010023nfsd-$(CONFIG_NFSD_SCSILAYOUT) += blocklayout.o blocklayoutxdr.o
Tom Haynes9b9960a2016-06-14 13:41:28 -070024nfsd-$(CONFIG_NFSD_FLEXFILELAYOUT) += flexfilelayout.o flexfilelayoutxdr.o