blob: 0719e4db93f274de9af844f3ef66ce387b02a716 [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 \
Dave Chinner4a8af272013-08-12 20:49:36 +100035 xfs_dir2_readdir.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050036 xfs_discard.o \
37 xfs_error.o \
38 xfs_export.o \
Dave Chinnerefc27b52012-04-29 10:39:43 +000039 xfs_extent_busy.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050040 xfs_file.o \
41 xfs_filestream.o \
42 xfs_fsops.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050043 xfs_globals.o \
Dave Chinner6d8b79c2012-10-08 21:56:09 +110044 xfs_icache.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050045 xfs_ioctl.o \
46 xfs_iomap.o \
47 xfs_iops.o \
48 xfs_itable.o \
49 xfs_message.o \
Dave Chinnerff550682013-08-12 20:49:41 +100050 xfs_mount.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050051 xfs_mru_cache.o \
Dave Chinner19de7352013-04-03 16:11:18 +110052 xfs_super.o \
Dave Chinner1fb7e48d2013-08-12 20:49:40 +100053 xfs_symlink.o \
Dave Chinner7fd36c42013-08-12 20:49:32 +100054 xfs_trans.o \
Dave Chinner19de7352013-04-03 16:11:18 +110055 xfs_xattr.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050056 kmem.o \
57 uuid.o
Lachlan McIlroy269cdfa2007-11-28 18:28:09 +110058
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050059# code shared with libxfs
Andi Kleen58b79832007-11-27 16:53:47 +110060xfs-y += xfs_alloc.o \
61 xfs_alloc_btree.o \
62 xfs_attr.o \
63 xfs_attr_leaf.o \
Dave Chinner95920cd2013-04-03 16:11:27 +110064 xfs_attr_remote.o \
Andi Kleen58b79832007-11-27 16:53:47 +110065 xfs_bmap.o \
66 xfs_bmap_btree.o \
67 xfs_btree.o \
Andi Kleen58b79832007-11-27 16:53:47 +110068 xfs_da_btree.o \
69 xfs_dir2.o \
70 xfs_dir2_block.o \
71 xfs_dir2_data.o \
72 xfs_dir2_leaf.o \
73 xfs_dir2_node.o \
74 xfs_dir2_sf.o \
Andi Kleen58b79832007-11-27 16:53:47 +110075 xfs_ialloc.o \
76 xfs_ialloc_btree.o \
Dave Chinner3ebe7d22013-06-27 16:04:53 +100077 xfs_icreate_item.o \
Andi Kleen58b79832007-11-27 16:53:47 +110078 xfs_inode.o \
Dave Chinner5c4d97d2013-08-12 20:49:33 +100079 xfs_inode_fork.o \
Dave Chinner1fd71152013-08-12 20:49:35 +100080 xfs_inode_buf.o \
Andi Kleen58b79832007-11-27 16:53:47 +110081 xfs_log_recover.o \
Jie Liu5a96a942013-08-12 20:50:02 +100082 xfs_log_rlimit.o \
Dave Chinnerff550682013-08-12 20:49:41 +100083 xfs_sb.o \
Dave Chinner1fb7e48d2013-08-12 20:49:40 +100084 xfs_symlink_remote.o \
Dave Chinner7fd36c42013-08-12 20:49:32 +100085 xfs_trans_resv.o
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050086
87# low-level transaction/log code
88xfs-y += xfs_log.o \
89 xfs_log_cil.o \
90 xfs_buf_item.o \
91 xfs_extfree_item.o \
92 xfs_inode_item.o \
Andi Kleen58b79832007-11-27 16:53:47 +110093 xfs_trans_ail.o \
94 xfs_trans_buf.o \
95 xfs_trans_extfree.o \
96 xfs_trans_inode.o \
Andi Kleen58b79832007-11-27 16:53:47 +110097
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050098# optional features
99xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
100 xfs_dquot_item.o \
101 xfs_trans_dquot.o \
102 xfs_qm_syscalls.o \
103 xfs_qm_bhv.o \
104 xfs_qm.o \
105 xfs_quotaops.o
Christoph Hellwigc59d87c2011-08-12 16:21:35 -0500106xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
107xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
108xfs-$(CONFIG_PROC_FS) += xfs_stats.o
109xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
110xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o