Makefile 1.7 KB

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