blob: b6158afa94e752daf4fdac5cfc61dc0f07e4e357 [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 \
30 xfs_bit.o \
31 xfs_buf.o \
32 xfs_dfrag.o \
Dave Chinner4a8af272013-08-12 20:49:36 +100033 xfs_dir2_readdir.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050034 xfs_discard.o \
35 xfs_error.o \
36 xfs_export.o \
Dave Chinnerefc27b52012-04-29 10:39:43 +000037 xfs_extent_busy.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050038 xfs_file.o \
39 xfs_filestream.o \
40 xfs_fsops.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050041 xfs_globals.o \
Dave Chinner6d8b79c2012-10-08 21:56:09 +110042 xfs_icache.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050043 xfs_ioctl.o \
44 xfs_iomap.o \
45 xfs_iops.o \
46 xfs_itable.o \
47 xfs_message.o \
48 xfs_mru_cache.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050049 xfs_rename.o \
Dave Chinner19de7352013-04-03 16:11:18 +110050 xfs_super.o \
Dave Chinner7fd36c42013-08-12 20:49:32 +100051 xfs_trans.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050052 xfs_utils.o \
53 xfs_vnodeops.o \
Dave Chinner19de7352013-04-03 16:11:18 +110054 xfs_xattr.o \
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050055 kmem.o \
56 uuid.o
Lachlan McIlroy269cdfa2007-11-28 18:28:09 +110057
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050058# code shared with libxfs
Andi Kleen58b79832007-11-27 16:53:47 +110059xfs-y += xfs_alloc.o \
60 xfs_alloc_btree.o \
61 xfs_attr.o \
62 xfs_attr_leaf.o \
Dave Chinner95920cd2013-04-03 16:11:27 +110063 xfs_attr_remote.o \
Andi Kleen58b79832007-11-27 16:53:47 +110064 xfs_bmap.o \
65 xfs_bmap_btree.o \
66 xfs_btree.o \
Andi Kleen58b79832007-11-27 16:53:47 +110067 xfs_da_btree.o \
68 xfs_dir2.o \
69 xfs_dir2_block.o \
70 xfs_dir2_data.o \
71 xfs_dir2_leaf.o \
72 xfs_dir2_node.o \
73 xfs_dir2_sf.o \
Andi Kleen58b79832007-11-27 16:53:47 +110074 xfs_ialloc.o \
75 xfs_ialloc_btree.o \
Dave Chinner3ebe7d22013-06-27 16:04:53 +100076 xfs_icreate_item.o \
Andi Kleen58b79832007-11-27 16:53:47 +110077 xfs_inode.o \
Dave Chinner5c4d97d2013-08-12 20:49:33 +100078 xfs_inode_fork.o \
Dave Chinner1fd71152013-08-12 20:49:35 +100079 xfs_inode_buf.o \
Andi Kleen58b79832007-11-27 16:53:47 +110080 xfs_log_recover.o \
81 xfs_mount.o \
Dave Chinner19de7352013-04-03 16:11:18 +110082 xfs_symlink.o \
Dave Chinner7fd36c42013-08-12 20:49:32 +100083 xfs_trans_resv.o
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050084
85# low-level transaction/log code
86xfs-y += xfs_log.o \
87 xfs_log_cil.o \
88 xfs_buf_item.o \
89 xfs_extfree_item.o \
90 xfs_inode_item.o \
Andi Kleen58b79832007-11-27 16:53:47 +110091 xfs_trans_ail.o \
92 xfs_trans_buf.o \
93 xfs_trans_extfree.o \
94 xfs_trans_inode.o \
Andi Kleen58b79832007-11-27 16:53:47 +110095
Christoph Hellwigc59d87c2011-08-12 16:21:35 -050096# optional features
97xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
98 xfs_dquot_item.o \
99 xfs_trans_dquot.o \
100 xfs_qm_syscalls.o \
101 xfs_qm_bhv.o \
102 xfs_qm.o \
103 xfs_quotaops.o
Christoph Hellwigc59d87c2011-08-12 16:21:35 -0500104xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
105xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
106xfs-$(CONFIG_PROC_FS) += xfs_stats.o
107xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
108xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o