Import 2.3.12pre9
[davej-history.git] / fs / Makefile
blob4bc1177d10b330ca6dd4ad6ac8bf57835730faae
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 qnx4
23 ifeq ($(CONFIG_QUOTA),y)
24 O_OBJS += dquot.o
25 else
26 O_OBJS += noquot.o
27 endif
29 ifeq ($(CONFIG_CODA_FS),y)
30 SUB_DIRS += coda
31 else
32 ifeq ($(CONFIG_CODA_FS),m)
33 MOD_SUB_DIRS += coda
34 endif
35 endif
37 ifeq ($(CONFIG_MINIX_FS),y)
38 SUB_DIRS += minix
39 else
40 ifeq ($(CONFIG_MINIX_FS),m)
41 MOD_SUB_DIRS += minix
42 endif
43 endif
45 ifeq ($(CONFIG_EXT2_FS),y)
46 SUB_DIRS += ext2
47 else
48 ifeq ($(CONFIG_EXT2_FS),m)
49 MOD_SUB_DIRS += ext2
50 endif
51 endif
53 ifeq ($(CONFIG_FAT_FS),y)
54 SUB_DIRS += fat
55 else
56 ifeq ($(CONFIG_FAT_FS),m)
57 MOD_SUB_DIRS += fat
58 endif
59 endif
61 ifeq ($(CONFIG_MSDOS_FS),y)
62 SUB_DIRS += msdos
63 else
64 ifeq ($(CONFIG_MSDOS_FS),m)
65 MOD_SUB_DIRS += msdos
66 endif
67 endif
69 ifeq ($(CONFIG_VFAT_FS),y)
70 SUB_DIRS += vfat
71 else
72 ifeq ($(CONFIG_VFAT_FS),m)
73 MOD_SUB_DIRS += vfat
74 endif
75 endif
77 ifdef CONFIG_PROC_FS
78 SUB_DIRS += proc
79 ifeq ($(CONFIG_SUN_OPENPROMFS),m)
80 MOD_IN_SUB_DIRS += proc
81 MOD_TO_LIST += openpromfs.o
82 endif
83 endif
85 ifeq ($(CONFIG_ISO9660_FS),y)
86 SUB_DIRS += isofs
87 else
88 ifeq ($(CONFIG_ISO9660_FS),m)
89 MOD_SUB_DIRS += isofs
90 endif
91 endif
93 ifeq ($(CONFIG_HFS_FS),y)
94 SUB_DIRS += hfs
95 else
96 ifeq ($(CONFIG_HFS_FS),m)
97 MOD_SUB_DIRS += hfs
98 endif
99 endif
101 ifeq ($(CONFIG_NFS_FS),y)
102 SUB_DIRS += nfs
103 else
104 ifeq ($(CONFIG_NFS_FS),m)
105 MOD_SUB_DIRS += nfs
106 endif
107 endif
109 ifeq ($(CONFIG_NFSD),y)
110 CONFIG_LOCKD := y
111 SUB_DIRS += nfsd
112 else
113 ifeq ($(CONFIG_NFSD),m)
114 MOD_SUB_DIRS += nfsd
115 endif
116 endif
118 ifeq ($(CONFIG_LOCKD),y)
119 SUB_DIRS += lockd
120 else
121 ifeq ($(CONFIG_LOCKD),m)
122 MOD_SUB_DIRS := lockd $(MOD_SUB_DIRS)
123 endif
124 endif
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)
130 SUB_DIRS += nls
131 MOD_IN_SUB_DIRS += nls
132 else
133 ifeq ($(CONFIG_NLS),m)
134 MOD_SUB_DIRS += nls
135 endif
136 endif
138 ifeq ($(CONFIG_UMSDOS_FS),y)
139 SUB_DIRS += umsdos
140 else
141 ifeq ($(CONFIG_UMSDOS_FS),m)
142 MOD_SUB_DIRS += umsdos
143 endif
144 endif
146 ifeq ($(CONFIG_SYSV_FS),y)
147 SUB_DIRS += sysv
148 else
149 ifeq ($(CONFIG_SYSV_FS),m)
150 MOD_SUB_DIRS += sysv
151 endif
152 endif
154 ifeq ($(CONFIG_SMB_FS),y)
155 SUB_DIRS += smbfs
156 else
157 ifeq ($(CONFIG_SMB_FS),m)
158 MOD_SUB_DIRS += smbfs
159 endif
160 endif
162 ifeq ($(CONFIG_NCP_FS),y)
163 SUB_DIRS += ncpfs
164 else
165 ifeq ($(CONFIG_NCP_FS),m)
166 MOD_SUB_DIRS += ncpfs
167 endif
168 endif
170 ifeq ($(CONFIG_HPFS_FS),y)
171 SUB_DIRS += hpfs
172 else
173 ifeq ($(CONFIG_HPFS_FS),m)
174 MOD_SUB_DIRS += hpfs
175 endif
176 endif
178 ifeq ($(CONFIG_NTFS_FS),y)
179 SUB_DIRS += ntfs
180 else
181 ifeq ($(CONFIG_NTFS_FS),m)
182 MOD_SUB_DIRS += ntfs
183 endif
184 endif
186 ifeq ($(CONFIG_UFS_FS),y)
187 SUB_DIRS += ufs
188 else
189 ifeq ($(CONFIG_UFS_FS),m)
190 MOD_SUB_DIRS += ufs
191 endif
192 endif
194 ifeq ($(CONFIG_EFS_FS),y)
195 SUB_DIRS += efs
196 else
197 ifeq ($(CONFIG_EFS_FS),m)
198 MOD_SUB_DIRS += efs
199 endif
200 endif
202 ifeq ($(CONFIG_AFFS_FS),y)
203 SUB_DIRS += affs
204 else
205 ifeq ($(CONFIG_AFFS_FS),m)
206 MOD_SUB_DIRS += affs
207 endif
208 endif
210 ifeq ($(CONFIG_ROMFS_FS),y)
211 SUB_DIRS += romfs
212 else
213 ifeq ($(CONFIG_ROMFS_FS),m)
214 MOD_SUB_DIRS += romfs
215 endif
216 endif
218 ifeq ($(CONFIG_QNX4FS_FS),y)
219 SUB_DIRS += qnx4
220 else
221 ifeq ($(CONFIG_QNX4FS_FS),m)
222 MOD_SUB_DIRS += qnx4
223 endif
224 endif
226 ifeq ($(CONFIG_AUTOFS_FS),y)
227 SUB_DIRS += autofs
228 else
229 ifeq ($(CONFIG_AUTOFS_FS),m)
230 MOD_SUB_DIRS += autofs
231 endif
232 endif
234 ifeq ($(CONFIG_ADFS_FS),y)
235 SUB_DIRS += adfs
236 else
237 ifeq ($(CONFIG_ADFS_FS),m)
238 MOD_SUB_DIRS += adfs
239 endif
240 endif
242 ifeq ($(CONFIG_DEVPTS_FS),y)
243 SUB_DIRS += devpts
244 else
245 ifeq ($(CONFIG_DEVPTS_FS),m)
246 MOD_SUB_DIRS += devpts
247 endif
248 endif
250 ifeq ($(CONFIG_BINFMT_ELF),y)
251 BINFMTS += binfmt_elf.o
252 else
253 ifeq ($(CONFIG_BINFMT_ELF),m)
254 M_OBJS += binfmt_elf.o
255 endif
256 endif
258 ifeq ($(CONFIG_BINFMT_AOUT),y)
259 BINFMTS += binfmt_aout.o
260 else
261 ifeq ($(CONFIG_BINFMT_AOUT),m)
262 M_OBJS += binfmt_aout.o
263 endif
264 endif
266 ifeq ($(CONFIG_BINFMT_EM86),y)
267 BINFMTS += binfmt_em86.o
268 else
269 ifeq ($(CONFIG_BINFMT_EM86),m)
270 M_OBJS += binfmt_em86.o
271 endif
272 endif
275 ifeq ($(CONFIG_BINFMT_MISC),y)
276 BINFMTS += binfmt_misc.o
277 else
278 ifeq ($(CONFIG_BINFMT_MISC),m)
279 M_OBJS += binfmt_misc.o
280 endif
281 endif
283 # binfmt_script is always there
284 BINFMTS += binfmt_script.o
286 include $(TOPDIR)/Rules.make