blob: 97316451fc6d5975070ff689e5ff076852d98cd0 [file] [log] [blame]
Nathan Scottcde410a2005-09-05 11:47:01 +10001#
Nathan Scottbb19fba2006-03-22 14:12:12 +11002# Copyright (c) 2000-2005 Silicon Graphics, Inc.
3# All Rights Reserved.
Nathan Scottcde410a2005-09-05 11:47:01 +10004#
Nathan Scottbb19fba2006-03-22 14:12:12 +11005# This program is free software; you can redistribute it and/or
6# modify it under the terms of the GNU General Public License as
Nathan Scottcde410a2005-09-05 11:47:01 +10007# published by the Free Software Foundation.
8#
Nathan Scottbb19fba2006-03-22 14:12:12 +11009# 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.
Nathan Scottcde410a2005-09-05 11:47:01 +100013#
Nathan Scottbb19fba2006-03-22 14:12:12 +110014# 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
Nathan Scottcde410a2005-09-05 11:47:01 +100017#
18
19EXTRA_CFLAGS += -Ifs/xfs -Ifs/xfs/linux-2.6 -funsigned-char
20
21XFS_LINUX := linux-2.6
22
23ifeq ($(CONFIG_XFS_DEBUG),y)
Vlad Apostolov93c189c2006-11-11 18:03:49 +110024 EXTRA_CFLAGS += -g
Nathan Scottcde410a2005-09-05 11:47:01 +100025endif
26
27obj-$(CONFIG_XFS_FS) += xfs.o
Nathan Scottc9fc0d62005-09-09 11:38:09 +100028
29xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \
30 xfs_dquot.o \
31 xfs_dquot_item.o \
32 xfs_trans_dquot.o \
33 xfs_qm_syscalls.o \
34 xfs_qm_bhv.o \
35 xfs_qm.o)
36
37ifeq ($(CONFIG_XFS_QUOTA),y)
38xfs-$(CONFIG_PROC_FS) += quota/xfs_qm_stats.o
39endif
Nathan Scottcde410a2005-09-05 11:47:01 +100040
41xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
42xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
43xfs-$(CONFIG_PROC_FS) += $(XFS_LINUX)/xfs_stats.o
44xfs-$(CONFIG_SYSCTL) += $(XFS_LINUX)/xfs_sysctl.o
45xfs-$(CONFIG_COMPAT) += $(XFS_LINUX)/xfs_ioctl32.o
Nathan Scottcde410a2005-09-05 11:47:01 +100046
47
48xfs-y += xfs_alloc.o \
49 xfs_alloc_btree.o \
50 xfs_attr.o \
51 xfs_attr_leaf.o \
Nathan Scottcde410a2005-09-05 11:47:01 +100052 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 \
Nathan Scottcde410a2005-09-05 11:47:01 +100058 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 \
Nathan Scottcde410a2005-09-05 11:47:01 +100064 xfs_error.o \
65 xfs_extfree_item.o \
David Chinner2a82b8b2007-07-11 11:09:12 +100066 xfs_filestream.o \
Nathan Scottcde410a2005-09-05 11:47:01 +100067 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 \
Nathan Scottcde410a2005-09-05 11:47:01 +100073 xfs_iomap.o \
74 xfs_itable.o \
75 xfs_dfrag.o \
76 xfs_log.o \
77 xfs_log_recover.o \
Nathan Scottcde410a2005-09-05 11:47:01 +100078 xfs_mount.o \
David Chinner2a82b8b2007-07-11 11:09:12 +100079 xfs_mru_cache.o \
Nathan Scottcde410a2005-09-05 11:47:01 +100080 xfs_rename.o \
81 xfs_trans.o \
82 xfs_trans_ail.o \
83 xfs_trans_buf.o \
84 xfs_trans_extfree.o \
85 xfs_trans_inode.o \
86 xfs_trans_item.o \
87 xfs_utils.o \
88 xfs_vfsops.o \
89 xfs_vnodeops.o \
90 xfs_rw.o \
91 xfs_dmops.o \
92 xfs_qmops.o
93
94xfs-$(CONFIG_XFS_TRACE) += xfs_dir2_trace.o
95
96# Objects in linux/
97xfs-y += $(addprefix $(XFS_LINUX)/, \
98 kmem.o \
99 xfs_aops.o \
100 xfs_buf.o \
Nathan Scottd7b849d2006-06-20 14:01:29 +1000101 xfs_export.o \
Nathan Scottcde410a2005-09-05 11:47:01 +1000102 xfs_file.o \
103 xfs_fs_subr.o \
104 xfs_globals.o \
105 xfs_ioctl.o \
106 xfs_iops.o \
107 xfs_lrw.o \
108 xfs_super.o \
Nathan Scottcde410a2005-09-05 11:47:01 +1000109 xfs_vnode.o)
110
111# Objects in support/
112xfs-y += $(addprefix support/, \
113 debug.o \
Nathan Scottcde410a2005-09-05 11:47:01 +1000114 uuid.o)
115
116xfs-$(CONFIG_XFS_TRACE) += support/ktrace.o
117