blob: 75bb316529ddabb27855025fd59832bc4a52a4c8 [file] [log] [blame]
Andi Kleen58b79832007-11-27 16:53:47 +11001#
2# Copyright (c) 2000-2005 Silicon Graphics, Inc.
3# All Rights Reserved.
4#
5# This program is free software; you can redistribute it and/or
6# modify it under the terms of the GNU General Public License as
7# published by the Free Software Foundation.
8#
9# This program is distributed in the hope that it would be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write the Free Software Foundation,
16# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17#
18
matt mooney0ccd2342011-01-14 06:12:35 -080019ccflags-y := -I$(src) -I$(src)/linux-2.6
20ccflags-$(CONFIG_XFS_DEBUG) += -g
Andi Kleen58b79832007-11-27 16:53:47 +110021
22XFS_LINUX := linux-2.6
23
Andi Kleen58b79832007-11-27 16:53:47 +110024obj-$(CONFIG_XFS_FS) += xfs.o
Lachlan McIlroy269cdfa2007-11-28 18:28:09 +110025
Christoph Hellwig0b1b2132009-12-14 23:14:59 +000026xfs-y += linux-2.6/xfs_trace.o
27
Lachlan McIlroy269cdfa2007-11-28 18:28:09 +110028xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \
29 xfs_dquot.o \
30 xfs_dquot_item.o \
31 xfs_trans_dquot.o \
32 xfs_qm_syscalls.o \
33 xfs_qm_bhv.o \
34 xfs_qm.o)
Christoph Hellwigfcafb712009-02-09 08:47:34 +010035xfs-$(CONFIG_XFS_QUOTA) += linux-2.6/xfs_quotaops.o
Lachlan McIlroy269cdfa2007-11-28 18:28:09 +110036
37ifeq ($(CONFIG_XFS_QUOTA),y)
38xfs-$(CONFIG_PROC_FS) += quota/xfs_qm_stats.o
39endif
Andi Kleen58b79832007-11-27 16:53:47 +110040
41xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
Christoph Hellwigef14f0c2009-06-10 17:07:47 +020042xfs-$(CONFIG_XFS_POSIX_ACL) += $(XFS_LINUX)/xfs_acl.o
Andi Kleen58b79832007-11-27 16:53:47 +110043xfs-$(CONFIG_PROC_FS) += $(XFS_LINUX)/xfs_stats.o
44xfs-$(CONFIG_SYSCTL) += $(XFS_LINUX)/xfs_sysctl.o
45xfs-$(CONFIG_COMPAT) += $(XFS_LINUX)/xfs_ioctl32.o
46
47
48xfs-y += xfs_alloc.o \
49 xfs_alloc_btree.o \
50 xfs_attr.o \
51 xfs_attr_leaf.o \
52 xfs_bit.o \
53 xfs_bmap.o \
54 xfs_bmap_btree.o \
55 xfs_btree.o \
56 xfs_buf_item.o \
57 xfs_da_btree.o \
58 xfs_dir2.o \
59 xfs_dir2_block.o \
60 xfs_dir2_data.o \
61 xfs_dir2_leaf.o \
62 xfs_dir2_node.o \
63 xfs_dir2_sf.o \
64 xfs_error.o \
65 xfs_extfree_item.o \
66 xfs_filestream.o \
67 xfs_fsops.o \
68 xfs_ialloc.o \
69 xfs_ialloc_btree.o \
70 xfs_iget.o \
71 xfs_inode.o \
72 xfs_inode_item.o \
73 xfs_iomap.o \
74 xfs_itable.o \
75 xfs_dfrag.o \
76 xfs_log.o \
Dave Chinner71e330b2010-05-21 14:37:18 +100077 xfs_log_cil.o \
Andi Kleen58b79832007-11-27 16:53:47 +110078 xfs_log_recover.o \
79 xfs_mount.o \
80 xfs_mru_cache.o \
81 xfs_rename.o \
82 xfs_trans.o \
83 xfs_trans_ail.o \
84 xfs_trans_buf.o \
85 xfs_trans_extfree.o \
86 xfs_trans_inode.o \
Andi Kleen58b79832007-11-27 16:53:47 +110087 xfs_utils.o \
Andi Kleen58b79832007-11-27 16:53:47 +110088 xfs_vnodeops.o \
Christoph Hellwig288699f2010-06-23 18:11:15 +100089 xfs_rw.o
Andi Kleen58b79832007-11-27 16:53:47 +110090
Andi Kleen58b79832007-11-27 16:53:47 +110091# Objects in linux/
92xfs-y += $(addprefix $(XFS_LINUX)/, \
93 kmem.o \
94 xfs_aops.o \
95 xfs_buf.o \
Christoph Hellwiga46db602011-01-07 13:02:04 +000096 xfs_discard.o \
Andi Kleen58b79832007-11-27 16:53:47 +110097 xfs_export.o \
98 xfs_file.o \
99 xfs_fs_subr.o \
100 xfs_globals.o \
101 xfs_ioctl.o \
102 xfs_iops.o \
Dave Chinner10e38392011-03-02 14:20:59 +1100103 xfs_message.o \
Andi Kleen58b79832007-11-27 16:53:47 +1100104 xfs_super.o \
David Chinnerfe4fa4b2008-10-30 17:06:08 +1100105 xfs_sync.o \
Lachlan McIlroy0ec58512008-06-23 13:23:01 +1000106 xfs_xattr.o)
Andi Kleen58b79832007-11-27 16:53:47 +1100107
108# Objects in support/
Dave Chinner91300902011-03-07 10:09:35 +1100109xfs-y += support/uuid.o