Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #
  2. # Copyright (c) 2000-2005 Silicon Graphics, Inc.
  3. # All Rights Reserved.
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU General Public License as
  7. # published by the Free Software Foundation.
  8. #
  9. # This program is distributed in the hope that it would be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write the Free Software Foundation,
  16. # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. #
  18. EXTRA_CFLAGS += -Ifs/xfs -Ifs/xfs/linux-2.6 -funsigned-char
  19. XFS_LINUX := linux-2.6
  20. ifeq ($(CONFIG_XFS_DEBUG),y)
  21. EXTRA_CFLAGS += -g
  22. endif
  23. obj-$(CONFIG_XFS_FS) += xfs.o
  24. obj-$(CONFIG_XFS_QUOTA) += quota/
  25. obj-$(CONFIG_XFS_DMAPI) += dmapi/
  26. xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
  27. xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
  28. xfs-$(CONFIG_PROC_FS) += $(XFS_LINUX)/xfs_stats.o
  29. xfs-$(CONFIG_SYSCTL) += $(XFS_LINUX)/xfs_sysctl.o
  30. xfs-$(CONFIG_COMPAT) += $(XFS_LINUX)/xfs_ioctl32.o
  31. xfs-y += xfs_alloc.o \
  32. xfs_alloc_btree.o \
  33. xfs_attr.o \
  34. xfs_attr_leaf.o \
  35. xfs_bit.o \
  36. xfs_bmap.o \
  37. xfs_bmap_btree.o \
  38. xfs_btree.o \
  39. xfs_buf_item.o \
  40. xfs_da_btree.o \
  41. xfs_dir2.o \
  42. xfs_dir2_block.o \
  43. xfs_dir2_data.o \
  44. xfs_dir2_leaf.o \
  45. xfs_dir2_node.o \
  46. xfs_dir2_sf.o \
  47. xfs_error.o \
  48. xfs_extfree_item.o \
  49. xfs_filestream.o \
  50. xfs_fsops.o \
  51. xfs_ialloc.o \
  52. xfs_ialloc_btree.o \
  53. xfs_iget.o \
  54. xfs_inode.o \
  55. xfs_inode_item.o \
  56. xfs_iomap.o \
  57. xfs_itable.o \
  58. xfs_dfrag.o \
  59. xfs_log.o \
  60. xfs_log_recover.o \
  61. xfs_mount.o \
  62. xfs_mru_cache.o \
  63. xfs_rename.o \
  64. xfs_trans.o \
  65. xfs_trans_ail.o \
  66. xfs_trans_buf.o \
  67. xfs_trans_extfree.o \
  68. xfs_trans_inode.o \
  69. xfs_trans_item.o \
  70. xfs_utils.o \
  71. xfs_vfsops.o \
  72. xfs_vnodeops.o \
  73. xfs_rw.o \
  74. xfs_dmops.o \
  75. xfs_qmops.o
  76. xfs-$(CONFIG_XFS_TRACE) += xfs_dir2_trace.o
  77. # Objects in linux/
  78. xfs-y += $(addprefix $(XFS_LINUX)/, \
  79. kmem.o \
  80. xfs_aops.o \
  81. xfs_buf.o \
  82. xfs_export.o \
  83. xfs_file.o \
  84. xfs_fs_subr.o \
  85. xfs_globals.o \
  86. xfs_ioctl.o \
  87. xfs_iops.o \
  88. xfs_lrw.o \
  89. xfs_super.o \
  90. xfs_vnode.o \
  91. xfs_ksyms.o)
  92. # Objects in support/
  93. xfs-y += $(addprefix support/, \
  94. debug.o \
  95. uuid.o)
  96. xfs-$(CONFIG_XFS_TRACE) += support/ktrace.o
  97. # If both xfs and kdb modules are built in then xfsidbg is built in. If xfs is
  98. # a module and kdb modules are being compiled then xfsidbg must be a module, to
  99. # follow xfs. If xfs is built in then xfsidbg tracks the kdb module state.
  100. # This must come after the main xfs code so xfs initialises before xfsidbg.
  101. # KAO
  102. ifneq ($(CONFIG_KDB_MODULES),)
  103. ifeq ($(CONFIG_XFS_FS),y)
  104. obj-$(CONFIG_KDB_MODULES) += xfsidbg.o
  105. else
  106. obj-$(CONFIG_XFS_FS) += xfsidbg.o
  107. endif
  108. endif
  109. CFLAGS_xfsidbg.o += -Iarch/$(ARCH)/kdb