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 ccflags-y += -I$(src) # needed for trace events
20 ccflags-y += -I$(src)/libxfs
22 ccflags-$(CONFIG_XFS_DEBUG) += -g
24 obj-$(CONFIG_XFS_FS) += xfs.o
26 # this one should be compiled first, as the tracing macros can easily blow up
29 # build the libxfs code first
30 xfs-y += $(addprefix libxfs/, \
61 xfs_refcount_btree.o \
63 xfs_symlink_remote.o \
66 # xfs_rtbitmap is shared with libxfs
67 xfs-$(CONFIG_XFS_RT) += $(addprefix libxfs/, \
105 # low-level transaction/log code
113 xfs_refcount_item.o \
119 xfs_trans_extfree.o \
121 xfs_trans_refcount.o \
125 xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
133 # xfs_rtbitmap is shared with libxfs
134 xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
136 xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
137 xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
138 xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o
139 xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs_pnfs.o
141 # online scrub/repair
142 ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y)
144 # Tracepoints like to blow up, so build that before everything else
146 xfs-y += $(addprefix scrub/, \
165 xfs-$(CONFIG_XFS_RT) += scrub/rtbitmap.o
166 xfs-$(CONFIG_XFS_QUOTA) += scrub/quota.o
169 ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y)
170 xfs-y += $(addprefix scrub/, \