2 # Makefile for the linux filesystem.
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 (ie not a .c file).
8 # Note 2! The CFLAGS definitions are now in the main makefile...
10 SUBDIRS
= minix ext ext2 msdos proc isofs nfs xiafs hpfs sysv
13 FS_SUBDIRS
:= $(FS_SUBDIRS
) minix
16 FS_SUBDIRS
:= $(FS_SUBDIRS
) ext
19 FS_SUBDIRS
:= $(FS_SUBDIRS
) ext2
22 FS_SUBDIRS
:= $(FS_SUBDIRS
) msdos
25 FS_SUBDIRS
:= $(FS_SUBDIRS
) proc
27 ifdef CONFIG_ISO9660_FS
28 FS_SUBDIRS
:= $(FS_SUBDIRS
) isofs
31 FS_SUBDIRS
:= $(FS_SUBDIRS
) nfs
34 FS_SUBDIRS
:= $(FS_SUBDIRS
) xiafs
37 FS_SUBDIRS
:= $(FS_SUBDIRS
) sysv
40 FS_SUBDIRS
:= $(FS_SUBDIRS
) hpfs
43 ifdef CONFIG_BINFMT_ELF
44 BINFMTS
:= $(BINFMTS
) binfmt_elf.o
46 ifdef CONFIG_BINFMT_COFF
47 BINFMTS
:= $(BINFMTS
) binfmt_coff.o
57 OBJS
= open.o read_write.o inode.o devices.o file_table.o buffer.o super.o \
58 block_dev.o stat.o exec.o pipe.o namei.o fcntl.o ioctl.o \
59 select.o fifo.o locks.o filesystems.o
$(BINFMTS
)
61 all: fs.o filesystems.a
64 $(LD
) -r
-o fs.o
$(OBJS
)
68 set
-e
; for i in
$(FS_SUBDIRS
); do \
70 { $(MAKE
) -C
$$i; $(AR
) rcs filesystems.a
$$i/$$i.o
; }; done
73 $(CPP
) -M
*.c
> .depend
74 set
-e
; for i in
$(SUBDIRS
); do \
75 test ! -d
$$i ||
$(MAKE
) -C
$$i dep
; done
80 # include a dependency file if one exists
82 ifeq (.depend
,$(wildcard .depend
))