xref: /linux/fs/xfs/Makefile (revision c59d87c460767bc35dafd490139d3cfe78fb8da4)
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
190ccd234cSmatt mooneyccflags-$(CONFIG_XFS_DEBUG) += -g
2058b7983dSAndi Kleen
2158b7983dSAndi Kleenobj-$(CONFIG_XFS_FS)		+= xfs.o
22269cdfafSLachlan McIlroy
23*c59d87c4SChristoph Hellwig# this one should be compiled first, as the tracing macros can easily blow up
24*c59d87c4SChristoph Hellwigxfs-y				+= xfs_trace.o
250b1b213fSChristoph Hellwig
26*c59d87c4SChristoph Hellwig# highlevel code
27*c59d87c4SChristoph Hellwigxfs-y				+= xfs_aops.o \
28*c59d87c4SChristoph Hellwig				   xfs_bit.o \
29*c59d87c4SChristoph Hellwig				   xfs_buf.o \
30*c59d87c4SChristoph Hellwig				   xfs_dfrag.o \
31*c59d87c4SChristoph Hellwig				   xfs_discard.o \
32*c59d87c4SChristoph Hellwig				   xfs_error.o \
33*c59d87c4SChristoph Hellwig				   xfs_export.o \
34*c59d87c4SChristoph Hellwig				   xfs_file.o \
35*c59d87c4SChristoph Hellwig				   xfs_filestream.o \
36*c59d87c4SChristoph Hellwig				   xfs_fsops.o \
37*c59d87c4SChristoph Hellwig				   xfs_fs_subr.o \
38*c59d87c4SChristoph Hellwig				   xfs_globals.o \
39*c59d87c4SChristoph Hellwig				   xfs_iget.o \
40*c59d87c4SChristoph Hellwig				   xfs_ioctl.o \
41*c59d87c4SChristoph Hellwig				   xfs_iomap.o \
42*c59d87c4SChristoph Hellwig				   xfs_iops.o \
43*c59d87c4SChristoph Hellwig				   xfs_itable.o \
44*c59d87c4SChristoph Hellwig				   xfs_message.o \
45*c59d87c4SChristoph Hellwig				   xfs_mru_cache.o \
46*c59d87c4SChristoph Hellwig				   xfs_super.o \
47*c59d87c4SChristoph Hellwig				   xfs_sync.o \
48*c59d87c4SChristoph Hellwig				   xfs_xattr.o \
49*c59d87c4SChristoph Hellwig				   xfs_rename.o \
50*c59d87c4SChristoph Hellwig				   xfs_rw.o \
51*c59d87c4SChristoph Hellwig				   xfs_utils.o \
52*c59d87c4SChristoph Hellwig				   xfs_vnodeops.o \
53*c59d87c4SChristoph Hellwig				   kmem.o \
54*c59d87c4SChristoph Hellwig				   uuid.o
55269cdfafSLachlan McIlroy
56*c59d87c4SChristoph Hellwig# code shared with libxfs
5758b7983dSAndi Kleenxfs-y				+= xfs_alloc.o \
5858b7983dSAndi Kleen				   xfs_alloc_btree.o \
5958b7983dSAndi Kleen				   xfs_attr.o \
6058b7983dSAndi Kleen				   xfs_attr_leaf.o \
6158b7983dSAndi Kleen				   xfs_bmap.o \
6258b7983dSAndi Kleen				   xfs_bmap_btree.o \
6358b7983dSAndi Kleen				   xfs_btree.o \
6458b7983dSAndi Kleen				   xfs_da_btree.o \
6558b7983dSAndi Kleen				   xfs_dir2.o \
6658b7983dSAndi Kleen				   xfs_dir2_block.o \
6758b7983dSAndi Kleen				   xfs_dir2_data.o \
6858b7983dSAndi Kleen				   xfs_dir2_leaf.o \
6958b7983dSAndi Kleen				   xfs_dir2_node.o \
7058b7983dSAndi Kleen				   xfs_dir2_sf.o \
7158b7983dSAndi Kleen				   xfs_ialloc.o \
7258b7983dSAndi Kleen				   xfs_ialloc_btree.o \
7358b7983dSAndi Kleen				   xfs_inode.o \
7458b7983dSAndi Kleen				   xfs_log_recover.o \
7558b7983dSAndi Kleen				   xfs_mount.o \
76*c59d87c4SChristoph Hellwig				   xfs_trans.o
77*c59d87c4SChristoph Hellwig
78*c59d87c4SChristoph Hellwig# low-level transaction/log code
79*c59d87c4SChristoph Hellwigxfs-y				+= xfs_log.o \
80*c59d87c4SChristoph Hellwig				   xfs_log_cil.o \
81*c59d87c4SChristoph Hellwig				   xfs_buf_item.o \
82*c59d87c4SChristoph Hellwig				   xfs_extfree_item.o \
83*c59d87c4SChristoph Hellwig				   xfs_inode_item.o \
8458b7983dSAndi Kleen				   xfs_trans_ail.o \
8558b7983dSAndi Kleen				   xfs_trans_buf.o \
8658b7983dSAndi Kleen				   xfs_trans_extfree.o \
8758b7983dSAndi Kleen				   xfs_trans_inode.o \
8858b7983dSAndi Kleen
89*c59d87c4SChristoph Hellwig# optional features
90*c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_QUOTA)		+= xfs_dquot.o \
91*c59d87c4SChristoph Hellwig				   xfs_dquot_item.o \
92*c59d87c4SChristoph Hellwig				   xfs_trans_dquot.o \
93*c59d87c4SChristoph Hellwig				   xfs_qm_syscalls.o \
94*c59d87c4SChristoph Hellwig				   xfs_qm_bhv.o \
95*c59d87c4SChristoph Hellwig				   xfs_qm.o \
96*c59d87c4SChristoph Hellwig				   xfs_quotaops.o
97*c59d87c4SChristoph Hellwigifeq ($(CONFIG_XFS_QUOTA),y)
98*c59d87c4SChristoph Hellwigxfs-$(CONFIG_PROC_FS)		+= xfs_qm_stats.o
99*c59d87c4SChristoph Hellwigendif
100*c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_RT)		+= xfs_rtalloc.o
101*c59d87c4SChristoph Hellwigxfs-$(CONFIG_XFS_POSIX_ACL)	+= xfs_acl.o
102*c59d87c4SChristoph Hellwigxfs-$(CONFIG_PROC_FS)		+= xfs_stats.o
103*c59d87c4SChristoph Hellwigxfs-$(CONFIG_SYSCTL)		+= xfs_sysctl.o
104*c59d87c4SChristoph Hellwigxfs-$(CONFIG_COMPAT)		+= xfs_ioctl32.o
105