Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | # # Makefile for the linux filesystem. # # Note! Dependencies are done automagically by 'make dep', which also # removes any old dependencies. DON'T put your own dependencies here # unless it's something special (ie not a .c file). # # Note 2! The CFLAGS definitions are now in the main makefile... SUBDIRS = minix ext ext2 msdos proc isofs nfs xiafs umsdos hpfs sysv ifdef CONFIG_MINIX_FS FS_SUBDIRS := $(FS_SUBDIRS) minix endif ifdef CONFIG_EXT_FS FS_SUBDIRS := $(FS_SUBDIRS) ext endif ifdef CONFIG_EXT2_FS FS_SUBDIRS := $(FS_SUBDIRS) ext2 endif ifdef CONFIG_MSDOS_FS FS_SUBDIRS := $(FS_SUBDIRS) msdos else MODULE_FS_SUBDIRS := $(MODULE_FS_SUBDIRS) msdos endif ifdef CONFIG_PROC_FS FS_SUBDIRS := $(FS_SUBDIRS) proc endif ifdef CONFIG_ISO9660_FS FS_SUBDIRS := $(FS_SUBDIRS) isofs endif ifdef CONFIG_NFS_FS FS_SUBDIRS := $(FS_SUBDIRS) nfs endif ifdef CONFIG_XIA_FS FS_SUBDIRS := $(FS_SUBDIRS) xiafs endif ifdef CONFIG_UMSDOS_FS FS_SUBDIRS := $(FS_SUBDIRS) umsdos else MODULE_FS_SUBDIRS := $(MODULE_FS_SUBDIRS) umsdos endif ifdef CONFIG_SYSV_FS FS_SUBDIRS := $(FS_SUBDIRS) sysv endif ifdef CONFIG_HPFS_FS FS_SUBDIRS := $(FS_SUBDIRS) hpfs endif ifdef CONFIG_BINFMT_ELF BINFMTS := $(BINFMTS) binfmt_elf.o else MODULES := $(MODULES) binfmt_elf.o endif .c.s: $(CC) $(CFLAGS) -S $< .c.o: $(CC) $(CFLAGS) -c $< .s.o: $(AS) -o $*.o $< OBJS= open.o read_write.o inode.o devices.o file_table.o buffer.o super.o \ block_dev.o stat.o exec.o pipe.o namei.o fcntl.o ioctl.o \ select.o fifo.o locks.o filesystems.o dcache.o $(BINFMTS) all: __KEEPMAKEFILEO__CC.o filesystems.a modules modules_fs fs.o: $(OBJS) $(LD) -r -o fs.o $(OBJS) filesystems.a: dummy rm -f filesystems.a set -e; for i in $(FS_SUBDIRS); do \ test ! -d $$i || \ { $(MAKE) -C $$i; $(AR) rcs filesystems.a $$i/$$i.o; }; done ifdef MODULES modules: $(MAKE) CFLAGS="$(CFLAGS) -DMODULE" $(MODULES) (cd ../modules;for i in $(MODULES); do ln -sf ../fs/$$i .; done) else modules: endif ifdef MODULE_FS_SUBDIRS modules_fs: set -e; for i in $(MODULE_FS_SUBDIRS); do \ test ! -d $$i || \ { $(MAKE) -C $$i; }; done else modules_fs: endif depend dep: $(CPP) -M *.c > .depend set -e; for i in $(SUBDIRS); do \ test ! -d $$i || $(MAKE) -C $$i dep; done dummy: # # include a dependency file if one exists # ifeq (.depend,$(wildcard .depend)) include .depend endif |