xref: /linux/fs/xfs/Makefile (revision abec5f2bf991a03b055be36d918cd6f8f58cc83e)
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 \
30*abec5f2bSDave Chinner				   xfs_attr_list.o \
31c59d87c4SChristoph Hellwig				   xfs_bit.o \
32c59d87c4SChristoph Hellwig				   xfs_buf.o \
33c59d87c4SChristoph Hellwig				   xfs_dfrag.o \
344a8af273SDave Chinner				   xfs_dir2_readdir.o \
35c59d87c4SChristoph Hellwig				   xfs_discard.o \
36c59d87c4SChristoph Hellwig				   xfs_error.o \
37c59d87c4SChristoph Hellwig				   xfs_export.o \
38efc27b52SDave Chinner				   xfs_extent_busy.o \
39c59d87c4SChristoph Hellwig				   xfs_file.o \
40c59d87c4SChristoph Hellwig				   xfs_filestream.o \
41c59d87c4SChristoph Hellwig				   xfs_fsops.o \
42c59d87c4SChristoph Hellwig				   xfs_globals.o \
436d8b79cfSDave Chinner				   xfs_icache.o \
44c59d87c4SChristoph Hellwig				   xfs_ioctl.o \
45c59d87c4SChristoph Hellwig				   xfs_iomap.o \
46c59d87c4SChristoph Hellwig				   xfs_iops.o \
47c59d87c4SChristoph Hellwig				   xfs_itable.o \
48c59d87c4SChristoph Hellwig				   xfs_message.o \
49c59d87c4SChristoph Hellwig				   xfs_mru_cache.o \
50c59d87c4SChristoph Hellwig				   xfs_rename.o \
5119de7351SDave Chinner				   xfs_super.o \
527fd36c44SDave Chinner				   xfs_trans.o \
53c59d87c4SChristoph Hellwig				   xfs_utils.o \
54c59d87c4SChristoph Hellwig				   xfs_vnodeops.o \
5519de7351SDave Chinner				   xfs_xattr.o \
56c59d87c4SChristoph Hellwig				   kmem.o \
57c59d87c4SChristoph Hellwig				   uuid.o
58269cdfafSLachlan McIlroy
59c59d87c4SChristoph Hellwig# code shared with libxfs
6058b7983dSAndi Kleenxfs-y				+= xfs_alloc.o \
6158b7983dSAndi Kleen				   xfs_alloc_btree.o \
6258b7983dSAndi Kleen				   xfs_attr.o \
6358b7983dSAndi Kleen				   xfs_attr_leaf.o \
6495920cd6SDave Chinner				   xfs_attr_remote.o \
6558b7983dSAndi Kleen				   xfs_bmap.o \
6658b7983dSAndi Kleen				   xfs_bmap_btree.o \
6758b7983dSAndi Kleen				   xfs_btree.o \
6858b7983dSAndi Kleen				   xfs_da_btree.o \
6958b7983dSAndi Kleen				   xfs_dir2.o \
7058b7983dSAndi Kleen				   xfs_dir2_block.o \
7158b7983dSAndi Kleen				   xfs_dir2_data.o \
7258b7983dSAndi Kleen				   xfs_dir2_leaf.o \
7358b7983dSAndi Kleen				   xfs_dir2_node.o \
7458b7983dSAndi Kleen				   xfs_dir2_sf.o \
7558b7983dSAndi Kleen				   xfs_ialloc.o \
7658b7983dSAndi Kleen				   xfs_ialloc_btree.o \
773ebe7d2dSDave Chinner				   xfs_icreate_item.o \
7858b7983dSAndi Kleen				   xfs_inode.o \
795c4d97d0SDave Chinner				   xfs_inode_fork.o \
801fd7115eSDave Chinner				   xfs_inode_buf.o \
8158b7983dSAndi Kleen				   xfs_log_recover.o \
8258b7983dSAndi Kleen				   xfs_mount.o \
8319de7351SDave Chinner				   xfs_symlink.o \
847fd36c44SDave Chinner				   xfs_trans_resv.o
85c59d87c4SChristoph Hellwig
86c59d87c4SChristoph Hellwig# low-level transaction/log code
87c59d87c4SChristoph Hellwigxfs-y				+= xfs_log.o \
88c59d87c4SChristoph Hellwig				   xfs_log_cil.o \
89c59d87c4SChristoph Hellwig				   xfs_buf_item.o \
90c59d87c4SChristoph Hellwig				   xfs_extfree_item.o \
91c59d87c4SChristoph Hellwig				   xfs_inode_item.o \
9258b7983dSAndi Kleen				   xfs_trans_ail.o \
9358b7983dSAndi Kleen				   xfs_trans_buf.o \
9458b7983dSAndi Kleen				   xfs_trans_extfree.o \
9558b7983dSAndi Kleen				   xfs_trans_inode.o \
9658b7983dSAndi Kleen
97c59d87c4SChristoph Hellwig# optional features
98c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_QUOTA)		+= xfs_dquot.o \
99c59d87c4SChristoph Hellwig				   xfs_dquot_item.o \
100c59d87c4SChristoph Hellwig				   xfs_trans_dquot.o \
101c59d87c4SChristoph Hellwig				   xfs_qm_syscalls.o \
102c59d87c4SChristoph Hellwig				   xfs_qm_bhv.o \
103c59d87c4SChristoph Hellwig				   xfs_qm.o \
104c59d87c4SChristoph Hellwig				   xfs_quotaops.o
105c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_RT)		+= xfs_rtalloc.o
106c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_POSIX_ACL)	+= xfs_acl.o
107c59d87c4SChristoph Hellwigxfs-$(CONFIG_PROC_FS)		+= xfs_stats.o
108c59d87c4SChristoph Hellwigxfs-$(CONFIG_SYSCTL)		+= xfs_sysctl.o
109c59d87c4SChristoph Hellwigxfs-$(CONFIG_COMPAT)		+= xfs_ioctl32.o
110