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 FILESYSTEMS
= $(join $(SUB_DIRS
),$(SUB_DIRS
:%=/%.o
))
12 O_OBJS
= open.o read_write.o devices.o file_table.o buffer.o \
13 super.o block_dev.o stat.o exec.o pipe.o namei.o fcntl.o \
14 ioctl.o readdir.o select.o fifo.o locks.o filesystems.o \
15 dcache.o inode.o attr.o bad_inode.o file.o iobuf.o \
16 $(BINFMTS
) $(FILESYSTEMS
)
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 devfs adfs partitions qnx4 udf bfs cramfs \
22 openpromfs autofs4 ramfs jffs
26 ifeq ($(CONFIG_QUOTA
),y
)
36 SUB_DIRS
+= partitions
38 # Do not add any filesystems before this line
40 ifeq ($(CONFIG_EXT2_FS
),y
)
43 ifeq ($(CONFIG_EXT2_FS
),m
)
48 ifeq ($(CONFIG_CRAMFS
),y
)
51 ifeq ($(CONFIG_CRAMFS
),m
)
52 MOD_SUB_DIRS
+= cramfs
56 ifeq ($(CONFIG_RAMFS
),y
)
59 ifeq ($(CONFIG_RAMFS
),m
)
64 ifeq ($(CONFIG_CODA_FS
),y
)
67 ifeq ($(CONFIG_CODA_FS
),m
)
72 ifeq ($(CONFIG_MINIX_FS
),y
)
75 ifeq ($(CONFIG_MINIX_FS
),m
)
80 ifeq ($(CONFIG_FAT_FS
),y
)
83 ifeq ($(CONFIG_FAT_FS
),m
)
88 ifeq ($(CONFIG_MSDOS_FS
),y
)
91 ifeq ($(CONFIG_MSDOS_FS
),m
)
96 ifeq ($(CONFIG_VFAT_FS
),y
)
99 ifeq ($(CONFIG_VFAT_FS
),m
)
104 ifeq ($(CONFIG_BFS_FS
),y
)
107 ifeq ($(CONFIG_BFS_FS
),m
)
112 ifeq ($(CONFIG_ISO9660_FS
),y
)
115 ifeq ($(CONFIG_ISO9660_FS
),m
)
116 MOD_SUB_DIRS
+= isofs
120 ifdef CONFIG_DEVFS_FS
124 ifeq ($(CONFIG_HFS_FS
),y
)
127 ifeq ($(CONFIG_HFS_FS
),m
)
132 ifeq ($(CONFIG_NFS_FS
),y
)
135 ifeq ($(CONFIG_NFS_FS
),m
)
140 ifeq ($(CONFIG_NFSD
),y
)
144 ifeq ($(CONFIG_NFSD
),m
)
149 ifeq ($(CONFIG_LOCKD
),y
)
152 ifeq ($(CONFIG_LOCKD
),m
)
153 MOD_SUB_DIRS
:= lockd
$(MOD_SUB_DIRS
)
157 # Since CONFIG_NLS might be set to y while there are modules
158 # to be build in the nls/ directory, we need to enter the nls
159 # directory every time, but with different rules.
160 ifeq ($(CONFIG_NLS
),y
)
162 MOD_IN_SUB_DIRS
+= nls
164 ifeq ($(CONFIG_NLS
),m
)
169 ifeq ($(CONFIG_UMSDOS_FS
),y
)
172 ifeq ($(CONFIG_UMSDOS_FS
),m
)
173 MOD_SUB_DIRS
+= umsdos
177 ifeq ($(CONFIG_SYSV_FS
),y
)
180 ifeq ($(CONFIG_SYSV_FS
),m
)
185 ifeq ($(CONFIG_SMB_FS
),y
)
188 ifeq ($(CONFIG_SMB_FS
),m
)
189 MOD_SUB_DIRS
+= smbfs
193 ifeq ($(CONFIG_NCP_FS
),y
)
196 ifeq ($(CONFIG_NCP_FS
),m
)
197 MOD_SUB_DIRS
+= ncpfs
201 ifeq ($(CONFIG_HPFS_FS
),y
)
204 ifeq ($(CONFIG_HPFS_FS
),m
)
209 ifeq ($(CONFIG_NTFS_FS
),y
)
212 ifeq ($(CONFIG_NTFS_FS
),m
)
217 ifeq ($(CONFIG_UFS_FS
),y
)
220 ifeq ($(CONFIG_UFS_FS
),m
)
225 ifeq ($(CONFIG_EFS_FS
),y
)
228 ifeq ($(CONFIG_EFS_FS
),m
)
233 ifeq ($(CONFIG_JFFS_FS
),y
)
236 ifeq ($(CONFIG_JFFS_FS
),m
)
241 ifeq ($(CONFIG_AFFS_FS
),y
)
244 ifeq ($(CONFIG_AFFS_FS
),m
)
249 ifeq ($(CONFIG_ROMFS_FS
),y
)
252 ifeq ($(CONFIG_ROMFS_FS
),m
)
253 MOD_SUB_DIRS
+= romfs
257 ifeq ($(CONFIG_QNX4FS_FS
),y
)
260 ifeq ($(CONFIG_QNX4FS_FS
),m
)
265 ifeq ($(CONFIG_UDF_FS
),y
)
268 ifeq ($(CONFIG_UDF_FS
),m
)
273 ifeq ($(CONFIG_AUTOFS_FS
),y
)
276 ifeq ($(CONFIG_AUTOFS_FS
),m
)
277 MOD_SUB_DIRS
+= autofs
281 ifeq ($(CONFIG_AUTOFS4_FS
),y
)
284 ifeq ($(CONFIG_AUTOFS4_FS
),m
)
285 MOD_SUB_DIRS
+= autofs4
289 ifeq ($(CONFIG_ADFS_FS
),y
)
292 ifeq ($(CONFIG_ADFS_FS
),m
)
297 ifeq ($(CONFIG_DEVPTS_FS
),y
)
300 ifeq ($(CONFIG_DEVPTS_FS
),m
)
301 MOD_SUB_DIRS
+= devpts
305 ifeq ($(CONFIG_SUN_OPENPROMFS
),y
)
306 SUB_DIRS
+= openpromfs
308 ifeq ($(CONFIG_SUN_OPENPROMFS
),m
)
309 MOD_SUB_DIRS
+= openpromfs
313 ifeq ($(CONFIG_BINFMT_AOUT
),y
)
314 BINFMTS
+= binfmt_aout.o
316 ifeq ($(CONFIG_BINFMT_AOUT
),m
)
317 M_OBJS
+= binfmt_aout.o
321 ifeq ($(CONFIG_BINFMT_EM86
),y
)
322 BINFMTS
+= binfmt_em86.o
324 ifeq ($(CONFIG_BINFMT_EM86
),m
)
325 M_OBJS
+= binfmt_em86.o
329 ifeq ($(CONFIG_BINFMT_MISC
),y
)
330 BINFMTS
+= binfmt_misc.o
332 ifeq ($(CONFIG_BINFMT_MISC
),m
)
333 M_OBJS
+= binfmt_misc.o
337 # binfmt_script is always there
338 BINFMTS
+= binfmt_script.o
340 ifeq ($(CONFIG_BINFMT_ELF
),y
)
341 BINFMTS
+= binfmt_elf.o
343 ifeq ($(CONFIG_BINFMT_ELF
),m
)
344 M_OBJS
+= binfmt_elf.o
348 include $(TOPDIR
)/Rules.make