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
$(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 affs romfs autofs hfs lockd nfsd \
23 ifeq ($(CONFIG_QUOTA
),y
)
29 ifeq ($(CONFIG_CODA_FS
),y
)
32 ifeq ($(CONFIG_CODA_FS
),m
)
37 ifeq ($(CONFIG_MINIX_FS
),y
)
40 ifeq ($(CONFIG_MINIX_FS
),m
)
45 ifeq ($(CONFIG_EXT2_FS
),y
)
48 ifeq ($(CONFIG_EXT2_FS
),m
)
53 ifeq ($(CONFIG_FAT_FS
),y
)
56 ifeq ($(CONFIG_FAT_FS
),m
)
61 ifeq ($(CONFIG_MSDOS_FS
),y
)
64 ifeq ($(CONFIG_MSDOS_FS
),m
)
69 ifeq ($(CONFIG_VFAT_FS
),y
)
72 ifeq ($(CONFIG_VFAT_FS
),m
)
79 ifeq ($(CONFIG_SUN_OPENPROMFS
),m
)
80 MOD_IN_SUB_DIRS
+= proc
81 MOD_TO_LIST
+= openpromfs.o
85 ifeq ($(CONFIG_ISO9660_FS
),y
)
88 ifeq ($(CONFIG_ISO9660_FS
),m
)
93 ifeq ($(CONFIG_HFS_FS
),y
)
96 ifeq ($(CONFIG_HFS_FS
),m
)
101 ifeq ($(CONFIG_NFS_FS
),y
)
104 ifeq ($(CONFIG_NFS_FS
),m
)
109 ifeq ($(CONFIG_NFSD
),y
)
113 ifeq ($(CONFIG_NFSD
),m
)
118 ifeq ($(CONFIG_LOCKD
),y
)
121 ifeq ($(CONFIG_LOCKD
),m
)
122 MOD_SUB_DIRS
:= lockd
$(MOD_SUB_DIRS
)
126 # Since CONFIG_NLS might be set to y while there are modules
127 # to be build in the nls/ directory, we need to enter the nls
128 # directory every time, but with different rules.
129 ifeq ($(CONFIG_NLS
),y
)
131 MOD_IN_SUB_DIRS
+= nls
133 ifeq ($(CONFIG_NLS
),m
)
138 ifeq ($(CONFIG_UMSDOS_FS
),y
)
141 ifeq ($(CONFIG_UMSDOS_FS
),m
)
142 MOD_SUB_DIRS
+= umsdos
146 ifeq ($(CONFIG_SYSV_FS
),y
)
149 ifeq ($(CONFIG_SYSV_FS
),m
)
154 ifeq ($(CONFIG_SMB_FS
),y
)
157 ifeq ($(CONFIG_SMB_FS
),m
)
158 MOD_SUB_DIRS
+= smbfs
162 ifeq ($(CONFIG_NCP_FS
),y
)
165 ifeq ($(CONFIG_NCP_FS
),m
)
166 MOD_SUB_DIRS
+= ncpfs
170 ifeq ($(CONFIG_HPFS_FS
),y
)
173 ifeq ($(CONFIG_HPFS_FS
),m
)
178 ifeq ($(CONFIG_NTFS_FS
),y
)
181 ifeq ($(CONFIG_NTFS_FS
),m
)
186 ifeq ($(CONFIG_UFS_FS
),y
)
189 ifeq ($(CONFIG_UFS_FS
),m
)
194 ifeq ($(CONFIG_AFFS_FS
),y
)
197 ifeq ($(CONFIG_AFFS_FS
),m
)
202 ifeq ($(CONFIG_ROMFS_FS
),y
)
205 ifeq ($(CONFIG_ROMFS_FS
),m
)
206 MOD_SUB_DIRS
+= romfs
210 ifeq ($(CONFIG_QNX4FS_FS
),y
)
213 ifeq ($(CONFIG_QNX4FS_FS
),m
)
218 ifeq ($(CONFIG_AUTOFS_FS
),y
)
221 ifeq ($(CONFIG_AUTOFS_FS
),m
)
222 MOD_SUB_DIRS
+= autofs
226 ifeq ($(CONFIG_ADFS_FS
),y
)
229 ifeq ($(CONFIG_ADFS_FS
),m
)
234 ifeq ($(CONFIG_DEVPTS_FS
),y
)
237 ifeq ($(CONFIG_DEVPTS_FS
),m
)
238 MOD_SUB_DIRS
+= devpts
242 ifeq ($(CONFIG_BINFMT_ELF
),y
)
243 BINFMTS
+= binfmt_elf.o
245 ifeq ($(CONFIG_BINFMT_ELF
),m
)
246 M_OBJS
+= binfmt_elf.o
250 ifeq ($(CONFIG_BINFMT_AOUT
),y
)
251 BINFMTS
+= binfmt_aout.o
253 ifeq ($(CONFIG_BINFMT_AOUT
),m
)
254 M_OBJS
+= binfmt_aout.o
258 ifeq ($(CONFIG_BINFMT_JAVA
),y
)
259 BINFMTS
+= binfmt_java.o
261 ifeq ($(CONFIG_BINFMT_JAVA
),m
)
262 M_OBJS
+= binfmt_java.o
266 ifeq ($(CONFIG_BINFMT_EM86
),y
)
267 BINFMTS
+= binfmt_em86.o
269 ifeq ($(CONFIG_BINFMT_EM86
),m
)
270 M_OBJS
+= binfmt_em86.o
275 ifeq ($(CONFIG_BINFMT_MISC
),y
)
276 BINFMTS
+= binfmt_misc.o
278 ifeq ($(CONFIG_BINFMT_MISC
),m
)
279 M_OBJS
+= binfmt_misc.o
283 # binfmt_script is always there
284 BINFMTS
+= binfmt_script.o
286 include $(TOPDIR
)/Rules.make