158b7983dSAndi Kleen# 258b7983dSAndi Kleen# Copyright (c) 2000-2005 Silicon Graphics, Inc. 358b7983dSAndi Kleen# All Rights Reserved. 458b7983dSAndi Kleen# 558b7983dSAndi Kleen# This program is free software; you can redistribute it and/or 658b7983dSAndi Kleen# modify it under the terms of the GNU General Public License as 758b7983dSAndi Kleen# published by the Free Software Foundation. 858b7983dSAndi Kleen# 958b7983dSAndi Kleen# This program is distributed in the hope that it would be useful, 1058b7983dSAndi Kleen# but WITHOUT ANY WARRANTY; without even the implied warranty of 1158b7983dSAndi Kleen# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1258b7983dSAndi Kleen# GNU General Public License for more details. 1358b7983dSAndi Kleen# 1458b7983dSAndi Kleen# You should have received a copy of the GNU General Public License 1558b7983dSAndi Kleen# along with this program; if not, write the Free Software Foundation, 1658b7983dSAndi Kleen# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 1758b7983dSAndi Kleen# 1858b7983dSAndi Kleen 19b6bede3bSChristoph Hellwigccflags-y += -I$(src) # needed for trace events 20b6bede3bSChristoph Hellwig 210ccd234cSmatt mooneyccflags-$(CONFIG_XFS_DEBUG) += -g 2258b7983dSAndi Kleen 2358b7983dSAndi Kleenobj-$(CONFIG_XFS_FS) += xfs.o 24269cdfafSLachlan McIlroy 25c59d87c4SChristoph Hellwig# this one should be compiled first, as the tracing macros can easily blow up 26c59d87c4SChristoph Hellwigxfs-y += xfs_trace.o 270b1b213fSChristoph Hellwig 28c59d87c4SChristoph Hellwig# highlevel code 29c59d87c4SChristoph Hellwigxfs-y += xfs_aops.o \ 30fde2227cSDave Chinner xfs_attr_inactive.o \ 31abec5f2bSDave Chinner xfs_attr_list.o \ 32c59d87c4SChristoph Hellwig xfs_bit.o \ 33c59d87c4SChristoph Hellwig xfs_buf.o \ 34c59d87c4SChristoph Hellwig xfs_dfrag.o \ 354a8af273SDave Chinner xfs_dir2_readdir.o \ 36c59d87c4SChristoph Hellwig xfs_discard.o \ 37c59d87c4SChristoph Hellwig xfs_error.o \ 38c59d87c4SChristoph Hellwig xfs_export.o \ 39efc27b52SDave Chinner xfs_extent_busy.o \ 40c59d87c4SChristoph Hellwig xfs_file.o \ 41c59d87c4SChristoph Hellwig xfs_filestream.o \ 42c59d87c4SChristoph Hellwig xfs_fsops.o \ 43c59d87c4SChristoph Hellwig xfs_globals.o \ 446d8b79cfSDave Chinner xfs_icache.o \ 45c59d87c4SChristoph Hellwig xfs_ioctl.o \ 46c59d87c4SChristoph Hellwig xfs_iomap.o \ 47c59d87c4SChristoph Hellwig xfs_iops.o \ 48c59d87c4SChristoph Hellwig xfs_itable.o \ 49c59d87c4SChristoph Hellwig xfs_message.o \ 50*ff55068cSDave Chinner xfs_mount.o \ 51c59d87c4SChristoph Hellwig xfs_mru_cache.o \ 52c59d87c4SChristoph Hellwig xfs_rename.o \ 5319de7351SDave Chinner xfs_super.o \ 541fb7e48dSDave Chinner xfs_symlink.o \ 557fd36c44SDave Chinner xfs_trans.o \ 56c59d87c4SChristoph Hellwig xfs_utils.o \ 57c59d87c4SChristoph Hellwig xfs_vnodeops.o \ 5819de7351SDave Chinner xfs_xattr.o \ 59c59d87c4SChristoph Hellwig kmem.o \ 60c59d87c4SChristoph Hellwig uuid.o 61269cdfafSLachlan McIlroy 62c59d87c4SChristoph Hellwig# code shared with libxfs 6358b7983dSAndi Kleenxfs-y += xfs_alloc.o \ 6458b7983dSAndi Kleen xfs_alloc_btree.o \ 6558b7983dSAndi Kleen xfs_attr.o \ 6658b7983dSAndi Kleen xfs_attr_leaf.o \ 6795920cd6SDave Chinner xfs_attr_remote.o \ 6858b7983dSAndi Kleen xfs_bmap.o \ 6958b7983dSAndi Kleen xfs_bmap_btree.o \ 7058b7983dSAndi Kleen xfs_btree.o \ 7158b7983dSAndi Kleen xfs_da_btree.o \ 7258b7983dSAndi Kleen xfs_dir2.o \ 7358b7983dSAndi Kleen xfs_dir2_block.o \ 7458b7983dSAndi Kleen xfs_dir2_data.o \ 7558b7983dSAndi Kleen xfs_dir2_leaf.o \ 7658b7983dSAndi Kleen xfs_dir2_node.o \ 7758b7983dSAndi Kleen xfs_dir2_sf.o \ 7858b7983dSAndi Kleen xfs_ialloc.o \ 7958b7983dSAndi Kleen xfs_ialloc_btree.o \ 803ebe7d2dSDave Chinner xfs_icreate_item.o \ 8158b7983dSAndi Kleen xfs_inode.o \ 825c4d97d0SDave Chinner xfs_inode_fork.o \ 831fd7115eSDave Chinner xfs_inode_buf.o \ 8458b7983dSAndi Kleen xfs_log_recover.o \ 85*ff55068cSDave Chinner xfs_sb.o \ 861fb7e48dSDave Chinner xfs_symlink_remote.o \ 877fd36c44SDave Chinner xfs_trans_resv.o 88c59d87c4SChristoph Hellwig 89c59d87c4SChristoph Hellwig# low-level transaction/log code 90c59d87c4SChristoph Hellwigxfs-y += xfs_log.o \ 91c59d87c4SChristoph Hellwig xfs_log_cil.o \ 92c59d87c4SChristoph Hellwig xfs_buf_item.o \ 93c59d87c4SChristoph Hellwig xfs_extfree_item.o \ 94c59d87c4SChristoph Hellwig xfs_inode_item.o \ 9558b7983dSAndi Kleen xfs_trans_ail.o \ 9658b7983dSAndi Kleen xfs_trans_buf.o \ 9758b7983dSAndi Kleen xfs_trans_extfree.o \ 9858b7983dSAndi Kleen xfs_trans_inode.o \ 9958b7983dSAndi Kleen 100c59d87c4SChristoph Hellwig# optional features 101c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \ 102c59d87c4SChristoph Hellwig xfs_dquot_item.o \ 103c59d87c4SChristoph Hellwig xfs_trans_dquot.o \ 104c59d87c4SChristoph Hellwig xfs_qm_syscalls.o \ 105c59d87c4SChristoph Hellwig xfs_qm_bhv.o \ 106c59d87c4SChristoph Hellwig xfs_qm.o \ 107c59d87c4SChristoph Hellwig xfs_quotaops.o 108c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o 109c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o 110c59d87c4SChristoph Hellwigxfs-$(CONFIG_PROC_FS) += xfs_stats.o 111c59d87c4SChristoph Hellwigxfs-$(CONFIG_SYSCTL) += xfs_sysctl.o 112c59d87c4SChristoph Hellwigxfs-$(CONFIG_COMPAT) += xfs_ioctl32.o 113