* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-0.99 / fs / Makefile
blobd008403c1d66da883914a4a2596c07a31f6e9ed1
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
12 ifdef CONFIG_MINIX_FS
13 FS_SUBDIRS := $(FS_SUBDIRS) minix
14 endif
15 ifdef CONFIG_EXT_FS
16 FS_SUBDIRS := $(FS_SUBDIRS) ext
17 endif
18 ifdef CONFIG_EXT2_FS
19 FS_SUBDIRS := $(FS_SUBDIRS) ext2
20 endif
21 ifdef CONFIG_MSDOS_FS
22 FS_SUBDIRS := $(FS_SUBDIRS) msdos
23 endif
24 ifdef CONFIG_PROC_FS
25 FS_SUBDIRS := $(FS_SUBDIRS) proc
26 endif
27 ifdef CONFIG_ISO9660_FS
28 FS_SUBDIRS := $(FS_SUBDIRS) isofs
29 endif
30 ifdef CONFIG_NFS_FS
31 FS_SUBDIRS := $(FS_SUBDIRS) nfs
32 endif
33 ifdef CONFIG_XIA_FS
34 FS_SUBDIRS := $(FS_SUBDIRS) xiafs
35 endif
36 ifdef CONFIG_SYSV_FS
37 FS_SUBDIRS := $(FS_SUBDIRS) sysv
38 endif
39 ifdef CONFIG_HPFS_FS
40 FS_SUBDIRS := $(FS_SUBDIRS) hpfs
41 endif
43 ifdef CONFIG_BINFMT_ELF
44 BINFMTS := $(BINFMTS) binfmt_elf.o
45 endif
46 ifdef CONFIG_BINFMT_COFF
47 BINFMTS := $(BINFMTS) binfmt_coff.o
48 endif
50 .c.s:
51 $(CC) $(CFLAGS) -S $<
52 .c.o:
53 $(CC) $(CFLAGS) -c $<
54 .s.o:
55 $(AS) -o $*.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
63 fs.o: $(OBJS)
64 $(LD) -r -o fs.o $(OBJS)
66 filesystems.a: dummy
67 rm -f filesystems.a
68 set -e; for i in $(FS_SUBDIRS); do \
69 test ! -d $$i || \
70 { $(MAKE) -C $$i; $(AR) rcs filesystems.a $$i/$$i.o; }; done
72 depend dep:
73 $(CPP) -M *.c > .depend
74 set -e; for i in $(SUBDIRS); do \
75 test ! -d $$i || $(MAKE) -C $$i dep; done
77 dummy:
80 # include a dependency file if one exists
82 ifeq (.depend,$(wildcard .depend))
83 include .depend
84 endif