]> Git Repo - linux.git/blame - fs/xfs/Makefile
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux.git] / fs / xfs / Makefile
CommitLineData
0b61f8a4 1# SPDX-License-Identifier: GPL-2.0
58b7983d
AK
2#
3# Copyright (c) 2000-2005 Silicon Graphics, Inc.
4# All Rights Reserved.
5#
58b7983d 6
b6bede3b 7ccflags-y += -I$(src) # needed for trace events
69116a13 8ccflags-y += -I$(src)/libxfs
b6bede3b 9
0ccd234c 10ccflags-$(CONFIG_XFS_DEBUG) += -g
58b7983d 11
58b7983d 12obj-$(CONFIG_XFS_FS) += xfs.o
269cdfaf 13
c59d87c4
CH
14# this one should be compiled first, as the tracing macros can easily blow up
15xfs-y += xfs_trace.o
58b7983d 16
69116a13
DC
17# build the libxfs code first
18xfs-y += $(addprefix libxfs/, \
b16817b6 19 xfs_ag.o \
30f712c9
DC
20 xfs_alloc.o \
21 xfs_alloc_btree.o \
22 xfs_attr.o \
23 xfs_attr_leaf.o \
24 xfs_attr_remote.o \
1cfc4a9c 25 xfs_bit.o \
30f712c9
DC
26 xfs_bmap.o \
27 xfs_bmap_btree.o \
28 xfs_btree.o \
29 xfs_da_btree.o \
30 xfs_da_format.o \
4e0cc29b 31 xfs_defer.o \
30f712c9
DC
32 xfs_dir2.o \
33 xfs_dir2_block.o \
34 xfs_dir2_data.o \
35 xfs_dir2_leaf.o \
36 xfs_dir2_node.o \
37 xfs_dir2_sf.o \
38 xfs_dquot_buf.o \
39 xfs_ialloc.o \
40 xfs_ialloc_btree.o \
6bdcf26a 41 xfs_iext_tree.o \
30f712c9
DC
42 xfs_inode_fork.o \
43 xfs_inode_buf.o \
44 xfs_log_rlimit.o \
3fd129b6 45 xfs_ag_resv.o \
673930c3 46 xfs_rmap.o \
035e00ac 47 xfs_rmap_btree.o \
bdf28630 48 xfs_refcount.o \
1946b91c 49 xfs_refcount_btree.o \
69116a13 50 xfs_sb.o \
30f712c9
DC
51 xfs_symlink_remote.o \
52 xfs_trans_resv.o \
86210fbe 53 xfs_types.o \
30f712c9
DC
54 )
55# xfs_rtbitmap is shared with libxfs
56xfs-$(CONFIG_XFS_RT) += $(addprefix libxfs/, \
57 xfs_rtbitmap.o \
69116a13
DC
58 )
59
c59d87c4
CH
60# highlevel code
61xfs-y += xfs_aops.o \
fde2227c 62 xfs_attr_inactive.o \
abec5f2b 63 xfs_attr_list.o \
68988114 64 xfs_bmap_util.o \
c59d87c4 65 xfs_buf.o \
4a8af273 66 xfs_dir2_readdir.o \
c59d87c4
CH
67 xfs_discard.o \
68 xfs_error.o \
69 xfs_export.o \
efc27b52 70 xfs_extent_busy.o \
c59d87c4
CH
71 xfs_file.o \
72 xfs_filestream.o \
e89c0413 73 xfs_fsmap.o \
c59d87c4 74 xfs_fsops.o \
c59d87c4 75 xfs_globals.o \
6d8b79cf 76 xfs_icache.o \
c59d87c4
CH
77 xfs_ioctl.o \
78 xfs_iomap.o \
79 xfs_iops.o \
30f712c9 80 xfs_inode.o \
c59d87c4
CH
81 xfs_itable.o \
82 xfs_message.o \
ff55068c 83 xfs_mount.o \
c59d87c4 84 xfs_mru_cache.o \
3993baeb 85 xfs_reflink.o \
985ef4dc 86 xfs_stats.o \
19de7351 87 xfs_super.o \
1fb7e48d 88 xfs_symlink.o \
a31b1d3d 89 xfs_sysfs.o \
7fd36c44 90 xfs_trans.o \
19de7351 91 xfs_xattr.o \
d905fdaa 92 kmem.o
58b7983d 93
c59d87c4
CH
94# low-level transaction/log code
95xfs-y += xfs_log.o \
96 xfs_log_cil.o \
6413a014 97 xfs_bmap_item.o \
c59d87c4
CH
98 xfs_buf_item.o \
99 xfs_extfree_item.o \
30f712c9 100 xfs_icreate_item.o \
c59d87c4 101 xfs_inode_item.o \
baf4bcac 102 xfs_refcount_item.o \
5880f2d7 103 xfs_rmap_item.o \
30f712c9 104 xfs_log_recover.o \
58b7983d 105 xfs_trans_ail.o \
77d61fe4 106 xfs_trans_bmap.o \
58b7983d
AK
107 xfs_trans_buf.o \
108 xfs_trans_extfree.o \
109 xfs_trans_inode.o \
f997ee21 110 xfs_trans_refcount.o \
9e88b5d8 111 xfs_trans_rmap.o \
58b7983d 112
c59d87c4
CH
113# optional features
114xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
115 xfs_dquot_item.o \
116 xfs_trans_dquot.o \
117 xfs_qm_syscalls.o \
118 xfs_qm_bhv.o \
119 xfs_qm.o \
120 xfs_quotaops.o
c963c619
DC
121
122# xfs_rtbitmap is shared with libxfs
30f712c9 123xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
c963c619 124
c59d87c4 125xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
c59d87c4
CH
126xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
127xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o
15d66ac2 128xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs_pnfs.o
36fd6e86
DW
129
130# online scrub/repair
131ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y)
132
133# Tracepoints like to blow up, so build that before everything else
134
135xfs-y += $(addprefix scrub/, \
136 trace.o \
21fb4cb1 137 agheader.o \
efa7a99c 138 alloc.o \
eec0482e 139 attr.o \
99d9d8d0 140 bmap.o \
537964bc 141 btree.o \
dcb660f9 142 common.o \
7c4a07a4 143 dabtree.o \
a5c46e5e 144 dir.o \
3daa6641 145 ialloc.o \
80e4e126 146 inode.o \
0f28b257 147 parent.o \
edc09b52 148 refcount.o \
c7e693d9 149 rmap.o \
36fd6e86 150 scrub.o \
2a721dbb 151 symlink.o \
36fd6e86 152 )
29b0767b
DW
153
154xfs-$(CONFIG_XFS_RT) += scrub/rtbitmap.o
c2fc338c 155xfs-$(CONFIG_XFS_QUOTA) += scrub/quota.o
84d42ea6
DW
156
157# online repair
158ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y)
159xfs-y += $(addprefix scrub/, \
d25522f1 160 agheader_repair.o \
bc270b53 161 bitmap.o \
84d42ea6
DW
162 repair.o \
163 )
164endif
36fd6e86 165endif
This page took 0.601144 seconds and 4 git commands to generate.