diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-01-10 17:17:53 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-01-10 17:17:53 +0000 |
commit | b2ad5f821b1381492d792ca10b1eb7a107b48f14 (patch) | |
tree | 954a648692e7da983db1d2470953705f6a729264 /drivers/char/Makefile | |
parent | c9c06167e7933d93a6e396174c68abf242294abb (diff) |
Merge with Linux 2.4.0-prerelease. Big Makefile rewrite, test your
Makefiles.
Diffstat (limited to 'drivers/char/Makefile')
-rw-r--r-- | drivers/char/Makefile | 100 |
1 files changed, 10 insertions, 90 deletions
diff --git a/drivers/char/Makefile b/drivers/char/Makefile index 3001f35d0..25e5a36a9 100644 --- a/drivers/char/Makefile +++ b/drivers/char/Makefile @@ -9,28 +9,13 @@ # parent makes.. # -O_OBJS := -OX_OBJS := -M_OBJS := -MX_OBJS := - -# Object file lists. - -obj-y := -obj-m := -obj-n := -obj- := - -SUB_DIRS := -MOD_SUB_DIRS := $(SUB_DIRS) -ALL_SUB_DIRS := $(SUB_DIRS) ftape joystick pcmcia rio drm agp - # # This file contains the font map for the default (hardware) font # FONTMAPFILE = cp437.uni O_TARGET := char.o + obj-y += tty_io.o n_tty.o tty_ioctl.o mem.o raw.o pty.o misc.o random.o # All of the (potential) objects that export symbols. @@ -40,6 +25,8 @@ export-objs := busmouse.o console.o keyboard.o sysrq.o \ misc.o pty.o random.o selection.o serial.o \ tty_io.o +mod-subdirs := joystick ftape drm pcmcia + list-multi := KEYMAP =defkeymap.o @@ -142,13 +129,8 @@ obj-$(CONFIG_SERIAL167) += serial167.o obj-$(CONFIG_MVME162_SCC) += generic_serial.o vme_scc.o obj-$(CONFIG_BVME6000_SCC) += generic_serial.o vme_scc.o -ifeq ($(CONFIG_RIO),y) - SUB_DIRS += rio -else - ifeq ($(CONFIG_RIO),m) - MOD_SUB_DIRS += rio - endif -endif +subdir-$(CONFIG_RIO) += rio +subdir-$(CONFIG_INPUT) += joystick obj-$(CONFIG_ATIXL_BUSMOUSE) += atixlmouse.o obj-$(CONFIG_LOGIBUSMOUSE) += logibusmouse.o @@ -156,12 +138,6 @@ obj-$(CONFIG_PRINTER) += lp.o ifeq ($(CONFIG_INPUT),y) obj-y += joystick/js.o -SUB_DIRS += joystick -MOD_SUB_DIRS += joystick -else - ifeq ($(CONFIG_INPUT),m) - MOD_SUB_DIRS += joystick - endif endif obj-$(CONFIG_BUSMOUSE) += busmouse.o @@ -185,16 +161,13 @@ obj-$(CONFIG_INTEL_RNG) += i810_rng.o obj-$(CONFIG_QIC02_TAPE) += tpqic02.o +subdir-$(CONFIG_FTAPE) += ftape +subdir-$(CONFIG_DRM) += drm +subdir-$(CONFIG_PCMCIA) += pcmcia +subdir-$(CONFIG_AGP) += agp + ifeq ($(CONFIG_FTAPE),y) obj-y += ftape/ftape.o -SUB_DIRS += ftape -ifneq ($(CONFIG_ZFTAPE),n) -MOD_SUB_DIRS += ftape -endif -else - ifeq ($(CONFIG_FTAPE),m) - MOD_SUB_DIRS += ftape - endif endif obj-$(CONFIG_H8) += h8.o @@ -203,33 +176,6 @@ obj-$(CONFIG_DZ) += dz.o obj-$(CONFIG_NWBUTTON) += nwbutton.o obj-$(CONFIG_NWFLASH) += nwflash.o -ifeq ($(CONFIG_DRM),y) - SUB_DIRS += drm - MOD_SUB_DIRS += drm -else - ifeq ($(CONFIG_DRM),m) - MOD_SUB_DIRS += drm - endif -endif - -ifeq ($(CONFIG_PCMCIA),y) - SUB_DIRS += pcmcia - MOD_IN_SUB_DIRS += pcmcia -else - ifeq ($(CONFIG_PCMCIA),m) - MOD_IN_SUB_DIRS += pcmcia - endif -endif - -ifeq ($(CONFIG_AGP), y) - SUB_DIRS += agp - MOD_SUB_DIRS += agp -else - ifeq ($(CONFIG_AGP), m) - MOD_SUB_DIRS += agp - endif -endif - # Only one watchdog can succeed. We probe the hardware watchdog # drivers first, then the softdog driver. This means if your hardware # watchdog dies or is 'borrowed' for some reason the software watchdog @@ -247,32 +193,6 @@ obj-$(CONFIG_I810_TCO) += i810-tco.o obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o -# Extract lists of the multi-part drivers. -# The 'int-*' lists are the intermediate files used to build the multi's. - -multi-y := $(filter $(list-multi), $(obj-y)) -multi-m := $(filter $(list-multi), $(obj-m)) -int-y := $(sort $(foreach m, $(multi-y), $($(basename $(m))-objs))) -int-m := $(sort $(foreach m, $(multi-m), $($(basename $(m))-objs))) - -# Files that are both resident and modular: remove from modular. - -obj-m := $(filter-out $(obj-y), $(obj-m)) -int-m := $(filter-out $(int-y), $(int-m)) - -# Take multi-part drivers out of obj-y and put components in. - -obj-y := $(filter-out $(list-multi), $(obj-y)) $(int-y) - -# Translate to Rules.make lists. - -O_OBJS := $(filter-out $(export-objs), $(obj-y)) -OX_OBJS := $(filter $(export-objs), $(obj-y)) -M_OBJS := $(sort $(filter-out $(export-objs), $(obj-m))) -MX_OBJS := $(sort $(filter $(export-objs), $(obj-m))) -MI_OBJS := $(sort $(filter-out $(export-objs), $(int-m))) -MIX_OBJS := $(sort $(filter $(export-objs), $(int-m))) - include $(TOPDIR)/Rules.make fastdep: |