Import 2.3.25pre1
[davej-history.git] / fs / Makefile
blob88810457ddbe2fd5ae4b17e1074f5d0e02e61e7d
2 # Makefile for the Linux filesystems.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (not a .c file).
8 # Note 2! The CFLAGS definitions are now in the main makefile.
10 L_TARGET := filesystems.a
11 L_OBJS = $(join $(SUB_DIRS),$(SUB_DIRS:%=/%.o))
12 O_TARGET := fs.o
13 O_OBJS = open.o read_write.o devices.o file_table.o buffer.o \
14 super.o block_dev.o stat.o exec.o pipe.o namei.o fcntl.o \
15 ioctl.o readdir.o select.o fifo.o locks.o filesystems.o \
16 dcache.o inode.o attr.o bad_inode.o file.o iobuf.o $(BINFMTS)
18 MOD_LIST_NAME := FS_MODULES
19 ALL_SUB_DIRS = coda minix ext2 fat msdos vfat proc isofs nfs umsdos ntfs \
20 hpfs sysv smbfs ncpfs ufs efs affs romfs autofs hfs lockd \
21 nfsd nls devpts adfs partitions qnx4 udf bfs
23 SUB_DIRS := partitions
25 ifeq ($(CONFIG_QUOTA),y)
26 O_OBJS += dquot.o
27 else
28 O_OBJS += noquot.o
29 endif
31 ifeq ($(CONFIG_CODA_FS),y)
32 SUB_DIRS += coda
33 else
34 ifeq ($(CONFIG_CODA_FS),m)
35 MOD_SUB_DIRS += coda
36 endif
37 endif
39 ifeq ($(CONFIG_MINIX_FS),y)
40 SUB_DIRS += minix
41 else
42 ifeq ($(CONFIG_MINIX_FS),m)
43 MOD_SUB_DIRS += minix
44 endif
45 endif
47 ifeq ($(CONFIG_EXT2_FS),y)
48 SUB_DIRS += ext2
49 else
50 ifeq ($(CONFIG_EXT2_FS),m)
51 MOD_SUB_DIRS += ext2
52 endif
53 endif
55 ifeq ($(CONFIG_FAT_FS),y)
56 SUB_DIRS += fat
57 else
58 ifeq ($(CONFIG_FAT_FS),m)
59 MOD_SUB_DIRS += fat
60 endif
61 endif
63 ifeq ($(CONFIG_MSDOS_FS),y)
64 SUB_DIRS += msdos
65 else
66 ifeq ($(CONFIG_MSDOS_FS),m)
67 MOD_SUB_DIRS += msdos
68 endif
69 endif
71 ifeq ($(CONFIG_VFAT_FS),y)
72 SUB_DIRS += vfat
73 else
74 ifeq ($(CONFIG_VFAT_FS),m)
75 MOD_SUB_DIRS += vfat
76 endif
77 endif
79 ifdef CONFIG_PROC_FS
80 SUB_DIRS += proc
81 ifeq ($(CONFIG_SUN_OPENPROMFS),m)
82 MOD_IN_SUB_DIRS += proc
83 MOD_TO_LIST += openpromfs.o
84 endif
85 endif
87 ifeq ($(CONFIG_BFS_FS),y)
88 SUB_DIRS += bfs
89 else
90 ifeq ($(CONFIG_BFS_FS),m)
91 MOD_SUB_DIRS += bfs
92 endif
93 endif
95 ifeq ($(CONFIG_ISO9660_FS),y)
96 SUB_DIRS += isofs
97 else
98 ifeq ($(CONFIG_ISO9660_FS),m)
99 MOD_SUB_DIRS += isofs
100 endif
101 endif
103 ifeq ($(CONFIG_HFS_FS),y)
104 SUB_DIRS += hfs
105 else
106 ifeq ($(CONFIG_HFS_FS),m)
107 MOD_SUB_DIRS += hfs
108 endif
109 endif
111 ifeq ($(CONFIG_NFS_FS),y)
112 SUB_DIRS += nfs
113 else
114 ifeq ($(CONFIG_NFS_FS),m)
115 MOD_SUB_DIRS += nfs
116 endif
117 endif
119 ifeq ($(CONFIG_NFSD),y)
120 CONFIG_LOCKD := y
121 SUB_DIRS += nfsd
122 else
123 ifeq ($(CONFIG_NFSD),m)
124 MOD_SUB_DIRS += nfsd
125 endif
126 endif
128 ifeq ($(CONFIG_LOCKD),y)
129 SUB_DIRS += lockd
130 else
131 ifeq ($(CONFIG_LOCKD),m)
132 MOD_SUB_DIRS := lockd $(MOD_SUB_DIRS)
133 endif
134 endif
136 # Since CONFIG_NLS might be set to y while there are modules
137 # to be build in the nls/ directory, we need to enter the nls
138 # directory every time, but with different rules.
139 ifeq ($(CONFIG_NLS),y)
140 SUB_DIRS += nls
141 MOD_IN_SUB_DIRS += nls
142 else
143 ifeq ($(CONFIG_NLS),m)
144 MOD_SUB_DIRS += nls
145 endif
146 endif
148 ifeq ($(CONFIG_UMSDOS_FS),y)
149 SUB_DIRS += umsdos
150 else
151 ifeq ($(CONFIG_UMSDOS_FS),m)
152 MOD_SUB_DIRS += umsdos
153 endif
154 endif
156 ifeq ($(CONFIG_SYSV_FS),y)
157 SUB_DIRS += sysv
158 else
159 ifeq ($(CONFIG_SYSV_FS),m)
160 MOD_SUB_DIRS += sysv
161 endif
162 endif
164 ifeq ($(CONFIG_SMB_FS),y)
165 SUB_DIRS += smbfs
166 else
167 ifeq ($(CONFIG_SMB_FS),m)
168 MOD_SUB_DIRS += smbfs
169 endif
170 endif
172 ifeq ($(CONFIG_NCP_FS),y)
173 SUB_DIRS += ncpfs
174 else
175 ifeq ($(CONFIG_NCP_FS),m)
176 MOD_SUB_DIRS += ncpfs
177 endif
178 endif
180 ifeq ($(CONFIG_HPFS_FS),y)
181 SUB_DIRS += hpfs
182 else
183 ifeq ($(CONFIG_HPFS_FS),m)
184 MOD_SUB_DIRS += hpfs
185 endif
186 endif
188 ifeq ($(CONFIG_NTFS_FS),y)
189 SUB_DIRS += ntfs
190 else
191 ifeq ($(CONFIG_NTFS_FS),m)
192 MOD_SUB_DIRS += ntfs
193 endif
194 endif
196 ifeq ($(CONFIG_UFS_FS),y)
197 SUB_DIRS += ufs
198 else
199 ifeq ($(CONFIG_UFS_FS),m)
200 MOD_SUB_DIRS += ufs
201 endif
202 endif
204 ifeq ($(CONFIG_EFS_FS),y)
205 SUB_DIRS += efs
206 else
207 ifeq ($(CONFIG_EFS_FS),m)
208 MOD_SUB_DIRS += efs
209 endif
210 endif
212 ifeq ($(CONFIG_AFFS_FS),y)
213 SUB_DIRS += affs
214 else
215 ifeq ($(CONFIG_AFFS_FS),m)
216 MOD_SUB_DIRS += affs
217 endif
218 endif
220 ifeq ($(CONFIG_ROMFS_FS),y)
221 SUB_DIRS += romfs
222 else
223 ifeq ($(CONFIG_ROMFS_FS),m)
224 MOD_SUB_DIRS += romfs
225 endif
226 endif
228 ifeq ($(CONFIG_QNX4FS_FS),y)
229 SUB_DIRS += qnx4
230 else
231 ifeq ($(CONFIG_QNX4FS_FS),m)
232 MOD_SUB_DIRS += qnx4
233 endif
234 endif
236 ifeq ($(CONFIG_UDF_FS),y)
237 SUB_DIRS += udf
238 else
239 ifeq ($(CONFIG_UDF_FS),m)
240 MOD_SUB_DIRS += udf
241 endif
242 endif
244 ifeq ($(CONFIG_AUTOFS_FS),y)
245 SUB_DIRS += autofs
246 else
247 ifeq ($(CONFIG_AUTOFS_FS),m)
248 MOD_SUB_DIRS += autofs
249 endif
250 endif
252 ifeq ($(CONFIG_ADFS_FS),y)
253 SUB_DIRS += adfs
254 else
255 ifeq ($(CONFIG_ADFS_FS),m)
256 MOD_SUB_DIRS += adfs
257 endif
258 endif
260 ifeq ($(CONFIG_DEVPTS_FS),y)
261 SUB_DIRS += devpts
262 else
263 ifeq ($(CONFIG_DEVPTS_FS),m)
264 MOD_SUB_DIRS += devpts
265 endif
266 endif
268 ifeq ($(CONFIG_BINFMT_ELF),y)
269 BINFMTS += binfmt_elf.o
270 else
271 ifeq ($(CONFIG_BINFMT_ELF),m)
272 M_OBJS += binfmt_elf.o
273 endif
274 endif
276 ifeq ($(CONFIG_BINFMT_AOUT),y)
277 BINFMTS += binfmt_aout.o
278 else
279 ifeq ($(CONFIG_BINFMT_AOUT),m)
280 M_OBJS += binfmt_aout.o
281 endif
282 endif
284 ifeq ($(CONFIG_BINFMT_EM86),y)
285 BINFMTS += binfmt_em86.o
286 else
287 ifeq ($(CONFIG_BINFMT_EM86),m)
288 M_OBJS += binfmt_em86.o
289 endif
290 endif
293 ifeq ($(CONFIG_BINFMT_MISC),y)
294 BINFMTS += binfmt_misc.o
295 else
296 ifeq ($(CONFIG_BINFMT_MISC),m)
297 M_OBJS += binfmt_misc.o
298 endif
299 endif
301 # binfmt_script is always there
302 BINFMTS += binfmt_script.o
304 include $(TOPDIR)/Rules.make