| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
# |
| 3 |
# Makefile for the Linux nfs server |
| 4 |
# |
| 5 |
|
| 6 |
ccflags-y += -I$(src) # needed for trace events |
| 7 |
|
| 8 |
obj-$(CONFIG_NFSD) += nfsd.o |
| 9 |
|
| 10 |
# this one should be compiled first, as the tracing macros can easily blow up |
| 11 |
nfsd-y += trace.o |
| 12 |
|
| 13 |
nfsd-y += nfssvc.o nfsctl.o nfsfh.o vfs.o \ |
| 14 |
export.o auth.o lockd.o nfscache.o \ |
| 15 |
stats.o filecache.o nfs3proc.o nfs3xdr.o \ |
| 16 |
netlink.o |
| 17 |
nfsd-$(CONFIG_NFSD_V2) += nfsproc.o nfsxdr.o |
| 18 |
nfsd-$(CONFIG_NFSD_V2_ACL) += nfs2acl.o |
| 19 |
nfsd-$(CONFIG_NFSD_V3_ACL) += nfs3acl.o |
| 20 |
nfsd-$(CONFIG_NFSD_V4) += nfs4proc.o nfs4xdr.o nfs4state.o nfs4idmap.o \ |
| 21 |
nfs4acl.o nfs4callback.o nfs4recover.o nfs4xdr_gen.o |
| 22 |
nfsd-$(CONFIG_NFSD_PNFS) += nfs4layouts.o |
| 23 |
nfsd-$(CONFIG_NFSD_BLOCKLAYOUT) += blocklayout.o blocklayoutxdr.o |
| 24 |
nfsd-$(CONFIG_NFSD_SCSILAYOUT) += blocklayout.o blocklayoutxdr.o |
| 25 |
nfsd-$(CONFIG_NFSD_FLEXFILELAYOUT) += flexfilelayout.o flexfilelayoutxdr.o |
| 26 |
nfsd-$(CONFIG_NFS_LOCALIO) += localio.o |
| 27 |
nfsd-$(CONFIG_DEBUG_FS) += debugfs.o |
| 28 |
|
| 29 |
# |
| 30 |
# XDR code generation (requires Python and additional packages) |
| 31 |
# |
| 32 |
# The generated *xdr_gen.{h,c} files are checked into git. Normal kernel |
| 33 |
# builds do not require the xdrgen tool or its Python dependencies. |
| 34 |
# |
| 35 |
# Developers modifying .x files in Documentation/sunrpc/xdr/ should run |
| 36 |
# "make xdrgen" to regenerate the affected files. |
| 37 |
# |
| 38 |
.PHONY: xdrgen |
| 39 |
|
| 40 |
xdrgen: ../../include/linux/sunrpc/xdrgen/nfs4_1.h nfs4xdr_gen.h nfs4xdr_gen.c |
| 41 |
|
| 42 |
../../include/linux/sunrpc/xdrgen/nfs4_1.h: ../../Documentation/sunrpc/xdr/nfs4_1.x |
| 43 |
../../tools/net/sunrpc/xdrgen/xdrgen definitions $< > $@ |
| 44 |
|
| 45 |
nfs4xdr_gen.h: ../../Documentation/sunrpc/xdr/nfs4_1.x |
| 46 |
../../tools/net/sunrpc/xdrgen/xdrgen declarations $< > $@ |
| 47 |
|
| 48 |
nfs4xdr_gen.c: ../../Documentation/sunrpc/xdr/nfs4_1.x |
| 49 |
../../tools/net/sunrpc/xdrgen/xdrgen source $< > $@ |