xref: /linux/fs/nfsd/Makefile (revision 2c26b68cd5c51689b8cee9cb6a21abb5d2ab2d0f)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Makefile for the Linux nfs server
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
631ef83dcSChristoph Hellwigccflags-y += -I$(src)			# needed for trace events
731ef83dcSChristoph Hellwig
81da177e4SLinus Torvaldsobj-$(CONFIG_NFSD)	+= nfsd.o
91da177e4SLinus Torvalds
1031ef83dcSChristoph Hellwig# this one should be compiled first, as the tracing macros can easily blow up
1131ef83dcSChristoph Hellwignfsd-y			+= trace.o
1231ef83dcSChristoph Hellwig
132f3a4b2aSJeff Laytonnfsd-y 			+= nfssvc.o nfsctl.o nfsfh.o vfs.o \
142f3a4b2aSJeff Layton			   export.o auth.o lockd.o nfscache.o \
1513727f85SLorenzo Bianconi			   stats.o filecache.o nfs3proc.o nfs3xdr.o \
1613727f85SLorenzo Bianconi			   netlink.o
172f3a4b2aSJeff Laytonnfsd-$(CONFIG_NFSD_V2) += nfsproc.o nfsxdr.o
18a257cdd0SAndreas Gruenbachernfsd-$(CONFIG_NFSD_V2_ACL) += nfs2acl.o
19a257cdd0SAndreas Gruenbachernfsd-$(CONFIG_NFSD_V3_ACL) += nfs3acl.o
201da177e4SLinus Torvaldsnfsd-$(CONFIG_NFSD_V4)	+= nfs4proc.o nfs4xdr.o nfs4state.o nfs4idmap.o \
218e1d3227SJeff Layton			   nfs4acl.o nfs4callback.o nfs4recover.o nfs4xdr_gen.o
2281c39329SChristoph Hellwignfsd-$(CONFIG_NFSD_PNFS) += nfs4layouts.o
2381c39329SChristoph Hellwignfsd-$(CONFIG_NFSD_BLOCKLAYOUT) += blocklayout.o blocklayoutxdr.o
24f99d4fbdSChristoph Hellwignfsd-$(CONFIG_NFSD_SCSILAYOUT) += blocklayout.o blocklayoutxdr.o
259b9960a0STom Haynesnfsd-$(CONFIG_NFSD_FLEXFILELAYOUT) += flexfilelayout.o flexfilelayoutxdr.o
26fa498386SWeston Andros Adamsonnfsd-$(CONFIG_NFS_LOCALIO) += localio.o
27*9fe5ea76SChuck Levernfsd-$(CONFIG_DEBUG_FS) += debugfs.o
288e1d3227SJeff Layton
298e1d3227SJeff Layton
308e1d3227SJeff Layton.PHONY: xdrgen
318e1d3227SJeff Layton
328e1d3227SJeff Laytonxdrgen: ../../include/linux/sunrpc/xdrgen/nfs4_1.h nfs4xdr_gen.h nfs4xdr_gen.c
338e1d3227SJeff Layton
348e1d3227SJeff Layton../../include/linux/sunrpc/xdrgen/nfs4_1.h: ../../Documentation/sunrpc/xdr/nfs4_1.x
358e1d3227SJeff Layton	../../tools/net/sunrpc/xdrgen/xdrgen definitions $< > $@
368e1d3227SJeff Layton
378e1d3227SJeff Laytonnfs4xdr_gen.h: ../../Documentation/sunrpc/xdr/nfs4_1.x
388e1d3227SJeff Layton	../../tools/net/sunrpc/xdrgen/xdrgen declarations $< > $@
398e1d3227SJeff Layton
408e1d3227SJeff Laytonnfs4xdr_gen.c: ../../Documentation/sunrpc/xdr/nfs4_1.x
418e1d3227SJeff Layton	../../tools/net/sunrpc/xdrgen/xdrgen source $< > $@
42