Blame view

fs/xfs/Makefile 3.77 KB
0b61f8a40   Dave Chinner   xfs: convert to S...
1
  # SPDX-License-Identifier: GPL-2.0
58b7983d1   Andi Kleen   [XFS] Remove Make...
2
3
4
5
  #
  # Copyright (c) 2000-2005 Silicon Graphics, Inc.
  # All Rights Reserved.
  #
58b7983d1   Andi Kleen   [XFS] Remove Make...
6

9cc342f6c   Masahiro Yamada   treewide: prefix ...
7
8
  ccflags-y += -I $(srctree)/$(src)		# needed for trace events
  ccflags-y += -I $(srctree)/$(src)/libxfs
b6bede3b4   Christoph Hellwig   xfs: fix tracing ...
9

58b7983d1   Andi Kleen   [XFS] Remove Make...
10
  obj-$(CONFIG_XFS_FS)		+= xfs.o
269cdfaf7   Lachlan McIlroy   [XFS] Added quota...
11

c59d87c46   Christoph Hellwig   xfs: remove subdi...
12
13
  # this one should be compiled first, as the tracing macros can easily blow up
  xfs-y				+= xfs_trace.o
58b7983d1   Andi Kleen   [XFS] Remove Make...
14

69116a131   Dave Chinner   xfs: create libxf...
15
16
  # build the libxfs code first
  xfs-y				+= $(addprefix libxfs/, \
b16817b66   Dave Chinner   xfs: move growfs ...
17
  				   xfs_ag.o \
30f712c9d   Dave Chinner   libxfs: move sour...
18
19
20
21
22
  				   xfs_alloc.o \
  				   xfs_alloc_btree.o \
  				   xfs_attr.o \
  				   xfs_attr_leaf.o \
  				   xfs_attr_remote.o \
1cfc4a9cf   Dave Chinner   libxfs: add xfs_b...
23
  				   xfs_bit.o \
30f712c9d   Dave Chinner   libxfs: move sour...
24
25
26
  				   xfs_bmap.o \
  				   xfs_bmap_btree.o \
  				   xfs_btree.o \
e06536a69   Darrick J. Wong   xfs: introduce fa...
27
  				   xfs_btree_staging.o \
30f712c9d   Dave Chinner   libxfs: move sour...
28
  				   xfs_da_btree.o \
4e0cc29b9   Darrick J. Wong   xfs: move deferre...
29
  				   xfs_defer.o \
30f712c9d   Dave Chinner   libxfs: move sour...
30
31
32
33
34
35
36
37
38
  				   xfs_dir2.o \
  				   xfs_dir2_block.o \
  				   xfs_dir2_data.o \
  				   xfs_dir2_leaf.o \
  				   xfs_dir2_node.o \
  				   xfs_dir2_sf.o \
  				   xfs_dquot_buf.o \
  				   xfs_ialloc.o \
  				   xfs_ialloc_btree.o \
6bdcf26ad   Christoph Hellwig   xfs: use a b+tree...
39
  				   xfs_iext_tree.o \
30f712c9d   Dave Chinner   libxfs: move sour...
40
41
42
  				   xfs_inode_fork.o \
  				   xfs_inode_buf.o \
  				   xfs_log_rlimit.o \
3fd129b63   Darrick J. Wong   xfs: set up per-A...
43
  				   xfs_ag_resv.o \
673930c34   Darrick J. Wong   xfs: introduce rm...
44
  				   xfs_rmap.o \
035e00acb   Darrick J. Wong   xfs: define the o...
45
  				   xfs_rmap_btree.o \
bdf28630b   Darrick J. Wong   xfs: add refcount...
46
  				   xfs_refcount.o \
1946b91ce   Darrick J. Wong   xfs: define the o...
47
  				   xfs_refcount_btree.o \
69116a131   Dave Chinner   xfs: create libxf...
48
  				   xfs_sb.o \
30f712c9d   Dave Chinner   libxfs: move sour...
49
  				   xfs_symlink_remote.o \
3f6d70e88   Eric Sandeen   xfs: move xfs_tra...
50
  				   xfs_trans_inode.o \
30f712c9d   Dave Chinner   libxfs: move sour...
51
  				   xfs_trans_resv.o \
86210fbeb   Dave Chinner   xfs: move various...
52
  				   xfs_types.o \
30f712c9d   Dave Chinner   libxfs: move sour...
53
54
55
56
  				   )
  # xfs_rtbitmap is shared with libxfs
  xfs-$(CONFIG_XFS_RT)		+= $(addprefix libxfs/, \
  				   xfs_rtbitmap.o \
69116a131   Dave Chinner   xfs: create libxf...
57
  				   )
c59d87c46   Christoph Hellwig   xfs: remove subdi...
58
59
  # highlevel code
  xfs-y				+= xfs_aops.o \
fde2227ce   Dave Chinner   xfs: split out at...
60
  				   xfs_attr_inactive.o \
abec5f2bf   Dave Chinner   xfs: split out at...
61
  				   xfs_attr_list.o \
689881145   Dave Chinner   xfs: create xfs_b...
62
  				   xfs_bmap_util.o \
6ad5b3255   Christoph Hellwig   xfs: use bios dir...
63
  				   xfs_bio_io.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
64
  				   xfs_buf.o \
4a8af273d   Dave Chinner   xfs: move getdent...
65
  				   xfs_dir2_readdir.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
66
67
68
  				   xfs_discard.o \
  				   xfs_error.o \
  				   xfs_export.o \
efc27b525   Dave Chinner   xfs: move busy ex...
69
  				   xfs_extent_busy.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
70
71
  				   xfs_file.o \
  				   xfs_filestream.o \
e89c04133   Darrick J. Wong   xfs: implement th...
72
  				   xfs_fsmap.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
73
  				   xfs_fsops.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
74
  				   xfs_globals.o \
6772c1f11   Darrick J. Wong   xfs: track metada...
75
  				   xfs_health.o \
6d8b79cfc   Dave Chinner   xfs: rename xfs_s...
76
  				   xfs_icache.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
77
78
79
  				   xfs_ioctl.o \
  				   xfs_iomap.o \
  				   xfs_iops.o \
30f712c9d   Dave Chinner   libxfs: move sour...
80
  				   xfs_inode.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
81
  				   xfs_itable.o \
a211432c2   Darrick J. Wong   xfs: create simpl...
82
  				   xfs_iwalk.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
83
  				   xfs_message.o \
ff55068c2   Dave Chinner   xfs: introduce xf...
84
  				   xfs_mount.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
85
  				   xfs_mru_cache.o \
40786717c   Darrick J. Wong   xfs: multithreade...
86
  				   xfs_pwork.o \
3993baeb3   Darrick J. Wong   xfs: introduce th...
87
  				   xfs_reflink.o \
985ef4dcf   Dave Chinner   xfs: stats are no...
88
  				   xfs_stats.o \
19de7351a   Dave Chinner   xfs: split out sy...
89
  				   xfs_super.o \
1fb7e48db   Dave Chinner   xfs: split out th...
90
  				   xfs_symlink.o \
a31b1d3d8   Brian Foster   xfs: add xfs_moun...
91
  				   xfs_sysfs.o \
7fd36c441   Dave Chinner   xfs: split out tr...
92
  				   xfs_trans.o \
19de7351a   Dave Chinner   xfs: split out sy...
93
  				   xfs_xattr.o \
d905fdaaa   Amir Goldstein   xfs: use the comm...
94
  				   kmem.o
58b7983d1   Andi Kleen   [XFS] Remove Make...
95

c59d87c46   Christoph Hellwig   xfs: remove subdi...
96
97
98
  # low-level transaction/log code
  xfs-y				+= xfs_log.o \
  				   xfs_log_cil.o \
6413a0142   Darrick J. Wong   xfs: create bmbt ...
99
  				   xfs_bmap_item.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
100
  				   xfs_buf_item.o \
86ffa471d   Darrick J. Wong   xfs: refactor log...
101
102
  				   xfs_buf_item_recover.o \
  				   xfs_dquot_item_recover.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
103
  				   xfs_extfree_item.o \
30f712c9d   Dave Chinner   libxfs: move sour...
104
  				   xfs_icreate_item.o \
c59d87c46   Christoph Hellwig   xfs: remove subdi...
105
  				   xfs_inode_item.o \
86ffa471d   Darrick J. Wong   xfs: refactor log...
106
  				   xfs_inode_item_recover.o \
baf4bcacb   Darrick J. Wong   xfs: create refco...
107
  				   xfs_refcount_item.o \
5880f2d78   Darrick J. Wong   xfs: create rmap ...
108
  				   xfs_rmap_item.o \
30f712c9d   Dave Chinner   libxfs: move sour...
109
  				   xfs_log_recover.o \
58b7983d1   Andi Kleen   [XFS] Remove Make...
110
  				   xfs_trans_ail.o \
3f6d70e88   Eric Sandeen   xfs: move xfs_tra...
111
  				   xfs_trans_buf.o
58b7983d1   Andi Kleen   [XFS] Remove Make...
112

c59d87c46   Christoph Hellwig   xfs: remove subdi...
113
114
115
116
117
118
119
120
  # optional features
  xfs-$(CONFIG_XFS_QUOTA)		+= xfs_dquot.o \
  				   xfs_dquot_item.o \
  				   xfs_trans_dquot.o \
  				   xfs_qm_syscalls.o \
  				   xfs_qm_bhv.o \
  				   xfs_qm.o \
  				   xfs_quotaops.o
c963c6193   Dave Chinner   xfs: split xfs_rt...
121
122
  
  # xfs_rtbitmap is shared with libxfs
30f712c9d   Dave Chinner   libxfs: move sour...
123
  xfs-$(CONFIG_XFS_RT)		+= xfs_rtalloc.o
c963c6193   Dave Chinner   xfs: split xfs_rt...
124

c59d87c46   Christoph Hellwig   xfs: remove subdi...
125
  xfs-$(CONFIG_XFS_POSIX_ACL)	+= xfs_acl.o
c59d87c46   Christoph Hellwig   xfs: remove subdi...
126
127
  xfs-$(CONFIG_SYSCTL)		+= xfs_sysctl.o
  xfs-$(CONFIG_COMPAT)		+= xfs_ioctl32.o
15d66ac20   Benjamin Coddington   xfs: abstract blo...
128
  xfs-$(CONFIG_EXPORTFS_BLOCK_OPS)	+= xfs_pnfs.o
36fd6e863   Darrick J. Wong   xfs: create an io...
129
130
131
132
133
134
135
136
  
  # online scrub/repair
  ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y)
  
  # Tracepoints like to blow up, so build that before everything else
  
  xfs-y				+= $(addprefix scrub/, \
  				   trace.o \
21fb4cb19   Darrick J. Wong   xfs: scrub the se...
137
  				   agheader.o \
efa7a99ce   Darrick J. Wong   xfs: scrub free s...
138
  				   alloc.o \
eec0482e0   Darrick J. Wong   xfs: scrub extend...
139
  				   attr.o \
99d9d8d05   Darrick J. Wong   xfs: scrub inode ...
140
  				   bmap.o \
537964bce   Darrick J. Wong   xfs: create helpe...
141
  				   btree.o \
dcb660f92   Darrick J. Wong   xfs: probe the sc...
142
  				   common.o \
7c4a07a42   Darrick J. Wong   xfs: scrub direct...
143
  				   dabtree.o \
a5c46e5e8   Darrick J. Wong   xfs: scrub direct...
144
  				   dir.o \
75efa57d0   Darrick J. Wong   xfs: add online s...
145
  				   fscounters.o \
4860a05d2   Darrick J. Wong   xfs: scrub/repair...
146
  				   health.o \
3daa66419   Darrick J. Wong   xfs: scrub inode ...
147
  				   ialloc.o \
80e4e1268   Darrick J. Wong   xfs: scrub inodes
148
  				   inode.o \
0f28b2573   Darrick J. Wong   xfs: scrub direct...
149
  				   parent.o \
edc09b528   Darrick J. Wong   xfs: scrub refcou...
150
  				   refcount.o \
c7e693d98   Darrick J. Wong   xfs: scrub rmap b...
151
  				   rmap.o \
36fd6e863   Darrick J. Wong   xfs: create an io...
152
  				   scrub.o \
2a721dbbc   Darrick J. Wong   xfs: scrub symbol...
153
  				   symlink.o \
36fd6e863   Darrick J. Wong   xfs: create an io...
154
  				   )
29b0767b8   Darrick J. Wong   xfs: scrub realti...
155
156
  
  xfs-$(CONFIG_XFS_RT)		+= scrub/rtbitmap.o
c2fc338c8   Darrick J. Wong   xfs: scrub quota ...
157
  xfs-$(CONFIG_XFS_QUOTA)		+= scrub/quota.o
84d42ea6b   Darrick J. Wong   xfs: implement th...
158
159
160
161
  
  # online repair
  ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y)
  xfs-y				+= $(addprefix scrub/, \
d25522f10   Darrick J. Wong   xfs: repair super...
162
  				   agheader_repair.o \
bc270b53e   Darrick J. Wong   xfs: move the rep...
163
  				   bitmap.o \
84d42ea6b   Darrick J. Wong   xfs: implement th...
164
165
166
  				   repair.o \
  				   )
  endif
36fd6e863   Darrick J. Wong   xfs: create an io...
167
  endif