linux-old/fs/Makefile
<<
>>
Prefs
   1#
   2# Makefile for the linux filesystem.
   3#
   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).
   7#
   8# Note 2! The CFLAGS definitions are now in the main makefile...
   9
  10L_TARGET := filesystems.a
  11L_OBJS    = $(join $(SUB_DIRS),$(SUB_DIRS:%=/%.o))
  12O_TARGET := fs.o
  13O_OBJS    = open.o read_write.o inode.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 $(BINFMTS) 
  17
  18MOD_LIST_NAME := FS_MODULES
  19ALL_SUB_DIRS = minix ext ext2 fat msdos vfat proc isofs nfs xiafs umsdos \
  20                hpfs sysv smbfs ncpfs
  21
  22ifeq ($(CONFIG_QUOTA),y)
  23O_OBJS += dquot.o
  24else
  25O_OBJS += noquot.o
  26endif
  27
  28ifeq ($(CONFIG_MINIX_FS),y)
  29SUB_DIRS += minix
  30else
  31  ifeq ($(CONFIG_MINIX_FS),m)
  32  MOD_SUB_DIRS += minix
  33  endif
  34endif
  35
  36ifeq ($(CONFIG_EXT_FS),y)
  37SUB_DIRS += ext
  38else
  39  ifeq ($(CONFIG_EXT_FS),m)
  40  MOD_SUB_DIRS += ext
  41  endif
  42endif
  43
  44ifeq ($(CONFIG_EXT2_FS),y)
  45SUB_DIRS += ext2
  46else
  47  ifeq ($(CONFIG_EXT2_FS),m)
  48  MOD_SUB_DIRS += ext2
  49  endif
  50endif
  51
  52ifeq ($(CONFIG_FAT_FS),y)
  53SUB_DIRS += fat
  54else
  55  ifeq ($(CONFIG_FAT_FS),m)
  56  MOD_SUB_DIRS += fat
  57  endif
  58endif
  59
  60ifeq ($(CONFIG_MSDOS_FS),y)
  61SUB_DIRS += msdos
  62else
  63  ifeq ($(CONFIG_MSDOS_FS),m)
  64  MOD_SUB_DIRS += msdos
  65  endif
  66endif
  67
  68ifeq ($(CONFIG_VFAT_FS),y)
  69SUB_DIRS += vfat
  70else
  71  ifeq ($(CONFIG_VFAT_FS),m)
  72  MOD_SUB_DIRS += vfat
  73  endif
  74endif
  75
  76ifdef CONFIG_PROC_FS
  77SUB_DIRS += proc
  78endif
  79
  80ifeq ($(CONFIG_ISO9660_FS),y)
  81SUB_DIRS += isofs
  82else
  83  ifeq ($(CONFIG_ISO9660_FS),m)
  84  MOD_SUB_DIRS += isofs
  85  endif
  86endif
  87
  88ifeq ($(CONFIG_NFS_FS),y)
  89SUB_DIRS += nfs
  90else
  91  ifeq ($(CONFIG_NFS_FS),m)
  92  MOD_SUB_DIRS += nfs
  93  endif
  94endif
  95
  96ifeq ($(CONFIG_XIA_FS),y)
  97SUB_DIRS += xiafs
  98else
  99  ifeq ($(CONFIG_XIA_FS),m)
 100  MOD_SUB_DIRS += xiafs
 101  endif
 102endif
 103
 104ifeq ($(CONFIG_UMSDOS_FS),y)
 105SUB_DIRS += umsdos
 106else
 107  ifeq ($(CONFIG_UMSDOS_FS),m)
 108  MOD_SUB_DIRS += umsdos
 109  endif
 110endif
 111
 112ifeq ($(CONFIG_SYSV_FS),y)
 113SUB_DIRS += sysv
 114else
 115  ifeq ($(CONFIG_SYSV_FS),m)
 116  MOD_SUB_DIRS += sysv
 117  endif
 118endif
 119
 120ifeq ($(CONFIG_SMB_FS),y)
 121SUB_DIRS += smbfs
 122else
 123  ifeq ($(CONFIG_SMB_FS),m)
 124  MOD_SUB_DIRS += smbfs
 125  endif
 126endif
 127
 128ifeq ($(CONFIG_NCP_FS),y)
 129SUB_DIRS += ncpfs
 130else
 131  ifeq ($(CONFIG_NCP_FS),m)
 132  MOD_SUB_DIRS += ncpfs
 133  endif
 134endif
 135
 136ifeq ($(CONFIG_HPFS_FS),y)
 137SUB_DIRS += hpfs
 138else
 139  ifeq ($(CONFIG_HPFS_FS),m)
 140  MOD_SUB_DIRS += hpfs
 141  endif
 142endif
 143
 144ifeq ($(CONFIG_BINFMT_ELF),y)
 145BINFMTS += binfmt_elf.o
 146else
 147  ifeq ($(CONFIG_BINFMT_ELF),m)
 148  M_OBJS += binfmt_elf.o
 149  endif
 150endif
 151
 152ifeq ($(CONFIG_BINFMT_AOUT),y)
 153BINFMTS += binfmt_aout.o
 154else
 155  ifeq ($(CONFIG_BINFMT_AOUT),m)
 156  M_OBJS += binfmt_aout.o
 157  endif
 158endif
 159
 160# binfmt_script is always there
 161BINFMTS += binfmt_script.o
 162
 163include $(TOPDIR)/Rules.make
 164