xref: /linux/fs/xfs/Makefile (revision efc27b52594e322d4c94e379489fa3690bf74739)
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 \
30c59d87c4SChristoph Hellwig				   xfs_bit.o \
31c59d87c4SChristoph Hellwig				   xfs_buf.o \
32c59d87c4SChristoph Hellwig				   xfs_dfrag.o \
33c59d87c4SChristoph Hellwig				   xfs_discard.o \
34c59d87c4SChristoph Hellwig				   xfs_error.o \
35c59d87c4SChristoph Hellwig				   xfs_export.o \
36*efc27b52SDave Chinner				   xfs_extent_busy.o \
37c59d87c4SChristoph Hellwig				   xfs_file.o \
38c59d87c4SChristoph Hellwig				   xfs_filestream.o \
39c59d87c4SChristoph Hellwig				   xfs_fsops.o \
40c59d87c4SChristoph Hellwig				   xfs_fs_subr.o \
41c59d87c4SChristoph Hellwig				   xfs_globals.o \
42c59d87c4SChristoph Hellwig				   xfs_iget.o \
43c59d87c4SChristoph Hellwig				   xfs_ioctl.o \
44c59d87c4SChristoph Hellwig				   xfs_iomap.o \
45c59d87c4SChristoph Hellwig				   xfs_iops.o \
46c59d87c4SChristoph Hellwig				   xfs_itable.o \
47c59d87c4SChristoph Hellwig				   xfs_message.o \
48c59d87c4SChristoph Hellwig				   xfs_mru_cache.o \
49c59d87c4SChristoph Hellwig				   xfs_super.o \
50c59d87c4SChristoph Hellwig				   xfs_sync.o \
51c59d87c4SChristoph Hellwig				   xfs_xattr.o \
52c59d87c4SChristoph Hellwig				   xfs_rename.o \
53c59d87c4SChristoph Hellwig				   xfs_rw.o \
54c59d87c4SChristoph Hellwig				   xfs_utils.o \
55c59d87c4SChristoph Hellwig				   xfs_vnodeops.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 \
6458b7983dSAndi Kleen				   xfs_bmap.o \
6558b7983dSAndi Kleen				   xfs_bmap_btree.o \
6658b7983dSAndi Kleen				   xfs_btree.o \
6758b7983dSAndi Kleen				   xfs_da_btree.o \
6858b7983dSAndi Kleen				   xfs_dir2.o \
6958b7983dSAndi Kleen				   xfs_dir2_block.o \
7058b7983dSAndi Kleen				   xfs_dir2_data.o \
7158b7983dSAndi Kleen				   xfs_dir2_leaf.o \
7258b7983dSAndi Kleen				   xfs_dir2_node.o \
7358b7983dSAndi Kleen				   xfs_dir2_sf.o \
7458b7983dSAndi Kleen				   xfs_ialloc.o \
7558b7983dSAndi Kleen				   xfs_ialloc_btree.o \
7658b7983dSAndi Kleen				   xfs_inode.o \
7758b7983dSAndi Kleen				   xfs_log_recover.o \
7858b7983dSAndi Kleen				   xfs_mount.o \
79c59d87c4SChristoph Hellwig				   xfs_trans.o
80c59d87c4SChristoph Hellwig
81c59d87c4SChristoph Hellwig# low-level transaction/log code
82c59d87c4SChristoph Hellwigxfs-y				+= xfs_log.o \
83c59d87c4SChristoph Hellwig				   xfs_log_cil.o \
84c59d87c4SChristoph Hellwig				   xfs_buf_item.o \
85c59d87c4SChristoph Hellwig				   xfs_extfree_item.o \
86c59d87c4SChristoph Hellwig				   xfs_inode_item.o \
8758b7983dSAndi Kleen				   xfs_trans_ail.o \
8858b7983dSAndi Kleen				   xfs_trans_buf.o \
8958b7983dSAndi Kleen				   xfs_trans_extfree.o \
9058b7983dSAndi Kleen				   xfs_trans_inode.o \
9158b7983dSAndi Kleen
92c59d87c4SChristoph Hellwig# optional features
93c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_QUOTA)		+= xfs_dquot.o \
94c59d87c4SChristoph Hellwig				   xfs_dquot_item.o \
95c59d87c4SChristoph Hellwig				   xfs_trans_dquot.o \
96c59d87c4SChristoph Hellwig				   xfs_qm_syscalls.o \
97c59d87c4SChristoph Hellwig				   xfs_qm_bhv.o \
98c59d87c4SChristoph Hellwig				   xfs_qm.o \
99c59d87c4SChristoph Hellwig				   xfs_quotaops.o
100c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_RT)		+= xfs_rtalloc.o
101c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_POSIX_ACL)	+= xfs_acl.o
102c59d87c4SChristoph Hellwigxfs-$(CONFIG_PROC_FS)		+= xfs_stats.o
103c59d87c4SChristoph Hellwigxfs-$(CONFIG_SYSCTL)		+= xfs_sysctl.o
104c59d87c4SChristoph Hellwigxfs-$(CONFIG_COMPAT)		+= xfs_ioctl32.o
105