blob: 291948d5085a08ebac04c8f725c152d80a392805 [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)
24 EXTRA_CFLAGS += -g -DSTATIC="" -DDEBUG
Nathan Scottbb19fba2006-03-22 14:12:12 +110025 EXTRA_CFLAGS += -DXFS_BUF_LOCK_TRACKING
Nathan Scottcde410a2005-09-05 11:47:01 +100026endif
27ifeq ($(CONFIG_XFS_TRACE),y)
28 EXTRA_CFLAGS += -DXFS_ALLOC_TRACE
29 EXTRA_CFLAGS += -DXFS_ATTR_TRACE
30 EXTRA_CFLAGS += -DXFS_BLI_TRACE
31 EXTRA_CFLAGS += -DXFS_BMAP_TRACE
32 EXTRA_CFLAGS += -DXFS_BMBT_TRACE
Nathan Scottcde410a2005-09-05 11:47:01 +100033 EXTRA_CFLAGS += -DXFS_DIR2_TRACE
34 EXTRA_CFLAGS += -DXFS_DQUOT_TRACE
35 EXTRA_CFLAGS += -DXFS_ILOCK_TRACE
36 EXTRA_CFLAGS += -DXFS_LOG_TRACE
37 EXTRA_CFLAGS += -DXFS_RW_TRACE
Nathan Scottbb19fba2006-03-22 14:12:12 +110038 EXTRA_CFLAGS += -DXFS_BUF_TRACE
Nathan Scottcde410a2005-09-05 11:47:01 +100039 EXTRA_CFLAGS += -DXFS_VNODE_TRACE
40endif
41
42obj-$(CONFIG_XFS_FS) += xfs.o
Nathan Scottc9fc0d62005-09-09 11:38:09 +100043
44xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \
45 xfs_dquot.o \
46 xfs_dquot_item.o \
47 xfs_trans_dquot.o \
48 xfs_qm_syscalls.o \
49 xfs_qm_bhv.o \
50 xfs_qm.o)
51
52ifeq ($(CONFIG_XFS_QUOTA),y)
53xfs-$(CONFIG_PROC_FS) += quota/xfs_qm_stats.o
54endif
Nathan Scottcde410a2005-09-05 11:47:01 +100055
56xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
57xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
58xfs-$(CONFIG_PROC_FS) += $(XFS_LINUX)/xfs_stats.o
59xfs-$(CONFIG_SYSCTL) += $(XFS_LINUX)/xfs_sysctl.o
60xfs-$(CONFIG_COMPAT) += $(XFS_LINUX)/xfs_ioctl32.o
Nathan Scottcde410a2005-09-05 11:47:01 +100061
62
63xfs-y += xfs_alloc.o \
64 xfs_alloc_btree.o \
65 xfs_attr.o \
66 xfs_attr_leaf.o \
67 xfs_behavior.o \
68 xfs_bit.o \
69 xfs_bmap.o \
70 xfs_bmap_btree.o \
71 xfs_btree.o \
72 xfs_buf_item.o \
73 xfs_da_btree.o \
Nathan Scottcde410a2005-09-05 11:47:01 +100074 xfs_dir2.o \
75 xfs_dir2_block.o \
76 xfs_dir2_data.o \
77 xfs_dir2_leaf.o \
78 xfs_dir2_node.o \
79 xfs_dir2_sf.o \
Nathan Scottcde410a2005-09-05 11:47:01 +100080 xfs_error.o \
81 xfs_extfree_item.o \
82 xfs_fsops.o \
83 xfs_ialloc.o \
84 xfs_ialloc_btree.o \
85 xfs_iget.o \
86 xfs_inode.o \
87 xfs_inode_item.o \
88 xfs_iocore.o \
89 xfs_iomap.o \
90 xfs_itable.o \
91 xfs_dfrag.o \
92 xfs_log.o \
93 xfs_log_recover.o \
Nathan Scottcde410a2005-09-05 11:47:01 +100094 xfs_mount.o \
95 xfs_rename.o \
96 xfs_trans.o \
97 xfs_trans_ail.o \
98 xfs_trans_buf.o \
99 xfs_trans_extfree.o \
100 xfs_trans_inode.o \
101 xfs_trans_item.o \
102 xfs_utils.o \
103 xfs_vfsops.o \
104 xfs_vnodeops.o \
105 xfs_rw.o \
106 xfs_dmops.o \
107 xfs_qmops.o
108
109xfs-$(CONFIG_XFS_TRACE) += xfs_dir2_trace.o
110
111# Objects in linux/
112xfs-y += $(addprefix $(XFS_LINUX)/, \
113 kmem.o \
114 xfs_aops.o \
115 xfs_buf.o \
Nathan Scottd7b849d2006-06-20 14:01:29 +1000116 xfs_export.o \
Nathan Scottcde410a2005-09-05 11:47:01 +1000117 xfs_file.o \
118 xfs_fs_subr.o \
119 xfs_globals.o \
120 xfs_ioctl.o \
121 xfs_iops.o \
122 xfs_lrw.o \
123 xfs_super.o \
124 xfs_vfs.o \
125 xfs_vnode.o)
126
127# Objects in support/
128xfs-y += $(addprefix support/, \
129 debug.o \
130 move.o \
131 uuid.o)
132
133xfs-$(CONFIG_XFS_TRACE) += support/ktrace.o
134