xref: /linux/fs/xfs/Makefile (revision fde2227ce12b6d3e1945bd512da2a4a333331a2c)
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*fde2227cSDave 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 \
50c59d87c4SChristoph Hellwig				   xfs_mru_cache.o \
51c59d87c4SChristoph Hellwig				   xfs_rename.o \
5219de7351SDave Chinner				   xfs_super.o \
537fd36c44SDave Chinner				   xfs_trans.o \
54c59d87c4SChristoph Hellwig				   xfs_utils.o \
55c59d87c4SChristoph Hellwig				   xfs_vnodeops.o \
5619de7351SDave Chinner				   xfs_xattr.o \
57c59d87c4SChristoph Hellwig				   kmem.o \
58c59d87c4SChristoph Hellwig				   uuid.o
59269cdfafSLachlan McIlroy
60c59d87c4SChristoph Hellwig# code shared with libxfs
6158b7983dSAndi Kleenxfs-y				+= xfs_alloc.o \
6258b7983dSAndi Kleen				   xfs_alloc_btree.o \
6358b7983dSAndi Kleen				   xfs_attr.o \
6458b7983dSAndi Kleen				   xfs_attr_leaf.o \
6595920cd6SDave Chinner				   xfs_attr_remote.o \
6658b7983dSAndi Kleen				   xfs_bmap.o \
6758b7983dSAndi Kleen				   xfs_bmap_btree.o \
6858b7983dSAndi Kleen				   xfs_btree.o \
6958b7983dSAndi Kleen				   xfs_da_btree.o \
7058b7983dSAndi Kleen				   xfs_dir2.o \
7158b7983dSAndi Kleen				   xfs_dir2_block.o \
7258b7983dSAndi Kleen				   xfs_dir2_data.o \
7358b7983dSAndi Kleen				   xfs_dir2_leaf.o \
7458b7983dSAndi Kleen				   xfs_dir2_node.o \
7558b7983dSAndi Kleen				   xfs_dir2_sf.o \
7658b7983dSAndi Kleen				   xfs_ialloc.o \
7758b7983dSAndi Kleen				   xfs_ialloc_btree.o \
783ebe7d2dSDave Chinner				   xfs_icreate_item.o \
7958b7983dSAndi Kleen				   xfs_inode.o \
805c4d97d0SDave Chinner				   xfs_inode_fork.o \
811fd7115eSDave Chinner				   xfs_inode_buf.o \
8258b7983dSAndi Kleen				   xfs_log_recover.o \
8358b7983dSAndi Kleen				   xfs_mount.o \
8419de7351SDave Chinner				   xfs_symlink.o \
857fd36c44SDave Chinner				   xfs_trans_resv.o
86c59d87c4SChristoph Hellwig
87c59d87c4SChristoph Hellwig# low-level transaction/log code
88c59d87c4SChristoph Hellwigxfs-y				+= xfs_log.o \
89c59d87c4SChristoph Hellwig				   xfs_log_cil.o \
90c59d87c4SChristoph Hellwig				   xfs_buf_item.o \
91c59d87c4SChristoph Hellwig				   xfs_extfree_item.o \
92c59d87c4SChristoph Hellwig				   xfs_inode_item.o \
9358b7983dSAndi Kleen				   xfs_trans_ail.o \
9458b7983dSAndi Kleen				   xfs_trans_buf.o \
9558b7983dSAndi Kleen				   xfs_trans_extfree.o \
9658b7983dSAndi Kleen				   xfs_trans_inode.o \
9758b7983dSAndi Kleen
98c59d87c4SChristoph Hellwig# optional features
99c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_QUOTA)		+= xfs_dquot.o \
100c59d87c4SChristoph Hellwig				   xfs_dquot_item.o \
101c59d87c4SChristoph Hellwig				   xfs_trans_dquot.o \
102c59d87c4SChristoph Hellwig				   xfs_qm_syscalls.o \
103c59d87c4SChristoph Hellwig				   xfs_qm_bhv.o \
104c59d87c4SChristoph Hellwig				   xfs_qm.o \
105c59d87c4SChristoph Hellwig				   xfs_quotaops.o
106c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_RT)		+= xfs_rtalloc.o
107c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_POSIX_ACL)	+= xfs_acl.o
108c59d87c4SChristoph Hellwigxfs-$(CONFIG_PROC_FS)		+= xfs_stats.o
109c59d87c4SChristoph Hellwigxfs-$(CONFIG_SYSCTL)		+= xfs_sysctl.o
110c59d87c4SChristoph Hellwigxfs-$(CONFIG_COMPAT)		+= xfs_ioctl32.o
111