]> git.hungrycats.org Git - linux/commitdiff
kbuild: Use standard multi-part object declaration in fs/*
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Fri, 24 May 2002 13:25:54 +0000 (08:25 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Fri, 24 May 2002 13:25:54 +0000 (08:25 -0500)
46 files changed:
fs/Makefile
fs/adfs/Makefile
fs/affs/Makefile
fs/autofs/Makefile
fs/autofs4/Makefile
fs/bfs/Makefile
fs/coda/Makefile
fs/cramfs/Makefile
fs/devfs/Makefile
fs/devpts/Makefile
fs/driverfs/Makefile
fs/efs/Makefile
fs/exportfs/Makefile
fs/ext2/Makefile
fs/ext3/Makefile
fs/fat/Makefile
fs/freevxfs/Makefile
fs/hfs/Makefile
fs/hpfs/Makefile
fs/intermezzo/Makefile
fs/isofs/Makefile
fs/jbd/Makefile
fs/jffs/Makefile
fs/jffs2/Makefile
fs/jfs/Makefile
fs/lockd/Makefile
fs/minix/Makefile
fs/msdos/Makefile
fs/ncpfs/Makefile
fs/nfs/Makefile
fs/nfsd/Makefile
fs/nls/Makefile
fs/ntfs/Makefile
fs/openpromfs/Makefile
fs/partitions/Makefile
fs/proc/Makefile
fs/qnx4/Makefile
fs/ramfs/Makefile
fs/reiserfs/Makefile
fs/romfs/Makefile
fs/smbfs/Makefile
fs/sysv/Makefile
fs/udf/Makefile
fs/ufs/Makefile
fs/umsdos/Makefile
fs/vfat/Makefile

index daf8174867ac79f96849e8420eda0349e312941e..21488ff925de5b4d47a5b749a62f3fe9b094e927 100644 (file)
@@ -23,55 +23,6 @@ obj-y += nfsctl.o
 endif
 endif
 
-subdir-$(CONFIG_PROC_FS)       += proc
-subdir-y                       += partitions
-subdir-y                       += driverfs
-
-# Do not add any filesystems before this line
-subdir-$(CONFIG_EXT3_FS)       += ext3    # Before ext2 so root fs can be ext3
-subdir-$(CONFIG_JBD)           += jbd
-subdir-$(CONFIG_EXT2_FS)       += ext2
-subdir-$(CONFIG_CRAMFS)                += cramfs
-subdir-$(CONFIG_RAMFS)         += ramfs
-subdir-$(CONFIG_CODA_FS)       += coda
-subdir-$(CONFIG_INTERMEZZO_FS) += intermezzo
-subdir-$(CONFIG_MINIX_FS)      += minix
-subdir-$(CONFIG_FAT_FS)                += fat
-subdir-$(CONFIG_UMSDOS_FS)     += umsdos
-subdir-$(CONFIG_MSDOS_FS)      += msdos
-subdir-$(CONFIG_VFAT_FS)       += vfat
-subdir-$(CONFIG_BFS_FS)                += bfs
-subdir-$(CONFIG_ISO9660_FS)    += isofs
-subdir-$(CONFIG_DEVFS_FS)      += devfs
-subdir-$(CONFIG_HFS_FS)                += hfs
-subdir-$(CONFIG_VXFS_FS)       += freevxfs
-subdir-$(CONFIG_NFS_FS)                += nfs
-subdir-$(CONFIG_EXPORTFS)      += exportfs
-subdir-$(CONFIG_NFSD)          += nfsd
-subdir-$(CONFIG_LOCKD)         += lockd
-subdir-$(CONFIG_NLS)           += nls
-subdir-$(CONFIG_SYSV_FS)       += sysv
-subdir-$(CONFIG_SMB_FS)                += smbfs
-subdir-$(CONFIG_NCP_FS)                += ncpfs
-subdir-$(CONFIG_HPFS_FS)       += hpfs
-subdir-$(CONFIG_NTFS_FS)       += ntfs
-subdir-$(CONFIG_UFS_FS)                += ufs
-subdir-$(CONFIG_EFS_FS)                += efs
-subdir-$(CONFIG_JFFS_FS)       += jffs
-subdir-$(CONFIG_JFFS2_FS)      += jffs2
-subdir-$(CONFIG_AFFS_FS)       += affs
-subdir-$(CONFIG_ROMFS_FS)      += romfs
-subdir-$(CONFIG_QNX4FS_FS)     += qnx4
-subdir-$(CONFIG_UDF_FS)                += udf
-subdir-$(CONFIG_AUTOFS_FS)     += autofs
-subdir-$(CONFIG_AUTOFS4_FS)    += autofs4
-subdir-$(CONFIG_ADFS_FS)       += adfs
-subdir-$(CONFIG_REISERFS_FS)   += reiserfs
-subdir-$(CONFIG_DEVPTS_FS)     += devpts
-subdir-$(CONFIG_SUN_OPENPROMFS)        += openpromfs
-subdir-$(CONFIG_JFS_FS)                += jfs
-
-
 obj-$(CONFIG_BINFMT_AOUT)      += binfmt_aout.o
 obj-$(CONFIG_BINFMT_EM86)      += binfmt_em86.o
 obj-$(CONFIG_BINFMT_MISC)      += binfmt_misc.o
@@ -81,12 +32,56 @@ obj-y                               += binfmt_script.o
 
 obj-$(CONFIG_BINFMT_ELF)       += binfmt_elf.o
 
-obj-$(CONFIG_QUOTA) += dquot.o
-obj-$(CONFIG_QFMT_V1) += quota_v1.o
-obj-$(CONFIG_QFMT_V2) += quota_v2.o
+obj-$(CONFIG_QUOTA)            += dquot.o
+obj-$(CONFIG_QFMT_V1)          += quota_v1.o
+obj-$(CONFIG_QFMT_V2)          += quota_v2.o
 
-# persistent filesystems
-obj-y += $(join $(subdir-y),$(subdir-y:%=/%.o))
+obj-$(CONFIG_PROC_FS)          += proc/
+obj-y                          += partitions/
+obj-y                          += driverfs/
 
+# Do not add any filesystems before this line
+obj-$(CONFIG_EXT3_FS)          += ext3/ # Before ext2 so root fs can be ext3
+obj-$(CONFIG_JBD)              += jbd/
+obj-$(CONFIG_EXT2_FS)          += ext2/
+obj-$(CONFIG_CRAMFS)           += cramfs/
+obj-$(CONFIG_RAMFS)            += ramfs/
+obj-$(CONFIG_CODA_FS)          += coda/
+obj-$(CONFIG_INTERMEZZO_FS)    += intermezzo/
+obj-$(CONFIG_MINIX_FS)         += minix/
+obj-$(CONFIG_FAT_FS)           += fat/
+obj-$(CONFIG_UMSDOS_FS)                += umsdos/
+obj-$(CONFIG_MSDOS_FS)         += msdos/
+obj-$(CONFIG_VFAT_FS)          += vfat/
+obj-$(CONFIG_BFS_FS)           += bfs/
+obj-$(CONFIG_ISO9660_FS)       += isofs/
+obj-$(CONFIG_DEVFS_FS)         += devfs/
+obj-$(CONFIG_HFS_FS)           += hfs/
+obj-$(CONFIG_VXFS_FS)          += freevxfs/
+obj-$(CONFIG_NFS_FS)           += nfs/
+obj-$(CONFIG_EXPORTFS)         += exportfs/
+obj-$(CONFIG_NFSD)             += nfsd/
+obj-$(CONFIG_LOCKD)            += lockd/
+obj-$(CONFIG_NLS)              += nls/
+obj-$(CONFIG_SYSV_FS)          += sysv/
+obj-$(CONFIG_SMB_FS)           += smbfs/
+obj-$(CONFIG_NCP_FS)           += ncpfs/
+obj-$(CONFIG_HPFS_FS)          += hpfs/
+obj-$(CONFIG_NTFS_FS)          += ntfs/
+obj-$(CONFIG_UFS_FS)           += ufs/
+obj-$(CONFIG_EFS_FS)           += efs/
+obj-$(CONFIG_JFFS_FS)          += jffs/
+obj-$(CONFIG_JFFS2_FS)         += jffs2/
+obj-$(CONFIG_AFFS_FS)          += affs/
+obj-$(CONFIG_ROMFS_FS)         += romfs/
+obj-$(CONFIG_QNX4FS_FS)                += qnx4/
+obj-$(CONFIG_UDF_FS)           += udf/
+obj-$(CONFIG_AUTOFS_FS)                += autofs/
+obj-$(CONFIG_AUTOFS4_FS)       += autofs4/
+obj-$(CONFIG_ADFS_FS)          += adfs/
+obj-$(CONFIG_REISERFS_FS)      += reiserfs/
+obj-$(CONFIG_DEVPTS_FS)                += devpts/
+obj-$(CONFIG_SUN_OPENPROMFS)   += openpromfs/
+obj-$(CONFIG_JFS_FS)           += jfs/
 
 include $(TOPDIR)/Rules.make
index f1a279dde8831a8394d7d43e7ff54f4ae3fdf71d..7b6c64d9834daa7eaf6ef962a3bf250ec242a144 100644 (file)
@@ -1,15 +1,9 @@
 #
 # Makefile for the linux adfs filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
-O_TARGET := adfs.o
+obj-$(CONFIG_ADFS_FS) += adfs.o
 
-obj-y    := dir.o dir_f.o dir_fplus.o file.o inode.o map.o super.o
-obj-m    := $(O_TARGET)
+adfs-objs := dir.o dir_f.o dir_fplus.o file.o inode.o map.o super.o
 
 include $(TOPDIR)/Rules.make
index 5d485cdca28674155fc6c28efd3b3563e6e6203c..960e86b39fc79b73ff849d0fe7728347188cccaa 100644 (file)
@@ -1,17 +1,11 @@
 #
 # Makefile for the Linux affs filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
 #EXTRA_CFLAGS=-DDEBUG=1
 
-O_TARGET := affs.o
+obj-$(CONFIG_AFFS_FS) += affs.o
 
-obj-y   := super.o namei.o inode.o file.o dir.o amigaffs.o bitmap.o symlink.o
-obj-m   := $(O_TARGET)
+affs-objs := super.o namei.o inode.o file.o dir.o amigaffs.o bitmap.o symlink.o
 
 include $(TOPDIR)/Rules.make
index c6df501ac2e48beaea9ca8ff723c6bd4c2910a49..59d23bd1715b3bd5bff6c2450588400db6bc4e6b 100644 (file)
@@ -1,12 +1,9 @@
 #
 # Makefile for the linux autofs-filesystem routines.
 #
-# We can build this either out of the kernel tree or the autofs tools tree.
-#
 
-O_TARGET := autofs.o
+obj-$(CONFIG_AUTOFS_FS) += autofs.o
 
-obj-y   := dirhash.o init.o inode.o root.o symlink.o waitq.o
-obj-m   := $(O_TARGET)
+autofs-objs := dirhash.o init.o inode.o root.o symlink.o waitq.o
 
 include $(TOPDIR)/Rules.make
index 1eb09f0bf1b1a4d30f335e9966703f9bc4f2ec73..f910955b019f3b90b3fec2d2a39df615d56f17cf 100644 (file)
@@ -1,13 +1,9 @@
 #
 # Makefile for the linux autofs-filesystem routines.
 #
-# We can build this either out of the kernel tree or the autofs tools tree.
-#
-
-O_TARGET := autofs4.o
 
-obj-y   := init.o inode.o root.o symlink.o waitq.o expire.o
+obj-$(CONFIG_AUTOFS4_FS) += autofs4.o
 
-obj-m   := $(O_TARGET)
+autofs4-objs := init.o inode.o root.o symlink.o waitq.o expire.o
 
 include $(TOPDIR)/Rules.make
index ff4d375dd53985df1f6d80bfd1d6c7adde7337f4..c356ad8c880c04e823020cce4a08cbb66a400d02 100644 (file)
@@ -1,15 +1,9 @@
 #
 # Makefile for BFS 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...
 
-O_TARGET := bfs.o
+obj-$(CONFIG_BFS_FS) += bfs.o
 
-obj-y   := inode.o file.o dir.o
-obj-m   := $(O_TARGET)
+bfs-objs := inode.o file.o dir.o
 
 include $(TOPDIR)/Rules.make
index e169867eeaf13f16e0a8b64d748b0f064b6ab248..7a8b82ae66a25b000731de652a2fcf2cdee932fd 100644 (file)
@@ -2,11 +2,10 @@
 # Makefile for the Linux Coda filesystem routines.
 #
 
-O_TARGET := coda.o
+obj-$(CONFIG_CODA_FS) += coda.o
 
-obj-y   := psdev.o cache.o cnode.o inode.o dir.o file.o upcall.o coda_linux.o\
-           symlink.o pioctl.o sysctl.o 
-obj-m   := $(O_TARGET)
+coda-objs := psdev.o cache.o cnode.o inode.o dir.o file.o upcall.o \
+            coda_linux.o symlink.o pioctl.o sysctl.o 
 
 # If you want debugging output, please uncomment the following line.
 
index 112c87bec11ce9053ddad227ccdacc5f60883a7e..d04ae5aa209016c5f402a1c1ec34bfa437f65f23 100644 (file)
@@ -2,10 +2,8 @@
 # Makefile for the linux cramfs routines.
 #
 
-O_TARGET := cramfs.o
+obj-$(CONFIG_CRAMFS) += cramfs.o
 
-obj-y  := inode.o uncompress.o
-
-obj-m := $(O_TARGET)
+cramfs-objs := inode.o uncompress.o
 
 include $(TOPDIR)/Rules.make
index b551ffd093b056c88a2b4ad8a21719a13c166a82..7b7e90fdcba04973b58c59036a4471731fdf6bce 100644 (file)
@@ -1,17 +1,12 @@
 #
 # Makefile for the linux devfs-filesystem routines.
 #
-# 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...
-
-O_TARGET := devfs.o
 
 export-objs := base.o util.o
 
-obj-y   := base.o util.o
+obj-$(CONFIG_DEVFS_FS) += devfs.o
+
+devfs-objs := base.o util.o
 
 # Special case to support building documentation
 ifndef TOPDIR
index 8ab293007dc89de76518778298bdc5eafe2a85cc..59aba3c15f50d52f2eaec27fcef74d535069e614 100644 (file)
@@ -2,10 +2,8 @@
 # Makefile for the Linux /dev/pts virtual filesystem.
 #
 
-O_TARGET := devpts.o
+obj-$(CONFIG_DEVPTS_FS) += devpts.o
 
-obj-y    := root.o inode.o
-
-obj-m    := $(O_TARGET)
+devpts-objs := root.o inode.o
 
 include $(TOPDIR)/Rules.make
index 1fd66308fb5d735e8bfa27504024917ad39d8ae2..43c770cee3889583559eb9be18ac816252758e57 100644 (file)
@@ -1,8 +1,9 @@
-O_TARGET := driverfs.o
+#
+# Makefile for the driverfs virtual filesystem.
+#
 
 export-objs := inode.o
 
 obj-y := inode.o
-obj-m := $(O_TARGET)
 
 include $(TOPDIR)/Rules.make
index 9352c722b925f5c6e0818bb582d884122f9bf24c..dd1f84aa028d9f630f5d54fdc2e70497c445f721 100644 (file)
@@ -1,15 +1,9 @@
 #
 # Makefile for the linux efs-filesystem routines.
 #
-# 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...
 
-O_TARGET := efs.o
+obj-$(CONFIG_EFS_FS) += efs.o
 
-obj-y    := super.o inode.o namei.o dir.o file.o symlink.o
-obj-m    := $(O_TARGET)
+efs-objs := super.o inode.o namei.o dir.o file.o symlink.o
 
 include $(TOPDIR)/Rules.make
index 268f2f73dbd0e42d62d558debed47f644d37d879..fef5294fe271eb500fc88b551e2797f5c0046aa6 100644 (file)
@@ -1,11 +1,10 @@
 #
 # Makefile for the filesystem export support routines.
 
-O_TARGET := exportfs.o
-
 export-objs := expfs.o
 
-obj-y :=    expfs.o
-obj-m := $(O_TARGET)
+obj-$(CONFIG_EXPORTFS) += exportfs.o
+
+exportfs-objs := expfs.o
 
 include $(TOPDIR)/Rules.make
index 60e07beee0837e979c5c07db504acb030e9d7bb0..00d124b13824a02f277d2948874733480a9c8e1a 100644 (file)
@@ -1,16 +1,10 @@
 #
 # Makefile for the linux ext2-filesystem routines.
 #
-# 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...
 
-O_TARGET := ext2.o
+obj-$(CONFIG_EXT2_FS) += ext2.o
 
-obj-y    := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
-               ioctl.o namei.o super.o symlink.o
-obj-m    := $(O_TARGET)
+ext2-objs := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
+            ioctl.o namei.o super.o symlink.o
 
 include $(TOPDIR)/Rules.make
index 68cb4861815cf049fba2d06982bf99495d0501c4..0bb071043d1b338cb42850c7c091fdd0cabd0149 100644 (file)
@@ -1,16 +1,10 @@
 #
-# Makefile for the linux ext2-filesystem routines.
+# Makefile for the linux ext3-filesystem routines.
 #
-# 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...
 
-O_TARGET := ext3.o
+obj-$(CONFIG_EXT3_FS) += ext3.o
 
-obj-y    := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
+ext3-objs    := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
                ioctl.o namei.o super.o symlink.o
-obj-m    := $(O_TARGET)
 
 include $(TOPDIR)/Rules.make
index d1e503117bafcb30d5de297fd7bab3708325dc72..56f462bef577edcc27e776b296b42061ca28b509 100644 (file)
@@ -1,17 +1,11 @@
 #
 # Makefile for the Linux fat filesystem support.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
-
-O_TARGET := fat.o
 
 export-objs := fatfs_syms.o
 
-obj-y    := buffer.o cache.o dir.o file.o inode.o misc.o cvf.o fatfs_syms.o
-obj-m    := $(O_TARGET)
+obj-$(CONFIG_FAT_FS) += fat.o
+
+fat-objs := buffer.o cache.o dir.o file.o inode.o misc.o cvf.o fatfs_syms.o
 
 include $(TOPDIR)/Rules.make
index 593cb7be23aac0733791c453151ae98c0e0e1357..44152c8dadc00b9a2e1e278f8b050c816582e001 100644 (file)
@@ -2,10 +2,9 @@
 # VxFS Makefile
 #
 
-O_TARGET :=    freevxfs.o
+obj-$(CONFIG_VXFS_FS) += freevxfs.o
 
-obj-y :=       vxfs_bmap.o vxfs_fshead.o vxfs_immed.o vxfs_inode.o \
-               vxfs_lookup.o vxfs_olt.o vxfs_subr.o vxfs_super.o
-obj-m :=       $(O_TARGET)
+freevxfs-objs := vxfs_bmap.o vxfs_fshead.o vxfs_immed.o vxfs_inode.o \
+                vxfs_lookup.o vxfs_olt.o vxfs_subr.o vxfs_super.o
 
 include $(TOPDIR)/Rules.make
index fd5a7589c6aeb02e3115a76592580c8b769d6686..2ca46b5e167fc8f70ff166c6535eaa641b876d9d 100644 (file)
@@ -1,19 +1,12 @@
 #
 # Makefile for the Linux hfs filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
-O_TARGET := hfs.o
+obj-$(CONFIG_HFS_FS) += hfs.o
 
-obj-y    := balloc.o bdelete.o bfind.o bins_del.o binsert.o bitmap.o bitops.o \
+hfs-objs := balloc.o bdelete.o bfind.o bins_del.o binsert.o bitmap.o bitops.o \
            bnode.o brec.o btree.o catalog.o dir.o dir_cap.o dir_dbl.o \
            dir_nat.o extent.o file.o file_cap.o file_hdr.o inode.o mdb.o \
             part_tbl.o string.o super.o sysdep.o trans.o version.o
 
-obj-m    := $(O_TARGET)
-
 include $(TOPDIR)/Rules.make
index b2394dedd851bf54bf509d8183b742295fd87fe4..b93baaac400c2f3a7cb1a5117ffda335a5569ed3 100644 (file)
@@ -1,6 +1,10 @@
-O_TARGET := hpfs.o
+#
+# Makefile for the Linux hpfs filesystem routines.
+#
 
-obj-y := alloc.o anode.o buffer.o dentry.o dir.o dnode.o ea.o file.o inode.o map.o name.o namei.o super.o
-obj-m := $(O_TARGET)
+obj-$(CONFIG_HPFS_FS) += hpfs.o
+
+hpfs-objs := alloc.o anode.o buffer.o dentry.o dir.o dnode.o ea.o file.o \
+            inode.o map.o name.o namei.o super.o
 
 include $(TOPDIR)/Rules.make
index b43dd509c9c04de7dae2d0d6ede9e660e1d6f53b..73b2fee76743e82b9782e0da3acf61c29a573d65 100644 (file)
@@ -2,11 +2,11 @@
 # Makefile 1.00 Peter Braam <braam@clusterfs.com>
 #
 
-O_TARGET := intermezzo.o
+obj-$(CONFIG_INTERMEZZO_FS) += intermezzo.o
 
-obj-y :=  journal_reiserfs.o cache.o  journal.o presto.o vfs.o psdev.o upcall.o methods.o sysctl.o dcache.o  dir.o  super.o journal_ext2.o journal_ext3.o journal_xfs.o  inode.o  file.o journal_obdfs.o
-
-
-obj-m := $(O_TARGET)
+intermezzo-objs := journal_reiserfs.o cache.o journal.o presto.o vfs.o \
+                  psdev.o upcall.o methods.o sysctl.o dcache.o dir.o \
+                  super.o journal_ext2.o journal_ext3.o journal_xfs.o \
+                  inode.o  file.o journal_obdfs.o
 
 include $(TOPDIR)/Rules.make
index a7d774396027d79b2c07217dc0780391f3de799b..e0bdecb59be31e64ef2a87116a2bda250334069d 100644 (file)
@@ -1,18 +1,12 @@
 #
 # Makefile for the Linux isofs filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
-
-O_TARGET := isofs.o
 
-obj-y  := namei.o inode.o dir.o util.o rock.o
-obj-$(CONFIG_JOLIET) += joliet.o
-obj-$(CONFIG_ZISOFS) += compress.o
+obj-$(CONFIG_ISO9660_FS) += isofs.o
 
-obj-m  := $(O_TARGET)
+isofs-objs-y                   := namei.o inode.o dir.o util.o rock.o
+isofs-objs-$(CONFIG_JOLIET)    += joliet.o
+isofs-objs-$(CONFIG_ZISOFS)    += compress.o
+isofs-objs                     := $(isofs-objs-y)
 
 include $(TOPDIR)/Rules.make
index 8f52c14c83a576e816f7e7258009fb8a3551e2c8..20e3f0f3703627791067dc5e8826ee013e793b38 100644 (file)
@@ -1,15 +1,12 @@
 #
-# fs/jbd/Makefile
-# 
 # Makefile for the linux journaling routines.
 #
 
 export-objs := journal.o
-O_TARGET := jbd.o
 
-obj-y   := transaction.o commit.o recovery.o checkpoint.o revoke.o journal.o
+obj-$(CONFIG_JBD) += jbd.o
 
-obj-m   := $(O_TARGET)
+jbd-objs := transaction.o commit.o recovery.o checkpoint.o revoke.o journal.o
 
 include $(TOPDIR)/Rules.make
 
index 4ad5e8f5e400c405bcc37e5d4ac8205bf6b02693..4e7d1cb36f209f550afa73153da7b85d4d27519d 100644 (file)
@@ -4,21 +4,11 @@
 # $Id: Makefile,v 1.11 2001/09/25 20:59:41 dwmw2 Exp $
 #
 
-obj-y := jffs_fm.o intrep.o
+obj-$(CONFIG_JFFS_FS) += jffs.o
 
-ifeq ($(PATCHLEVEL),2)
-       obj-y += inode-v22.o
-else
-       obj-y += inode-v23.o
-endif
-
-ifeq ($(CONFIG_JFFS_PROC_FS),y)
-       obj-y += jffs_proc.o
-endif
-
-O_TARGET := jffs.o
-
-obj-m := $(O_TARGET)
+jffs-y                                 := jffs_fm.o intrep.o inode-v23.o
+jffs-$(CONFIG_JFFS_PROC_FS)    += jffs_proc.o
+jffs-objs                      := $(jffs-y)
 
 include $(TOPDIR)/Rules.make
 
index 8a6abadfdf791214d3c887ae958f0d65edb95c50..0fd7f118730bfa3056266be8f67b62b9a30bf034 100644 (file)
@@ -3,12 +3,8 @@
 #
 # $Id: Makefile,v 1.34 2002/03/08 11:27:59 dwmw2 Exp $
 #
-# 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...
 
+obj-$(CONFIG_JFFS2_FS) += jffs2.o
 
 COMPR_OBJS     := compr.o compr_rubin.o compr_rtime.o compr_zlib.o
 JFFS2_OBJS     := dir.o file.o ioctl.o nodelist.o malloc.o \
@@ -20,11 +16,8 @@ LINUX_OBJS-25        := super.o
 
 NAND_OBJS-$(CONFIG_JFFS2_FS_NAND)      := wbuf.o
 
-O_TARGET := jffs2.o
-
-obj-y := $(COMPR_OBJS) $(JFFS2_OBJS) $(VERS_OBJS) $(NAND_OBJS-y) \
-       $(LINUX_OBJS-$(VERSION)$(PATCHLEVEL))
-obj-m := $(O_TARGET)
+jffs2-objs := $(COMPR_OBJS) $(JFFS2_OBJS) $(VERS_OBJS) $(NAND_OBJS-y) \
+             $(LINUX_OBJS-$(VERSION)$(PATCHLEVEL))
 
 include $(TOPDIR)/Rules.make
 
index 5bcec98c97d32d777bb2eaf258ea7be6ce2d296d..8e77cdd0f6115f95515c60d45fa5a1b41be0e24b 100644 (file)
@@ -1,19 +1,14 @@
 #
 # Makefile for the Linux JFS filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
-O_TARGET := jfs.o
-obj-y   := super.o file.o inode.o namei.o jfs_mount.o jfs_umount.o \
+obj-$(CONFIG_JFS_FS) += jfs.o
+
+jfs-objs := super.o file.o inode.o namei.o jfs_mount.o jfs_umount.o \
            jfs_xtree.o jfs_imap.o jfs_debug.o jfs_dmap.o \
            jfs_unicode.o jfs_dtree.o jfs_inode.o \
            jfs_extent.o symlink.o jfs_metapage.o \
            jfs_logmgr.o jfs_txnmgr.o jfs_uniupr.o
-obj-m   := $(O_TARGET)
 
 EXTRA_CFLAGS += -D_JFS_4K
 
index 98f4ae53112b016032496e8d9d840b62cb9066e4..61acd02a3cfc5c9baf0a41fe32cdaaa8a70414a7 100644 (file)
@@ -1,21 +1,14 @@
 #
 # Makefile for the linux lock manager stuff
 #
-# 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...
-
-O_TARGET := lockd.o
 
 export-objs := lockd_syms.o
 
-obj-y    := clntlock.o clntproc.o host.o svc.o svclock.o svcshare.o \
-           svcproc.o svcsubs.o mon.o xdr.o lockd_syms.o
-
-obj-$(CONFIG_LOCKD_V4) += xdr4.o svc4proc.o
+obj-$(CONFIG_LOCKD) += lockd.o
 
-obj-m    := $(O_TARGET)
+lockd-objs-y := clntlock.o clntproc.o host.o svc.o svclock.o svcshare.o \
+               svcproc.o svcsubs.o mon.o xdr.o lockd_syms.o
+lockd-objs-$(CONFIG_LOCKD_V4) += xdr4.o svc4proc.o
+lockd-objs                   := $(lockd-objs-y)
 
 include $(TOPDIR)/Rules.make
index 13505618163370718e029dd3e1cee68e729cfce8..36b1340b3bf4265a3e566434b7bfba8903b9f8f1 100644 (file)
@@ -1,15 +1,9 @@
 #
 # Makefile for the Linux minix filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
-O_TARGET := minix.o
+obj-$(CONFIG_MINIX_FS) += minix.o
 
-obj-y    := bitmap.o itree_v1.o itree_v2.o namei.o inode.o file.o dir.o
-obj-m    := $(O_TARGET)
+minix-objs := bitmap.o itree_v1.o itree_v2.o namei.o inode.o file.o dir.o
 
 include $(TOPDIR)/Rules.make
index a0424c507247d996da411b5ab0501f049c3cad6a..fb66da76f1f0cb5cc1aceb2aa8328c369cb28114 100644 (file)
@@ -1,17 +1,11 @@
 #
 # Makefile for the Linux msdos filesystem routines.
 #
-# 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.
-
-O_TARGET := msdos.o
 
 export-objs := msdosfs_syms.o
 
-obj-y := namei.o msdosfs_syms.o
-obj-m := $(O_TARGET)
+obj-$(CONFIG_MSDOS_FS) += msdos.o
+
+msdos-objs := namei.o msdosfs_syms.o
 
 include $(TOPDIR)/Rules.make
index f30dfb67128d46c643ee167f56e2923f0ce0ea15..26cd285c7dfd3d260a4118fed29b1a63e3108eea 100644 (file)
@@ -1,17 +1,11 @@
 #
 # Makefile for the linux ncp filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
-O_TARGET := ncpfs.o
+obj-$(CONFIG_NCP_FS) += ncpfs.o
 
-obj-y    := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \
+ncpfs-objs   := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \
                symlink.o ncpsign_kernel.o
-obj-m    := $(O_TARGET)
 
 # If you want debugging output, please uncomment the following line
 # EXTRA_CFLAGS += -DDEBUG_NCP=1
index 0fea2467f61a8d63770082340047deca3f9865e1..b4a0fedb924c2c238f10588c3ba61fbf77645d19 100644 (file)
@@ -1,20 +1,13 @@
 #
 # Makefile for the Linux nfs filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
-
-O_TARGET := nfs.o
-
-obj-y    := dir.o file.o flushd.o inode.o nfs2xdr.o pagelist.o proc.o \
-           read.o symlink.o unlink.o write.o
 
-obj-$(CONFIG_ROOT_NFS) += nfsroot.o mount_clnt.o      
-obj-$(CONFIG_NFS_V3) += nfs3proc.o nfs3xdr.o
+obj-$(CONFIG_NFS_FS) += nfs.o
 
-obj-m   := $(O_TARGET)
+nfs-y                  := dir.o file.o flushd.o inode.o nfs2xdr.o pagelist.o \
+                          proc.o read.o symlink.o unlink.o write.o
+nfs-$(CONFIG_ROOT_NFS) += nfsroot.o mount_clnt.o      
+nfs-$(CONFIG_NFS_V3)   += nfs3proc.o nfs3xdr.o
+nfs-objs               := $(nfs-y)
 
 include $(TOPDIR)/Rules.make
index 17775d0fbf16d0a341c0dac2dc88260f2cf74852..c7ddb3601d2eb2994e59007ae3b3043e7925f40e 100644 (file)
@@ -1,20 +1,12 @@
 #
-# Makefile for the Linux nfs filesystem routines.
+# Makefile for the Linux nfs server
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
-
-O_TARGET := nfsd.o
-
-obj-y :=    nfssvc.o nfsctl.o nfsproc.o nfsfh.o vfs.o \
-           export.o auth.o lockd.o nfscache.o nfsxdr.o \
-           stats.o
 
-obj-$(CONFIG_NFSD_V3) += nfs3proc.o nfs3xdr.o
+obj-$(CONFIG_NFSD)     += nfsd.o
 
-obj-m := $(O_TARGET)
+nfsd-y                         := nfssvc.o nfsctl.o nfsproc.o nfsfh.o vfs.o \
+                          export.o auth.o lockd.o nfscache.o nfsxdr.o stats.o
+nfsd-$(CONFIG_NFSD_V3) += nfs3proc.o nfs3xdr.o
+nfsd-objs              := $(nfsd-y)
 
 include $(TOPDIR)/Rules.make
index b1ee35220b8e2d76e03ac55d9e3d079e5bf8ad22..10d12d16f06243efe47a044eaa95694de88880b5 100644 (file)
@@ -2,13 +2,9 @@
 # Makefile for native language support
 #
 
-O_TARGET = nls.o
 export-objs := nls_base.o
 
-obj-y  :=      nls_base.o
-obj-m  :=
-obj-n  :=
-obj-   :=
+obj-$(CONFIG_NLS)              += nls_base.o
 
 obj-$(CONFIG_NLS_CODEPAGE_437) += nls_cp437.o
 obj-$(CONFIG_NLS_CODEPAGE_737) += nls_cp737.o
@@ -30,14 +26,8 @@ obj-$(CONFIG_NLS_CODEPAGE_932)       += nls_cp932.o nls_sjis.o nls_euc-jp.o
 obj-$(CONFIG_NLS_CODEPAGE_936) += nls_cp936.o nls_gb2312.o
 obj-$(CONFIG_NLS_CODEPAGE_949) += nls_cp949.o nls_euc-kr.o
 obj-$(CONFIG_NLS_CODEPAGE_950) += nls_cp950.o nls_big5.o
-obj-$(CONFIG_NLS_CODEPAGE_1250)        += nls_cp1250.o
 obj-$(CONFIG_NLS_CODEPAGE_1251)        += nls_cp1251.o
-obj-$(CONFIG_NLS_CODEPAGE_1252)        += nls_cp1252.o
-obj-$(CONFIG_NLS_CODEPAGE_1253)        += nls_cp1253.o
-obj-$(CONFIG_NLS_CODEPAGE_1254)        += nls_cp1254.o
-obj-$(CONFIG_NLS_CODEPAGE_1256)        += nls_cp1256.o
-obj-$(CONFIG_NLS_CODEPAGE_1257)        += nls_cp1257.o
-obj-$(CONFIG_NLS_CODEPAGE_1258)        += nls_cp1258.o
+obj-$(CONFIG_NLS_CODEPAGE_1255)        += nls_cp1255.o
 obj-$(CONFIG_NLS_ISO8859_1)    += nls_iso8859-1.o
 obj-$(CONFIG_NLS_ISO8859_2)    += nls_iso8859-2.o
 obj-$(CONFIG_NLS_ISO8859_3)    += nls_iso8859-3.o
index 94feb47d3c3c7ce88eb24d8db3f11c46f317faf8..0b5c002933447ff05991784f9b0057032e9a7498 100644 (file)
@@ -1,11 +1,9 @@
 # Rules for making the NTFS driver.
 
-O_TARGET := ntfs.o
+obj-$(CONFIG_NTFS_FS) += ntfs.o
 
-obj-y   := aops.o attrib.o compress.o debug.o dir.o file.o inode.o mft.o \
-               mst.o namei.o super.o sysctl.o time.o unistr.o upcase.o
-
-obj-m   := $(O_TARGET)
+ntfs-objs := aops.o attrib.o compress.o debug.o dir.o file.o inode.o mft.o \
+            mst.o namei.o super.o sysctl.o time.o unistr.o upcase.o
 
 EXTRA_CFLAGS = -DNTFS_VERSION=\"2.0.7\"
 
index f9d8cd339c3ad1024e1eb0307b46efd093301350..e57eb12af655d970600ce55d592b70f580f9fb0f 100644 (file)
@@ -1,15 +1,9 @@
 #
-# Makefile for the Linux minix filesystem routines.
+# Makefile for the Linux Sun Openprom filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
-O_TARGET := openpromfs.o
+obj-$(CONFIG_SUN_OPENPROMFS) += openpromfs.o
 
-obj-y   := inode.o
-obj-m   := $(O_TARGET)
+openpromfs-objs := inode.o
 
 include $(TOPDIR)/Rules.make
index b000fada1b0f6dbe4547ffcc7f1c78296e676969..ac92b2b6d3a3ee2326d728665332581c7c56f55a 100644 (file)
@@ -1,13 +1,6 @@
 #
 # Makefile for the linux kernel.
 #
-# 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...
-
-O_TARGET := partitions.o
 
 export-objs := check.o ibm.o msdos.o
 
index 95160610eba0fd3f71b530b8e3a4d70819ef11b3..26b8bfaadf36a86519e701bfecdddb24b6116061 100644 (file)
@@ -1,21 +1,16 @@
 #
 # Makefile for the Linux proc filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
-
-O_TARGET := proc.o
 
 export-objs := root.o
 
-obj-y    := inode.o root.o base.o generic.o array.o \
+obj-$(CONFIG_PROC_FS) += proc.o
+
+proc-objs    := inode.o root.o base.o generic.o array.o \
                kmsg.o proc_tty.o proc_misc.o kcore.o
 
 ifeq ($(CONFIG_PROC_DEVICETREE),y)
-obj-y += proc_devtree.o
+proc-objs    += proc_devtree.o
 endif
 
 include $(TOPDIR)/Rules.make
index a3a3c5a7da14de7c5ff741a4a4ede40847419167..14dd84080f0f1d07627935fff0022c8d84b483e1 100644 (file)
@@ -1,15 +1,9 @@
 #
 # Makefile for the linux qnx4-filesystem routines.
 #
-# 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...
 
-O_TARGET := qnx4.o
+obj-$(CONFIG_QNX4FS_FS) += qnx4.o
 
-obj-y   := inode.o dir.o namei.o file.o bitmap.o truncate.o fsync.o
-obj-m   := $(O_TARGET)
+qnx4-objs := inode.o dir.o namei.o file.o bitmap.o truncate.o fsync.o
 
 include $(TOPDIR)/Rules.make
index 44ff24f061fc5f5a0a0b07af97b7f0d4b458a0e5..29c2c672a3fef38744230b791b7325137def8d43 100644 (file)
@@ -2,9 +2,8 @@
 # Makefile for the linux ramfs routines.
 #
 
-O_TARGET := ramfs.o
+obj-$(CONFIG_RAMFS) += ramfs.o
 
-obj-y := inode.o
-obj-m := $(O_TARGET)
+ramfs-objs := inode.o
 
 include $(TOPDIR)/Rules.make
index 1ea70777f5c2942b49087aa71f6883cb78b74cfe..a4b9697d680b1a7372cf98ee52765dc45645a3c5 100644 (file)
@@ -1,17 +1,13 @@
 #
 # Makefile for the linux reiser-filesystem routines.
 #
-# 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...
 
-O_TARGET := reiserfs.o
-obj-y   := bitmap.o do_balan.o namei.o inode.o file.o dir.o fix_node.o super.o prints.o objectid.o \
-lbalance.o ibalance.o stree.o hashes.o buffer2.o tail_conversion.o journal.o resize.o item_ops.o ioctl.o procfs.o
+obj-$(CONFIG_REISERFS_FS) += reiserfs.o
 
-obj-m   := $(O_TARGET)
+reiserfs-objs := bitmap.o do_balan.o namei.o inode.o file.o dir.o fix_node.o \
+                super.o prints.o objectid.o lbalance.o ibalance.o stree.o \
+                hashes.o buffer2.o tail_conversion.o journal.o resize.o \
+                item_ops.o ioctl.o procfs.o
 
 # gcc -O2 (the kernel default)  is overaggressive on ppc32 when many inline
 # functions are used.  This causes the compiler to advance the stack
index 65a88e40b5876c181becf724fc38f9c86c37cd02..03047c6b831c3a978eb89dc630a8f8b760953365 100644 (file)
@@ -1,15 +1,9 @@
 #
 # Makefile for the linux romfs filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
-O_TARGET := romfs.o
+obj-$(CONFIG_ROMFS_FS) += romfs.o
 
-obj-y  := inode.o
-obj-m  := $(O_TARGET)
+romfs-objs := inode.o
 
 include $(TOPDIR)/Rules.make
index 93ddc0df84f233520617a6c6d34b43649bdb37e9..c66422c8640cdab3905a301a740a0d16c14420e8 100644 (file)
@@ -1,16 +1,10 @@
 #
 # Makefile for the linux smb-filesystem routines.
 #
-# 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...
 
-O_TARGET := smbfs.o
+obj-$(CONFIG_SMB_FS) += smbfs.o
 
-obj-y   := proc.o dir.o cache.o sock.o inode.o file.o ioctl.o getopt.o
-obj-m   := $(O_TARGET)
+smbfs-objs := proc.o dir.o cache.o sock.o inode.o file.o ioctl.o getopt.o
 
 # If you want debugging output, you may add these flags to the EXTRA_CFLAGS
 # SMBFS_PARANOIA should normally be enabled.
index 4c574eda024218f185e3d6bea6dbaa46af58cdd9..86f5ac05dc18eacf0427376be5f3b6e1e40c4d81 100644 (file)
@@ -1,16 +1,10 @@
 #
 # Makefile for the Linux SystemV/Coherent filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
-O_TARGET := sysv.o
+obj-$(CONFIG_SYSV_FS) += sysv.o
 
-obj-y   := ialloc.o balloc.o inode.o itree.o file.o dir.o \
-          namei.o super.o symlink.o
-obj-m   := $(O_TARGET)
+sysv-objs := ialloc.o balloc.o inode.o itree.o file.o dir.o \
+            namei.o super.o symlink.o
 
 include $(TOPDIR)/Rules.make
index e44aed01ad9ffcf98da5540f9be5d5f2dbcf1feb..3dd7aad93c9e02e76d85473fe68b3f883d56e4df 100644 (file)
@@ -1,17 +1,11 @@
 #
 # Makefile for the linux udf-filesystem routines.
 #
-# 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 .o file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile..
 
-O_TARGET := udf.o
+obj-$(CONFIG_UDF_FS) += udf.o
 
-obj-y    := balloc.o dir.o file.o ialloc.o inode.o lowlevel.o namei.o \
+udf-objs     := balloc.o dir.o file.o ialloc.o inode.o lowlevel.o namei.o \
                partition.o super.o truncate.o symlink.o fsync.o \
                crc.o directory.o misc.o udftime.o unicode.o
-obj-m    := $(O_TARGET)
 
 include $(TOPDIR)/Rules.make
index 4e74b2459bacab7af551bbac223b768ec7c68a6d..dcd77fe93963cfbab6701fdaf4e42cbd25516652 100644 (file)
@@ -1,16 +1,10 @@
 #
 # Makefile for the Linux ufs filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile.
 
-O_TARGET := ufs.o
+obj-$(CONFIG_UFS_FS) += ufs.o
 
-obj-y   := balloc.o cylinder.o dir.o file.o ialloc.o inode.o \
-               namei.o super.o symlink.o truncate.o util.o
-obj-m   := $(O_TARGET)
+ufs-objs := balloc.o cylinder.o dir.o file.o ialloc.o inode.o \
+           namei.o super.o symlink.o truncate.o util.o
 
 include $(TOPDIR)/Rules.make
index a894146ba59b47b899fcedf4f04143b1490f26c7..c8a6b9f443cf12558d85e09dc6de2fc14ea7bd2a 100644 (file)
@@ -1,16 +1,10 @@
 #
 # Makefile for the umsdos Unix-like filesystem routines.
 #
-# 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 (not a .c file).
-#
-# Note 2:  the CFLAGS definitions are now in the main makefile.
-O_TARGET := umsdos.o
 
-obj-y   := dir.o  inode.o ioctl.o mangle.o namei.o rdir.o emd.o
+obj-$(CONFIG_UMSDOS) += umsdos.o
 
-obj-m   := $(O_TARGET)
+umsdos-objs := dir.o  inode.o ioctl.o mangle.o namei.o rdir.o emd.o
 
 include $(TOPDIR)/Rules.make
 
index 55e0ea9151d60429b2c9eefe8d6c4c4f2140f93d..76a43a345ebfcd08517c64149e29946d0e02dd69 100644 (file)
@@ -1,17 +1,11 @@
 #
 # Makefile for the linux vfat-filesystem routines.
 #
-# 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...
-
-O_TARGET := vfat.o
 
 export-objs := vfatfs_syms.o
 
-obj-y := namei.o vfatfs_syms.o
-obj-m := $(O_TARGET)
+obj-$(CONFIG_VFAT_FS) += vfat.o
+
+vfat-objs := namei.o vfatfs_syms.o
 
 include $(TOPDIR)/Rules.make