blob: dcd21b95cd980fb2979cbd20ac37e031c04a9c12 [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
Christoph Hellwigb6bede32011-08-14 17:13:00 +000019ccflags-y += -I$(src) # needed for trace events
20
matt mooney0ccd2342011-01-14 06:12:35 -080021ccflags-$(CONFIG_XFS_DEBUG) += -g
Andi Kleen58b79832007-11-27 16:53:47 +110022
Andi Kleen58b79832007-11-27 16:53:47 +110023obj-$(CONFIG_XFS_FS) += xfs.o
Lachlan McIlroy269cdfa2007-11-28 18:28:09 +110024
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050025# this one should be compiled first, as the tracing macros can easily blow up
26xfs-y += xfs_trace.o
Christoph Hellwig0b1b2132009-12-14 23:14:59 +000027
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050028# highlevel code
29xfs-y += xfs_aops.o \
Dave Chinnerfde22272013-08-12 20:49:39 +100030 xfs_attr_inactive.o \
Dave Chinnerabec5f22013-08-12 20:49:38 +100031 xfs_attr_list.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050032 xfs_bit.o \
Dave Chinner68988112013-08-12 20:49:42 +100033 xfs_bmap_util.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050034 xfs_buf.o \
35 xfs_dfrag.o \
Dave Chinner4a8af272013-08-12 20:49:36 +100036 xfs_dir2_readdir.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050037 xfs_discard.o \
38 xfs_error.o \
39 xfs_export.o \
Dave Chinnerefc27b52012-04-29 10:39:43 +000040 xfs_extent_busy.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050041 xfs_file.o \
42 xfs_filestream.o \
43 xfs_fsops.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050044 xfs_globals.o \
Dave Chinner6d8b79c2012-10-08 21:56:09 +110045 xfs_icache.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050046 xfs_ioctl.o \
47 xfs_iomap.o \
48 xfs_iops.o \
49 xfs_itable.o \
50 xfs_message.o \
Dave Chinnerff550682013-08-12 20:49:41 +100051 xfs_mount.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050052 xfs_mru_cache.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050053 xfs_rename.o \
Dave Chinner19de7352013-04-03 16:11:18 +110054 xfs_super.o \
Dave Chinner1fb7e48d2013-08-12 20:49:40 +100055 xfs_symlink.o \
Dave Chinner7fd36c42013-08-12 20:49:32 +100056 xfs_trans.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050057 xfs_utils.o \
58 xfs_vnodeops.o \
Dave Chinner19de7352013-04-03 16:11:18 +110059 xfs_xattr.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050060 kmem.o \
61 uuid.o
Lachlan McIlroy269cdfa2007-11-28 18:28:09 +110062
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050063# code shared with libxfs
Andi Kleen58b79832007-11-27 16:53:47 +110064xfs-y += xfs_alloc.o \
65 xfs_alloc_btree.o \
66 xfs_attr.o \
67 xfs_attr_leaf.o \
Dave Chinner95920cd2013-04-03 16:11:27 +110068 xfs_attr_remote.o \
Andi Kleen58b79832007-11-27 16:53:47 +110069 xfs_bmap.o \
70 xfs_bmap_btree.o \
71 xfs_btree.o \
Andi Kleen58b79832007-11-27 16:53:47 +110072 xfs_da_btree.o \
73 xfs_dir2.o \
74 xfs_dir2_block.o \
75 xfs_dir2_data.o \
76 xfs_dir2_leaf.o \
77 xfs_dir2_node.o \
78 xfs_dir2_sf.o \
Andi Kleen58b79832007-11-27 16:53:47 +110079 xfs_ialloc.o \
80 xfs_ialloc_btree.o \
Dave Chinner3ebe7d22013-06-27 16:04:53 +100081 xfs_icreate_item.o \
Andi Kleen58b79832007-11-27 16:53:47 +110082 xfs_inode.o \
Dave Chinner5c4d97d2013-08-12 20:49:33 +100083 xfs_inode_fork.o \
Dave Chinner1fd71152013-08-12 20:49:35 +100084 xfs_inode_buf.o \
Andi Kleen58b79832007-11-27 16:53:47 +110085 xfs_log_recover.o \
Dave Chinnerff550682013-08-12 20:49:41 +100086 xfs_sb.o \
Dave Chinner1fb7e48d2013-08-12 20:49:40 +100087 xfs_symlink_remote.o \
Dave Chinner7fd36c42013-08-12 20:49:32 +100088 xfs_trans_resv.o
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050089
90# low-level transaction/log code
91xfs-y += xfs_log.o \
92 xfs_log_cil.o \
93 xfs_buf_item.o \
94 xfs_extfree_item.o \
95 xfs_inode_item.o \
Andi Kleen58b79832007-11-27 16:53:47 +110096 xfs_trans_ail.o \
97 xfs_trans_buf.o \
98 xfs_trans_extfree.o \
99 xfs_trans_inode.o \
Andi Kleen58b79832007-11-27 16:53:47 +1100100
Christoph Hellwigc59d87c2011-08-12 16:21:35 -0500101# optional features
102xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
103 xfs_dquot_item.o \
104 xfs_trans_dquot.o \
105 xfs_qm_syscalls.o \
106 xfs_qm_bhv.o \
107 xfs_qm.o \
108 xfs_quotaops.o
Christoph Hellwigc59d87c2011-08-12 16:21:35 -0500109xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
110xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
111xfs-$(CONFIG_PROC_FS) += xfs_stats.o
112xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
113xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o