2 # Copyright (c) 2000-2005 Silicon Graphics, Inc.
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.
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.
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
19 EXTRA_CFLAGS += -Ifs/xfs -Ifs/xfs/linux-2.6 -funsigned-char
21 XFS_LINUX := linux-2.6
23 ifeq ($(CONFIG_XFS_DEBUG),y)
24 EXTRA_CFLAGS += -g -DSTATIC="" -DDEBUG
25 EXTRA_CFLAGS += -DXFS_BUF_LOCK_TRACKING
27 ifeq ($(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
33 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
38 EXTRA_CFLAGS += -DXFS_BUF_TRACE
39 EXTRA_CFLAGS += -DXFS_VNODE_TRACE
42 obj-$(CONFIG_XFS_FS) += xfs.o
44 xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \
52 ifeq ($(CONFIG_XFS_QUOTA),y)
53 xfs-$(CONFIG_PROC_FS) += quota/xfs_qm_stats.o
56 xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
57 xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
58 xfs-$(CONFIG_PROC_FS) += $(XFS_LINUX)/xfs_stats.o
59 xfs-$(CONFIG_SYSCTL) += $(XFS_LINUX)/xfs_sysctl.o
60 xfs-$(CONFIG_COMPAT) += $(XFS_LINUX)/xfs_ioctl32.o
63 xfs-y += xfs_alloc.o \
109 xfs-$(CONFIG_XFS_TRACE) += xfs_dir2_trace.o
112 xfs-y += $(addprefix $(XFS_LINUX)/, \
127 # Objects in support/
128 xfs-y += $(addprefix support/, \
133 xfs-$(CONFIG_XFS_TRACE) += support/ktrace.o