blob: c21f4350666112c4222b33ad7c268e1d759d540c [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 \
Dave Chinner32c54832013-10-29 22:11:46 +110069 xfs_da_format.o \
Andi Kleen58b79832007-11-27 16:53:47 +110070 xfs_dir2.o \
71 xfs_dir2_block.o \
72 xfs_dir2_data.o \
73 xfs_dir2_leaf.o \
74 xfs_dir2_node.o \
75 xfs_dir2_sf.o \
Dave Chinner9aede1d2013-10-15 09:17:52 +110076 xfs_dquot_buf.o \
Andi Kleen58b79832007-11-27 16:53:47 +110077 xfs_ialloc.o \
78 xfs_ialloc_btree.o \
Dave Chinner3ebe7d22013-06-27 16:04:53 +100079 xfs_icreate_item.o \
Andi Kleen58b79832007-11-27 16:53:47 +110080 xfs_inode.o \
Dave Chinner5c4d97d2013-08-12 20:49:33 +100081 xfs_inode_fork.o \
Dave Chinner1fd71152013-08-12 20:49:35 +100082 xfs_inode_buf.o \
Andi Kleen58b79832007-11-27 16:53:47 +110083 xfs_log_recover.o \
Jie Liu5a96a942013-08-12 20:50:02 +100084 xfs_log_rlimit.o \
Dave Chinnerff550682013-08-12 20:49:41 +100085 xfs_sb.o \
Dave Chinner1fb7e48d2013-08-12 20:49:40 +100086 xfs_symlink_remote.o \
Dave Chinner7fd36c42013-08-12 20:49:32 +100087 xfs_trans_resv.o
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050088
89# low-level transaction/log code
90xfs-y += xfs_log.o \
91 xfs_log_cil.o \
92 xfs_buf_item.o \
93 xfs_extfree_item.o \
94 xfs_inode_item.o \
Andi Kleen58b79832007-11-27 16:53:47 +110095 xfs_trans_ail.o \
96 xfs_trans_buf.o \
97 xfs_trans_extfree.o \
98 xfs_trans_inode.o \
Andi Kleen58b79832007-11-27 16:53:47 +110099
Christoph Hellwigc59d87c2011-08-12 16:21:35 -0500100# optional features
101xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
102 xfs_dquot_item.o \
103 xfs_trans_dquot.o \
104 xfs_qm_syscalls.o \
105 xfs_qm_bhv.o \
106 xfs_qm.o \
107 xfs_quotaops.o
Dave Chinnerc963c612013-10-15 09:17:56 +1100108
109# xfs_rtbitmap is shared with libxfs
110xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o \
111 xfs_rtbitmap.o
112
Christoph Hellwigc59d87c2011-08-12 16:21:35 -0500113xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
114xfs-$(CONFIG_PROC_FS) += xfs_stats.o
115xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
116xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o