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
))
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
)
31 ifeq ($(CONFIG_CODA_FS
),y
)
34 ifeq ($(CONFIG_CODA_FS
),m
)
39 ifeq ($(CONFIG_MINIX_FS
),y
)
42 ifeq ($(CONFIG_MINIX_FS
),m
)
47 ifeq ($(CONFIG_EXT2_FS
),y
)
50 ifeq ($(CONFIG_EXT2_FS
),m
)
55 ifeq ($(CONFIG_FAT_FS
),y
)
58 ifeq ($(CONFIG_FAT_FS
),m
)
63 ifeq ($(CONFIG_MSDOS_FS
),y
)
66 ifeq ($(CONFIG_MSDOS_FS
),m
)
71 ifeq ($(CONFIG_VFAT_FS
),y
)
74 ifeq ($(CONFIG_VFAT_FS
),m
)
81 ifeq ($(CONFIG_SUN_OPENPROMFS
),m
)
82 MOD_IN_SUB_DIRS
+= proc
83 MOD_TO_LIST
+= openpromfs.o
87 ifeq ($(CONFIG_BFS_FS
),y
)
90 ifeq ($(CONFIG_BFS_FS
),m
)
95 ifeq ($(CONFIG_ISO9660_FS
),y
)
98 ifeq ($(CONFIG_ISO9660_FS
),m
)
103 ifeq ($(CONFIG_HFS_FS
),y
)
106 ifeq ($(CONFIG_HFS_FS
),m
)
111 ifeq ($(CONFIG_NFS_FS
),y
)
114 ifeq ($(CONFIG_NFS_FS
),m
)
119 ifeq ($(CONFIG_NFSD
),y
)
123 ifeq ($(CONFIG_NFSD
),m
)
128 ifeq ($(CONFIG_LOCKD
),y
)
131 ifeq ($(CONFIG_LOCKD
),m
)
132 MOD_SUB_DIRS
:= lockd
$(MOD_SUB_DIRS
)
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
)
141 MOD_IN_SUB_DIRS
+= nls
143 ifeq ($(CONFIG_NLS
),m
)
148 ifeq ($(CONFIG_UMSDOS_FS
),y
)
151 ifeq ($(CONFIG_UMSDOS_FS
),m
)
152 MOD_SUB_DIRS
+= umsdos
156 ifeq ($(CONFIG_SYSV_FS
),y
)
159 ifeq ($(CONFIG_SYSV_FS
),m
)
164 ifeq ($(CONFIG_SMB_FS
),y
)
167 ifeq ($(CONFIG_SMB_FS
),m
)
168 MOD_SUB_DIRS
+= smbfs
172 ifeq ($(CONFIG_NCP_FS
),y
)
175 ifeq ($(CONFIG_NCP_FS
),m
)
176 MOD_SUB_DIRS
+= ncpfs
180 ifeq ($(CONFIG_HPFS_FS
),y
)
183 ifeq ($(CONFIG_HPFS_FS
),m
)
188 ifeq ($(CONFIG_NTFS_FS
),y
)
191 ifeq ($(CONFIG_NTFS_FS
),m
)
196 ifeq ($(CONFIG_UFS_FS
),y
)
199 ifeq ($(CONFIG_UFS_FS
),m
)
204 ifeq ($(CONFIG_EFS_FS
),y
)
207 ifeq ($(CONFIG_EFS_FS
),m
)
212 ifeq ($(CONFIG_AFFS_FS
),y
)
215 ifeq ($(CONFIG_AFFS_FS
),m
)
220 ifeq ($(CONFIG_ROMFS_FS
),y
)
223 ifeq ($(CONFIG_ROMFS_FS
),m
)
224 MOD_SUB_DIRS
+= romfs
228 ifeq ($(CONFIG_QNX4FS_FS
),y
)
231 ifeq ($(CONFIG_QNX4FS_FS
),m
)
236 ifeq ($(CONFIG_UDF_FS
),y
)
239 ifeq ($(CONFIG_UDF_FS
),m
)
244 ifeq ($(CONFIG_AUTOFS_FS
),y
)
247 ifeq ($(CONFIG_AUTOFS_FS
),m
)
248 MOD_SUB_DIRS
+= autofs
252 ifeq ($(CONFIG_ADFS_FS
),y
)
255 ifeq ($(CONFIG_ADFS_FS
),m
)
260 ifeq ($(CONFIG_DEVPTS_FS
),y
)
263 ifeq ($(CONFIG_DEVPTS_FS
),m
)
264 MOD_SUB_DIRS
+= devpts
268 ifeq ($(CONFIG_BINFMT_ELF
),y
)
269 BINFMTS
+= binfmt_elf.o
271 ifeq ($(CONFIG_BINFMT_ELF
),m
)
272 M_OBJS
+= binfmt_elf.o
276 ifeq ($(CONFIG_BINFMT_AOUT
),y
)
277 BINFMTS
+= binfmt_aout.o
279 ifeq ($(CONFIG_BINFMT_AOUT
),m
)
280 M_OBJS
+= binfmt_aout.o
284 ifeq ($(CONFIG_BINFMT_EM86
),y
)
285 BINFMTS
+= binfmt_em86.o
287 ifeq ($(CONFIG_BINFMT_EM86
),m
)
288 M_OBJS
+= binfmt_em86.o
293 ifeq ($(CONFIG_BINFMT_MISC
),y
)
294 BINFMTS
+= binfmt_misc.o
296 ifeq ($(CONFIG_BINFMT_MISC
),m
)
297 M_OBJS
+= binfmt_misc.o
301 # binfmt_script is always there
302 BINFMTS
+= binfmt_script.o
304 include $(TOPDIR
)/Rules.make