summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-05-28 10:16:47 -0500
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-05-28 10:16:47 -0500
commitdc3b2a73b19ec1193d9ed0db016354344c56c87f (patch)
tree15d03c00b676e9535be9d22ecce41d5919ceda47 /drivers
parent89a6351c22a52338717542ed7612a21c9439f8b7 (diff)
kbuild: Group together descending/linking in drivers/*
We currently decide whether we need to descend into the subdirs of drivers/ in drivers/Makefile, but link the resulting objects from the top-level Makefile. Making these two decisions at the same time (in drivers/Makefile) cleans up the top-level Makefile quite a bit. Link order does not change at all apart from sound/, which is now linked last.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/Makefile74
-rw-r--r--drivers/acpi/Makefile2
-rw-r--r--drivers/atm/Makefile2
-rw-r--r--drivers/base/Makefile2
-rw-r--r--drivers/block/Makefile4
-rw-r--r--drivers/bluetooth/Makefile15
-rw-r--r--drivers/cdrom/Makefile3
-rw-r--r--drivers/char/Makefile2
-rw-r--r--drivers/hotplug/Makefile2
-rw-r--r--drivers/i2c/Makefile2
-rw-r--r--drivers/ide/Makefile6
-rw-r--r--drivers/ieee1394/Makefile2
-rw-r--r--drivers/input/Makefile4
-rw-r--r--drivers/input/gameport/Makefile4
-rw-r--r--drivers/input/serio/Makefile4
-rw-r--r--drivers/isdn/Makefile4
-rw-r--r--drivers/macintosh/Makefile11
-rw-r--r--drivers/md/Makefile2
-rw-r--r--drivers/media/Makefile8
-rw-r--r--drivers/message/Makefile2
-rw-r--r--drivers/misc/Makefile11
-rw-r--r--drivers/mtd/Makefile2
-rw-r--r--drivers/net/Makefile8
-rw-r--r--drivers/parport/Makefile9
-rw-r--r--drivers/pci/Makefile9
-rw-r--r--drivers/pcmcia/Makefile2
-rw-r--r--drivers/pnp/Makefile2
-rw-r--r--drivers/sbus/Makefile6
-rw-r--r--drivers/scsi/Makefile3
-rw-r--r--drivers/telephony/Makefile10
-rw-r--r--drivers/usb/Makefile2
-rw-r--r--drivers/video/Makefile2
-rw-r--r--drivers/zorro/Makefile9
33 files changed, 42 insertions, 188 deletions
diff --git a/drivers/Makefile b/drivers/Makefile
index 0591faa60339..257042170946 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -9,43 +9,43 @@
mod-subdirs := dio mtd sbus video macintosh usb input telephony sgi ide \
message scsi md ieee1394 pnp isdn atm \
fc4 i2c acpi bluetooth input/serio \
- input/gameport parport hotplug
+ input/gameport parport hotplug \
+ base char block misc net media cdrom
-subdir-y := base char block net misc media cdrom
-subdir-m := $(subdir-y)
-
-subdir-$(CONFIG_PARPORT) += parport
-subdir-$(CONFIG_HOTPLUG_PCI) += hotplug
-subdir-$(CONFIG_DIO) += dio
-subdir-$(CONFIG_PCI) += pci
-subdir-$(CONFIG_PCMCIA) += pcmcia
-subdir-$(CONFIG_MTD) += mtd
-subdir-$(CONFIG_SBUS) += sbus
-subdir-$(CONFIG_ZORRO) += zorro
-subdir-$(CONFIG_NUBUS) += nubus
-subdir-$(CONFIG_TC) += tc
-subdir-$(CONFIG_VT) += video
-subdir-$(CONFIG_MAC) += macintosh
-subdir-$(CONFIG_ALL_PPC) += macintosh
-subdir-$(CONFIG_USB) += usb
-subdir-$(CONFIG_INPUT) += input
-subdir-$(CONFIG_SERIO) += input/serio
-subdir-$(CONFIG_GAMEPORT) += input/gameport
-subdir-$(CONFIG_PHONE) += telephony
-subdir-$(CONFIG_SGI) += sgi
-subdir-$(CONFIG_IDE) += ide
-subdir-$(CONFIG_SCSI) += scsi
-subdir-$(CONFIG_I2O) += message
-subdir-$(CONFIG_FUSION) += message
-subdir-$(CONFIG_MD) += md
-subdir-$(CONFIG_IEEE1394) += ieee1394
-subdir-$(CONFIG_PNP) += pnp
-subdir-$(CONFIG_ISDN) += isdn
-subdir-$(CONFIG_ATM) += atm
-subdir-$(CONFIG_FC4) += fc4
-subdir-$(CONFIG_I2C) += i2c
-subdir-$(CONFIG_ACPI) += acpi
-
-subdir-$(CONFIG_BLUEZ) += bluetooth
+obj-$(CONFIG_ACPI) += acpi/
+obj-$(CONFIG_PCI) += pci/
+obj-$(CONFIG_PARPORT) += parport/
+obj-y += base/ char/ block/ misc/ net/ media/
+obj-$(CONFIG_NUBUS) += nubus/
+obj-$(CONFIG_ATM) += atm/
+obj-$(CONFIG_IDE) += ide/
+obj-$(CONFIG_FC4) += fc4/
+obj-$(CONFIG_SCSI) += scsi/
+obj-$(CONFIG_FUSION) += message/
+obj-$(CONFIG_IEEE1394) += ieee1394/
+obj-y += cdrom/
+obj-$(CONFIG_MTD) += mtd/
+obj-$(CONFIG_PCMCIA) += pcmcia/
+obj-$(CONFIG_DIO) += dio/
+obj-$(CONFIG_SBUS) += sbus/
+obj-$(CONFIG_ZORRO) += zorro/
+obj-$(CONFIG_ALL_PPC) += macintosh/
+obj-$(CONFIG_MAC) += macintosh/
+obj-$(CONFIG_PNP) += pnp/
+obj-$(CONFIG_SGI) += sgi/
+obj-$(CONFIG_VT) += video/
+obj-$(CONFIG_PARIDE) += block/paride/
+obj-$(CONFIG_TC) += tc/
+obj-$(CONFIG_USB) += usb/
+obj-$(CONFIG_INPUT) += input/
+obj-$(CONFIG_GAMEPORT) += input/gameport/
+obj-$(CONFIG_SERIO) += input/serio/
+obj-$(CONFIG_I2O) += message/
+obj-$(CONFIG_I2C) += i2c/
+obj-$(CONFIG_PHONE) += telephony/
+obj-$(CONFIG_MD) += md/
+obj-$(CONFIG_BLUEZ) += bluetooth/
+obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
+obj-$(CONFIG_ISDN) += isdn/
include $(TOPDIR)/Rules.make
diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile
index 2c0d318cce2c..390917e8e087 100644
--- a/drivers/acpi/Makefile
+++ b/drivers/acpi/Makefile
@@ -2,8 +2,6 @@
# Makefile for the Linux ACPI interpreter
#
-O_TARGET := acpi.o
-
export ACPI_CFLAGS
ACPI_CFLAGS := -D_LINUX -I$(CURDIR)/include
diff --git a/drivers/atm/Makefile b/drivers/atm/Makefile
index 053df01e7242..5549b60193e2 100644
--- a/drivers/atm/Makefile
+++ b/drivers/atm/Makefile
@@ -2,8 +2,6 @@
# Makefile for the Linux network (ATM) device drivers.
#
-O_TARGET := atm.o
-
export-objs := uPD98402.o suni.o idt77105.o
obj-y := atmdev_init.o
diff --git a/drivers/base/Makefile b/drivers/base/Makefile
index 3ff40bf56fc6..94756ce763e0 100644
--- a/drivers/base/Makefile
+++ b/drivers/base/Makefile
@@ -1,4 +1,4 @@
-O_TARGET := base.o
+# Makefile for the Linux device tree
obj-y := core.o sys.o interface.o fs.o power.o
diff --git a/drivers/block/Makefile b/drivers/block/Makefile
index 87d951cc28a1..88eb4e457644 100644
--- a/drivers/block/Makefile
+++ b/drivers/block/Makefile
@@ -8,8 +8,6 @@
# In the future, some of these should be built conditionally.
#
-O_TARGET := block.o
-
export-objs := elevator.o ll_rw_blk.o blkpg.o loop.o DAC960.o genhd.o block_ioctl.o
obj-y := elevator.o ll_rw_blk.o blkpg.o genhd.o block_ioctl.o
@@ -33,6 +31,4 @@ obj-$(CONFIG_BLK_DEV_DAC960) += DAC960.o
obj-$(CONFIG_BLK_DEV_UMEM) += umem.o
obj-$(CONFIG_BLK_DEV_NBD) += nbd.o
-subdir-$(CONFIG_PARIDE) += paride
-
include $(TOPDIR)/Rules.make
diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile
index db1e9ec2770b..ada41c6689a4 100644
--- a/drivers/bluetooth/Makefile
+++ b/drivers/bluetooth/Makefile
@@ -2,21 +2,14 @@
# Makefile for Bluetooth HCI device drivers.
#
-O_TARGET := bluetooth.o
-
-list-multi := hci_uart.o
-
obj-$(CONFIG_BLUEZ_HCIUSB) += hci_usb.o
obj-$(CONFIG_BLUEZ_HCIVHCI) += hci_vhci.o
-
obj-$(CONFIG_BLUEZ_HCIUART) += hci_uart.o
-uart-y := hci_ldisc.o
-uart-$(CONFIG_BLUEZ_HCIUART_H4) += hci_h4.o
-
obj-$(CONFIG_BLUEZ_HCIDTL1) += dtl1_cs.o
obj-$(CONFIG_BLUEZ_HCIBLUECARD) += bluecard_cs.o
-include $(TOPDIR)/Rules.make
+hci_uart-y := hci_ldisc.o
+hci_uart-$(CONFIG_BLUEZ_HCIUART_H4) += hci_h4.o
+hci_uart-objs := $(hci_uart-y)
-hci_uart.o: $(uart-y)
- $(LD) -r -o $@ $(uart-y)
+include $(TOPDIR)/Rules.make
diff --git a/drivers/cdrom/Makefile b/drivers/cdrom/Makefile
index 21f402d49ef0..f7def1b920e9 100644
--- a/drivers/cdrom/Makefile
+++ b/drivers/cdrom/Makefile
@@ -3,9 +3,6 @@
# 30 Jan 1998, Michael Elizabeth Chastain, <mailto:mec@shout.net>
# Rewritten to use lists instead of if-statements.
-O_TARGET := driver.o
-
-
# All of the (potential) objects that export symbols.
# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
diff --git a/drivers/char/Makefile b/drivers/char/Makefile
index 2789d71fc9e5..c8e5ad622e56 100644
--- a/drivers/char/Makefile
+++ b/drivers/char/Makefile
@@ -7,8 +7,6 @@
#
FONTMAPFILE = cp437.uni
-O_TARGET := char.o
-
obj-y += mem.o tty_io.o n_tty.o tty_ioctl.o raw.o pty.o misc.o random.o
# All of the (potential) objects that export symbols.
diff --git a/drivers/hotplug/Makefile b/drivers/hotplug/Makefile
index eff79bdfd691..36ab600d125c 100644
--- a/drivers/hotplug/Makefile
+++ b/drivers/hotplug/Makefile
@@ -2,8 +2,6 @@
# Makefile for the Linux kernel pci hotplug controller drivers.
#
-O_TARGET := vmlinux-obj.o
-
export-objs := pci_hotplug_core.o pci_hotplug_util.o
obj-$(CONFIG_HOTPLUG_PCI) += pci_hotplug.o
diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index 5bd254afd23e..17545927964b 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -2,8 +2,6 @@
# Makefile for the kernel i2c bus driver.
#
-O_TARGET := i2c.o
-
export-objs := i2c-core.o i2c-algo-bit.o i2c-algo-pcf.o \
i2c-algo-ite.o i2c-proc.o
diff --git a/drivers/ide/Makefile b/drivers/ide/Makefile
index 74802f1c314a..4ebb6136e725 100644
--- a/drivers/ide/Makefile
+++ b/drivers/ide/Makefile
@@ -8,15 +8,9 @@
# In the future, some of these should be built conditionally.
#
-O_TARGET := idedriver.o
-
export-objs := ide-taskfile.o ide.o ide-features.o ide-probe.o quirks.o pcidma.o tcq.o \
atapi.o ataraid.o
-obj-y :=
-obj-m :=
-ide-obj-y :=
-
obj-$(CONFIG_BLK_DEV_HD) += hd.o
obj-$(CONFIG_BLK_DEV_IDE) += ide-mod.o
obj-$(CONFIG_BLK_DEV_IDECS) += ide-cs.o
diff --git a/drivers/ieee1394/Makefile b/drivers/ieee1394/Makefile
index b80c81a2d6d8..59d51d5e518e 100644
--- a/drivers/ieee1394/Makefile
+++ b/drivers/ieee1394/Makefile
@@ -2,8 +2,6 @@
# Makefile for the Linux IEEE 1394 implementation
#
-O_TARGET := ieee1394drv.o
-
export-objs := ieee1394_core.o ohci1394.o cmp.o
ieee1394-objs := ieee1394_core.o ieee1394_transactions.o hosts.o \
diff --git a/drivers/input/Makefile b/drivers/input/Makefile
index 688cca9800d3..90e158f6bd55 100644
--- a/drivers/input/Makefile
+++ b/drivers/input/Makefile
@@ -2,10 +2,6 @@
# Makefile for the input core drivers.
#
-# The target object and module list name.
-
-O_TARGET := inputdrv.o
-
# Objects that export symbols.
mod-subdirs := joystick
diff --git a/drivers/input/gameport/Makefile b/drivers/input/gameport/Makefile
index a15bcbbef2bb..60509253a031 100644
--- a/drivers/input/gameport/Makefile
+++ b/drivers/input/gameport/Makefile
@@ -2,10 +2,6 @@
# Makefile for the gameport drivers.
#
-# The target object and module list name.
-
-O_TARGET := gamedrv.o
-
# Objects that export symbols.
export-objs := gameport.o
diff --git a/drivers/input/serio/Makefile b/drivers/input/serio/Makefile
index 9287af0baf71..5865d9be9059 100644
--- a/drivers/input/serio/Makefile
+++ b/drivers/input/serio/Makefile
@@ -2,10 +2,6 @@
# Makefile for the input core drivers.
#
-# The target object and module list name.
-
-O_TARGET := seriodrv.o
-
# Objects that export symbols.
export-objs := serio.o
diff --git a/drivers/isdn/Makefile b/drivers/isdn/Makefile
index ef3362723579..b36f539adaca 100644
--- a/drivers/isdn/Makefile
+++ b/drivers/isdn/Makefile
@@ -1,9 +1,5 @@
# Makefile for the kernel ISDN subsystem and device drivers.
-# The target object and module list name.
-
-O_TARGET := vmlinux-obj.o
-
# Object files in subdirectories
mod-subdirs := i4l hisax capi eicon
diff --git a/drivers/macintosh/Makefile b/drivers/macintosh/Makefile
index 64287cc819a6..81e5c57c3a10 100644
--- a/drivers/macintosh/Makefile
+++ b/drivers/macintosh/Makefile
@@ -1,17 +1,6 @@
#
# Makefile for the Macintosh-specific device drivers.
#
-# 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 inherited from the
-# parent makes..
-#
-
-# The target object and module list name.
-
-O_TARGET := macintosh.o
# Objects that export symbols.
diff --git a/drivers/md/Makefile b/drivers/md/Makefile
index 61e60fa44735..31c60da45261 100644
--- a/drivers/md/Makefile
+++ b/drivers/md/Makefile
@@ -2,8 +2,6 @@
# Makefile for the kernel software RAID and LVM drivers.
#
-O_TARGET := mddev.o
-
export-objs := md.o xor.o
lvm-mod-objs := lvm.o lvm-snap.o lvm-fs.o
diff --git a/drivers/media/Makefile b/drivers/media/Makefile
index 4f89d208ad37..1d77df0d9cc2 100644
--- a/drivers/media/Makefile
+++ b/drivers/media/Makefile
@@ -1,18 +1,10 @@
#
# Makefile for the kernel multimedia device drivers.
#
-# 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 inherited from the
-# parent makes..
-#
subdir-y := video radio
mod-subdirs := video radio
-O_TARGET := media.o
obj-y := $(join $(subdir-y),$(subdir-y:%=/%.o))
include $(TOPDIR)/Rules.make
diff --git a/drivers/message/Makefile b/drivers/message/Makefile
index 74d1b201f052..743f5d1acab4 100644
--- a/drivers/message/Makefile
+++ b/drivers/message/Makefile
@@ -2,8 +2,6 @@
# Makefile for MPT based block devices
#
-O_TARGET := message.o
-
mod-subdirs := i2o fusion
obj-$(CONFIG_I2O) += i2o/
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index b77e846ef0aa..dc7ec8baee12 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -1,16 +1,5 @@
#
# Makefile for misc devices that really don't fit anywhere else.
#
-# 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 inherited from the
-# parent makes..
-#
-
-O_TARGET := misc.o
include $(TOPDIR)/Rules.make
-
-fastdep:
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile
index fb2a81aafddd..8788e41aa93b 100644
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
@@ -11,8 +11,6 @@ obj-m :=
obj-n :=
obj- :=
-O_TARGET := mtdlink.o
-
export-objs := mtdcore.o mtdpart.o redboot.o bootldr.o afs.o
mod-subdirs :=
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index b80a351ece9b..60cfc470da50 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -1,18 +1,10 @@
-# File: drivers/net/Makefile
#
# Makefile for the Linux network (ethercard) device drivers.
#
-obj-y :=
-obj-m :=
-obj-n :=
-obj- :=
-
mod-subdirs := appletalk arcnet fc irda tokenring tulip pcmcia wireless \
wan ../acorn/net
-O_TARGET := net.o
-
# All of the (potential) objects that export symbols.
# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
diff --git a/drivers/parport/Makefile b/drivers/parport/Makefile
index 33f94ed7b63f..f0d3a3b16925 100644
--- a/drivers/parport/Makefile
+++ b/drivers/parport/Makefile
@@ -1,15 +1,6 @@
#
# Makefile for the kernel Parallel port device drivers.
#
-# Note! Parport is the Borg. We have assimilated some other
-# drivers in the `char', `net' and `scsi' directories,
-# but left them there to allay suspicion.
-#
-# 7 October 2000, Bartlomiej Zolnierkiewicz <bkz@linux-ide.org>
-# Rewritten to use lists instead of if-statements.
-#
-
-O_TARGET := driver.o
export-objs := init.o parport_pc.o
diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile
index 39c30d5790d6..3752e54f42f0 100644
--- a/drivers/pci/Makefile
+++ b/drivers/pci/Makefile
@@ -1,15 +1,6 @@
#
# Makefile for the PCI bus specific drivers.
#
-# 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 definition is now inherited from the
-# parent makefile.
-#
-
-O_TARGET := driver.o
export-objs := access.o hotplug.o pci-driver.o pci.o pool.o probe.o proc.o search.o
diff --git a/drivers/pcmcia/Makefile b/drivers/pcmcia/Makefile
index 2dae24ccdcf3..a0ca2320a09d 100644
--- a/drivers/pcmcia/Makefile
+++ b/drivers/pcmcia/Makefile
@@ -2,8 +2,6 @@
# Makefile for the kernel pcmcia subsystem (c/o David Hinds)
#
-O_TARGET := pcmcia.o
-
export-objs := ds.o cs.o yenta.o pci_socket.o
obj-$(CONFIG_PCMCIA) += pcmcia_core.o ds.o
diff --git a/drivers/pnp/Makefile b/drivers/pnp/Makefile
index 84b49924f679..34c4129290dd 100644
--- a/drivers/pnp/Makefile
+++ b/drivers/pnp/Makefile
@@ -2,8 +2,6 @@
# Makefile for the kernel Plug-and-Play device drivers.
#
-O_TARGET := pnp.o
-
export-objs := isapnp.o pnpbios_core.o
isa-pnp-proc-$(CONFIG_PROC_FS) = isapnp_proc.o
diff --git a/drivers/sbus/Makefile b/drivers/sbus/Makefile
index c660b524777b..4e7dea663ab4 100644
--- a/drivers/sbus/Makefile
+++ b/drivers/sbus/Makefile
@@ -1,13 +1,7 @@
#
# 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 := sbus_all.o
ifneq ($(ARCH),m68k)
obj-y := sbus.o dvma.o
endif
diff --git a/drivers/scsi/Makefile b/drivers/scsi/Makefile
index 383debd24e99..7bb214700e8f 100644
--- a/drivers/scsi/Makefile
+++ b/drivers/scsi/Makefile
@@ -18,9 +18,6 @@ CFLAGS_aha152x.o = -DAHA152X_STAT -DAUTOCONF
CFLAGS_gdth.o = # -DDEBUG_GDTH=2 -D__SERIAL__ -D__COM2__ -DGDTH_STATISTICS
CFLAGS_seagate.o = -DARBITRATE -DPARITY -DSEAGATE_USE_ASM
-
-O_TARGET := scsidrv.o
-
export-objs := scsi_syms.o 53c700.o
mod-subdirs := pcmcia ../acorn/scsi
diff --git a/drivers/telephony/Makefile b/drivers/telephony/Makefile
index e8375c96fc60..daf236194204 100644
--- a/drivers/telephony/Makefile
+++ b/drivers/telephony/Makefile
@@ -1,22 +1,12 @@
#
# Makefile for drivers/telephony
#
-# 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).
-#
-obj-y :=
-obj-n :=
-obj-m :=
-obj- :=
export-objs := phonedev.o ixj.o
obj-$(CONFIG_PHONE) += phonedev.o
obj-$(CONFIG_PHONE_IXJ) += ixj.o
obj-$(CONFIG_PHONE_IXJ_PCMCIA) += ixj_pcmcia.o
-O_TARGET := telephony.o
-
include $(TOPDIR)/Rules.make
diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile
index c4549b871006..df1340c542ff 100644
--- a/drivers/usb/Makefile
+++ b/drivers/usb/Makefile
@@ -2,8 +2,6 @@
# Makefile for the kernel USB device drivers.
#
-O_TARGET := usbdrv.o
-
# Object files in subdirectories
mod-subdirs := serial
diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index c1bfd07409e6..4ae8ed9a16f9 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -2,8 +2,6 @@
# 5 Aug 1999, James Simmons, <mailto:jsimmons@users.sf.net>
# Rewritten to use lists instead of if-statements.
-O_TARGET := video.o
-
mod-subdirs := matrox
# All of the (potential) objects that export symbols.
diff --git a/drivers/zorro/Makefile b/drivers/zorro/Makefile
index f5a035c9b769..0e35d7b20cea 100644
--- a/drivers/zorro/Makefile
+++ b/drivers/zorro/Makefile
@@ -1,15 +1,6 @@
#
# Makefile for the Zorro bus specific drivers.
#
-# 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 definition is now inherited from the
-# parent makefile.
-#
-
-O_TARGET := driver.o
export-objs := zorro.o