linux-old/fs/Makefile
<<
>>
Prefs
   1#
   2# Makefile for the Linux filesystems.
   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 (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 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 $(BINFMTS) 
  17
  18MOD_LIST_NAME := FS_MODULES
  19ALL_SUB_DIRS = coda minix ext2 fat msdos vfat proc isofs nfs umsdos ntfs \
  20                hpfs sysv smbfs ncpfs ufs affs romfs autofs hfs lockd \
  21                nfsd nls devpts adfs qnx4 efs
  22
  23ifeq ($(CONFIG_QUOTA),y)
  24O_OBJS += dquot.o
  25else
  26O_OBJS += noquot.o
  27endif
  28
  29ifeq ($(CONFIG_CODA_FS),y)
  30SUB_DIRS += coda
  31else
  32  ifeq ($(CONFIG_CODA_FS),m)
  33  MOD_SUB_DIRS += coda
  34  endif
  35endif
  36
  37ifeq ($(CONFIG_MINIX_FS),y)
  38SUB_DIRS += minix
  39else
  40  ifeq ($(CONFIG_MINIX_FS),m)
  41  MOD_SUB_DIRS += minix
  42  endif
  43endif
  44
  45ifeq ($(CONFIG_EXT2_FS),y)
  46SUB_DIRS += ext2
  47else
  48  ifeq ($(CONFIG_EXT2_FS),m)
  49  MOD_SUB_DIRS += ext2
  50  endif
  51endif
  52
  53ifeq ($(CONFIG_FAT_FS),y)
  54SUB_DIRS += fat
  55else
  56  ifeq ($(CONFIG_FAT_FS),m)
  57  MOD_SUB_DIRS += fat
  58  endif
  59endif
  60
  61ifeq ($(CONFIG_MSDOS_FS),y)
  62SUB_DIRS += msdos
  63else
  64  ifeq ($(CONFIG_MSDOS_FS),m)
  65  MOD_SUB_DIRS += msdos
  66  endif
  67endif
  68
  69ifeq ($(CONFIG_VFAT_FS),y)
  70SUB_DIRS += vfat
  71else
  72  ifeq ($(CONFIG_VFAT_FS),m)
  73  MOD_SUB_DIRS += vfat
  74  endif
  75endif
  76
  77ifdef CONFIG_PROC_FS
  78SUB_DIRS += proc
  79ifeq ($(CONFIG_SUN_OPENPROMFS),m)
  80MOD_IN_SUB_DIRS += proc
  81MOD_TO_LIST += openpromfs.o
  82endif
  83endif
  84
  85ifeq ($(CONFIG_ISO9660_FS),y)
  86SUB_DIRS += isofs
  87else
  88  ifeq ($(CONFIG_ISO9660_FS),m)
  89  MOD_SUB_DIRS += isofs
  90  endif
  91endif
  92
  93ifeq ($(CONFIG_HFS_FS),y)
  94SUB_DIRS += hfs
  95else
  96  ifeq ($(CONFIG_HFS_FS),m)
  97  MOD_SUB_DIRS += hfs
  98  endif
  99endif
 100
 101ifeq ($(CONFIG_NFS_FS),y)
 102SUB_DIRS += nfs
 103else
 104  ifeq ($(CONFIG_NFS_FS),m)
 105  MOD_SUB_DIRS += nfs
 106  endif
 107endif
 108
 109ifeq ($(CONFIG_NFSD),y)
 110CONFIG_LOCKD := y
 111SUB_DIRS += nfsd
 112else
 113  ifeq ($(CONFIG_NFSD),m)
 114  MOD_SUB_DIRS += nfsd
 115  endif
 116endif
 117
 118ifeq ($(CONFIG_LOCKD),y)
 119SUB_DIRS += lockd
 120else
 121  ifeq ($(CONFIG_LOCKD),m)
 122  MOD_SUB_DIRS := lockd $(MOD_SUB_DIRS)
 123  endif
 124endif
 125
 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.
 129ifeq ($(CONFIG_NLS),y)
 130SUB_DIRS += nls
 131MOD_IN_SUB_DIRS += nls
 132else
 133  ifeq ($(CONFIG_NLS),m)
 134  MOD_SUB_DIRS += nls
 135  endif
 136endif
 137
 138ifeq ($(CONFIG_UMSDOS_FS),y)
 139SUB_DIRS += umsdos
 140else
 141  ifeq ($(CONFIG_UMSDOS_FS),m)
 142  MOD_SUB_DIRS += umsdos
 143  endif
 144endif
 145
 146ifeq ($(CONFIG_SYSV_FS),y)
 147SUB_DIRS += sysv
 148else
 149  ifeq ($(CONFIG_SYSV_FS),m)
 150  MOD_SUB_DIRS += sysv
 151  endif
 152endif
 153
 154ifeq ($(CONFIG_SMB_FS),y)
 155SUB_DIRS += smbfs
 156else
 157  ifeq ($(CONFIG_SMB_FS),m)
 158  MOD_SUB_DIRS += smbfs
 159  endif
 160endif
 161
 162ifeq ($(CONFIG_NCP_FS),y)
 163SUB_DIRS += ncpfs
 164else
 165  ifeq ($(CONFIG_NCP_FS),m)
 166  MOD_SUB_DIRS += ncpfs
 167  endif
 168endif
 169
 170ifeq ($(CONFIG_HPFS_FS),y)
 171SUB_DIRS += hpfs
 172else
 173  ifeq ($(CONFIG_HPFS_FS),m)
 174  MOD_SUB_DIRS += hpfs
 175  endif
 176endif
 177
 178ifeq ($(CONFIG_NTFS_FS),y)
 179SUB_DIRS += ntfs
 180else
 181  ifeq ($(CONFIG_NTFS_FS),m)
 182  MOD_SUB_DIRS += ntfs
 183  endif
 184endif
 185
 186ifeq ($(CONFIG_UFS_FS),y)
 187SUB_DIRS += ufs
 188else
 189  ifeq ($(CONFIG_UFS_FS),m)
 190  MOD_SUB_DIRS += ufs
 191  endif
 192endif
 193
 194ifeq ($(CONFIG_AFFS_FS),y)
 195SUB_DIRS += affs
 196else
 197  ifeq ($(CONFIG_AFFS_FS),m)
 198  MOD_SUB_DIRS += affs
 199  endif
 200endif
 201
 202ifeq ($(CONFIG_ROMFS_FS),y)
 203SUB_DIRS += romfs
 204else
 205  ifeq ($(CONFIG_ROMFS_FS),m)
 206  MOD_SUB_DIRS += romfs
 207  endif
 208endif
 209
 210ifeq ($(CONFIG_QNX4FS_FS),y)
 211SUB_DIRS += qnx4
 212else
 213  ifeq ($(CONFIG_QNX4FS_FS),m)
 214  MOD_SUB_DIRS += qnx4
 215  endif
 216endif
 217
 218ifeq ($(CONFIG_EFS_FS),y)
 219SUB_DIRS += efs
 220else
 221  ifeq ($(CONFIG_EFS_FS),m)
 222  MOD_SUB_DIRS += efs
 223  endif
 224endif
 225
 226ifeq ($(CONFIG_AUTOFS_FS),y)
 227SUB_DIRS += autofs
 228else
 229  ifeq ($(CONFIG_AUTOFS_FS),m)
 230  MOD_SUB_DIRS += autofs
 231  endif
 232endif
 233
 234ifeq ($(CONFIG_ADFS_FS),y)
 235SUB_DIRS += adfs
 236else
 237  ifeq ($(CONFIG_ADFS_FS),m)
 238  MOD_SUB_DIRS += adfs
 239  endif
 240endif
 241
 242ifeq ($(CONFIG_DEVPTS_FS),y)
 243SUB_DIRS += devpts
 244else
 245  ifeq ($(CONFIG_DEVPTS_FS),m)
 246  MOD_SUB_DIRS += devpts
 247  endif
 248endif
 249
 250ifeq ($(CONFIG_BINFMT_ELF),y)
 251BINFMTS += binfmt_elf.o
 252else
 253  ifeq ($(CONFIG_BINFMT_ELF),m)
 254  M_OBJS += binfmt_elf.o
 255  endif
 256endif
 257
 258ifeq ($(CONFIG_BINFMT_AOUT),y)
 259BINFMTS += binfmt_aout.o
 260else
 261  ifeq ($(CONFIG_BINFMT_AOUT),m)
 262  M_OBJS += binfmt_aout.o
 263  endif
 264endif
 265
 266ifeq ($(CONFIG_BINFMT_JAVA),y)
 267BINFMTS += binfmt_java.o
 268else
 269  ifeq ($(CONFIG_BINFMT_JAVA),m)
 270  M_OBJS += binfmt_java.o
 271  endif
 272endif
 273
 274ifeq ($(CONFIG_BINFMT_EM86),y)
 275BINFMTS += binfmt_em86.o
 276else
 277  ifeq ($(CONFIG_BINFMT_EM86),m)
 278  M_OBJS += binfmt_em86.o
 279  endif
 280endif
 281
 282
 283ifeq ($(CONFIG_BINFMT_MISC),y)
 284BINFMTS += binfmt_misc.o
 285else
 286  ifeq ($(CONFIG_BINFMT_MISC),m)
 287  M_OBJS += binfmt_misc.o
 288  endif
 289endif
 290
 291# binfmt_script is always there
 292BINFMTS += binfmt_script.o
 293
 294include $(TOPDIR)/Rules.make
 295
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.