patch-2.2.18 linux/drivers/char/Makefile
Next file: linux/drivers/char/README.computone
Previous file: linux/drivers/char/Config.in
Back to the patch index
Back to the overall index
- Lines: 720
- Date:
Thu Dec 7 14:53:44 2000
- Orig file:
v2.2.17/drivers/char/Makefile
- Orig date:
Sat Sep 9 18:42:34 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/char/Makefile linux/drivers/char/Makefile
@@ -11,21 +11,23 @@
SUB_DIRS :=
MOD_SUB_DIRS := $(SUB_DIRS)
-ALL_SUB_DIRS := $(SUB_DIRS) rio ftape joystick
+ALL_SUB_DIRS := $(SUB_DIRS) rio ftape hfmodem joystick agp drm
#
# This file contains the font map for the default (hardware) font
#
FONTMAPFILE = cp437.uni
-L_TARGET := char.a
+O_TARGET := char.o
M_OBJS :=
-L_OBJS := tty_io.o n_tty.o tty_ioctl.o mem.o random.o
-LX_OBJS := pty.o misc.o
+O_OBJS := tty_io.o n_tty.o tty_ioctl.o mem.o random.o
+OX_OBJS := pty.o misc.o
+obj-y :=
+obj-m :=
ifdef CONFIG_VT
-L_OBJS += vt.o vc_screen.o consolemap.o consolemap_deftbl.o
-LX_OBJS += console.o selection.o
+O_OBJS += vt.o vc_screen.o consolemap.o consolemap_deftbl.o
+OX_OBJS += console.o selection.o
endif
ifeq ($(CONFIG_SERIAL),y)
@@ -33,7 +35,7 @@
ifeq ($(CONFIG_SGI_SERIAL),)
ifeq ($(CONFIG_DECSTATION),)
ifeq ($(CONFIG_BAGET_MIPS),)
- LX_OBJS += serial.o
+ OX_OBJS += serial.o
endif
endif
endif
@@ -56,28 +58,28 @@
ifndef CONFIG_BAGET_MIPS
ifndef CONFIG_SUN_KEYBOARD
ifdef CONFIG_VT
-LX_OBJS += keyboard.o
-endif
+OX_OBJS += keyboard.o
ifneq ($(ARCH),m68k)
ifneq ($(ARCH),s390)
- L_OBJS += pc_keyb.o defkeymap.o
+ O_OBJS += pc_keyb.o defkeymap.o
endif
endif
+endif
else
ifdef CONFIG_PCI
-L_OBJS += defkeymap.o
-LX_OBJS += keyboard.o
+O_OBJS += defkeymap.o
+OX_OBJS += keyboard.o
endif
endif
ifdef CONFIG_MAGIC_SYSRQ
-LX_OBJS += sysrq.o
+OX_OBJS += sysrq.o
endif
endif
endif
ifeq ($(CONFIG_ATARI_DSP56K),y)
-L_OBJS += dsp56k.o
+O_OBJS += dsp56k.o
S = y
else
ifeq ($(CONFIG_ATARI_DSP56K),m)
@@ -87,7 +89,7 @@
endif
ifeq ($(CONFIG_ROCKETPORT),y)
-L_OBJS += rocket.o
+O_OBJS += rocket.o
else
ifeq ($(CONFIG_ROCKETPORT),m)
M_OBJS += rocket.o
@@ -95,7 +97,7 @@
endif
ifeq ($(CONFIG_MOXA_SMARTIO),y)
-L_OBJS += mxser.o
+O_OBJS += mxser.o
else
ifeq ($(CONFIG_MOXA_SMARTIO),m)
M_OBJS += mxser.o
@@ -103,7 +105,7 @@
endif
ifeq ($(CONFIG_MOXA_INTELLIO),y)
-L_OBJS += moxa.o
+O_OBJS += moxa.o
else
ifeq ($(CONFIG_MOXA_INTELLIO),m)
M_OBJS += moxa.o
@@ -111,7 +113,7 @@
endif
ifeq ($(CONFIG_DIGI),y)
-L_OBJS += pcxx.o
+O_OBJS += pcxx.o
else
ifeq ($(CONFIG_DIGI),m)
M_OBJS += pcxx.o
@@ -119,7 +121,7 @@
endif
ifeq ($(CONFIG_DIGIEPCA),y)
-L_OBJS += epca.o
+O_OBJS += epca.o
else
ifeq ($(CONFIG_DIGIEPCA),m)
M_OBJS += epca.o
@@ -127,7 +129,7 @@
endif
ifeq ($(CONFIG_CYCLADES),y)
-L_OBJS += cyclades.o
+O_OBJS += cyclades.o
else
ifeq ($(CONFIG_CYCLADES),m)
M_OBJS += cyclades.o
@@ -135,7 +137,7 @@
endif
ifeq ($(CONFIG_STALLION),y)
-L_OBJS += stallion.o
+O_OBJS += stallion.o
else
ifeq ($(CONFIG_STALLION),m)
M_OBJS += stallion.o
@@ -143,7 +145,7 @@
endif
ifeq ($(CONFIG_ISTALLION),y)
-L_OBJS += istallion.o
+O_OBJS += istallion.o
else
ifeq ($(CONFIG_ISTALLION),m)
M_OBJS += istallion.o
@@ -151,7 +153,7 @@
endif
ifeq ($(CONFIG_COMPUTONE),y)
-L_OBJS += ip2.o ip2main.o
+O_OBJS += ip2.o ip2main.o
else
ifeq ($(CONFIG_COMPUTONE),m)
M_OBJS += ip2.o ip2main.o
@@ -159,7 +161,7 @@
endif
ifeq ($(CONFIG_RISCOM8),y)
-L_OBJS += riscom8.o
+O_OBJS += riscom8.o
else
ifeq ($(CONFIG_RISCOM8),m)
M_OBJS += riscom8.o
@@ -167,7 +169,7 @@
endif
ifeq ($(CONFIG_ISI),y)
-L_OBJS += isicom.o
+O_OBJS += isicom.o
else
ifeq ($(CONFIG_ISI),m)
M_OBJS += isicom.o
@@ -175,7 +177,7 @@
endif
ifeq ($(CONFIG_ESPSERIAL),y)
-L_OBJS += esp.o
+O_OBJS += esp.o
else
ifeq ($(CONFIG_ESPSERIAL),m)
M_OBJS += esp.o
@@ -191,23 +193,17 @@
endif
ifeq ($(CONFIG_SPECIALIX),y)
-L_OBJS += specialix.o
+O_OBJS += specialix.o
else
ifeq ($(CONFIG_SPECIALIX),m)
M_OBJS += specialix.o
endif
endif
-ifeq ($(CONFIG_SX),y)
-L_OBJS += sx.o generic_serial.o
-else
- ifeq ($(CONFIG_SX),m)
- M_OBJS += sx.o generic_serial.o
- endif
-endif
+obj-$(CONFIG_SX) += sx.o generic_serial.o
ifeq ($(CONFIG_RIO),y)
-L_OBJS += rio/rio.o generic_serial.o
+O_OBJS += rio/rio.o generic_serial.o
SUB_DIRS += rio
MOD_SUB_DIRS += rio
else
@@ -218,7 +214,7 @@
endif
ifeq ($(CONFIG_ATIXL_BUSMOUSE),y)
-L_OBJS += atixlmouse.o
+O_OBJS += atixlmouse.o
else
ifeq ($(CONFIG_ATIXL_BUSMOUSE),m)
M_OBJS += atixlmouse.o
@@ -226,7 +222,7 @@
endif
ifeq ($(CONFIG_BUSMOUSE),y)
-L_OBJS += busmouse.o
+O_OBJS += busmouse.o
else
ifeq ($(CONFIG_BUSMOUSE),m)
M_OBJS += busmouse.o
@@ -234,7 +230,7 @@
endif
ifeq ($(CONFIG_PRINTER),y)
-L_OBJS += lp.o
+O_OBJS += lp.o
else
ifeq ($(CONFIG_PRINTER),m)
M_OBJS += lp.o
@@ -242,7 +238,7 @@
endif
ifeq ($(CONFIG_JOYSTICK),y)
-L_OBJS += joystick/js.o
+O_OBJS += joystick/js.o
SUB_DIRS += joystick
MOD_SUB_DIRS += joystick
else
@@ -252,7 +248,7 @@
endif
ifeq ($(CONFIG_DTLK),y)
-L_OBJS += dtlk.o
+O_OBJS += dtlk.o
else
ifeq ($(CONFIG_DTLK),m)
M_OBJS += dtlk.o
@@ -260,7 +256,7 @@
endif
ifeq ($(CONFIG_MS_BUSMOUSE),y)
-L_OBJS += msbusmouse.o
+O_OBJS += msbusmouse.o
else
ifeq ($(CONFIG_MS_BUSMOUSE),m)
M_OBJS += msbusmouse.o
@@ -268,7 +264,7 @@
endif
ifeq ($(CONFIG_82C710_MOUSE),y)
-L_OBJS += qpmouse.o
+O_OBJS += qpmouse.o
else
ifeq ($(CONFIG_82C710_MOUSE),m)
M_OBJS += qpmouse.o
@@ -276,7 +272,7 @@
endif
ifeq ($(CONFIG_SOFT_WATCHDOG),y)
-L_OBJS += softdog.o
+O_OBJS += softdog.o
else
ifeq ($(CONFIG_SOFT_WATCHDOG),m)
M_OBJS += softdog.o
@@ -284,7 +280,7 @@
endif
ifeq ($(CONFIG_PCWATCHDOG),y)
-L_OBJS += pcwd.o
+O_OBJS += pcwd.o
else
ifeq ($(CONFIG_PCWATCHDOG),m)
M_OBJS += pcwd.o
@@ -292,7 +288,7 @@
endif
ifeq ($(CONFIG_ACQUIRE_WDT),y)
-L_OBJS += acquirewdt.o
+O_OBJS += acquirewdt.o
else
ifeq ($(CONFIG_ACQUIRE_WDT),m)
M_OBJS += acquirewdt.o
@@ -300,7 +296,7 @@
endif
ifeq ($(CONFIG_60XX_WDT),y)
-L_OBJS += sbc60xxwdt.o
+O_OBJS += sbc60xxwdt.o
else
ifeq ($(CONFIG_60XX_WDT),m)
M_OBJS += sbc60xxwdt.o
@@ -308,7 +304,7 @@
endif
ifeq ($(CONFIG_MIXCOMWD),y)
-L_OBJS += mixcomwd.o
+O_OBJS += mixcomwd.o
else
ifeq ($(CONFIG_MIXCOMWD),m)
M_OBJS += mixcomwd.o
@@ -316,7 +312,7 @@
endif
ifeq ($(CONFIG_AMIGAMOUSE),y)
-L_OBJS += amigamouse.o
+O_OBJS += amigamouse.o
else
ifeq ($(CONFIG_AMIGAMOUSE),m)
M_OBJS += amigamouse.o
@@ -324,7 +320,7 @@
endif
ifeq ($(CONFIG_ATARIMOUSE),y)
-L_OBJS += atarimouse.o
+O_OBJS += atarimouse.o
else
ifeq ($(CONFIG_ATARIMOUSE),m)
M_OBJS += atarimouse.o
@@ -332,7 +328,7 @@
endif
ifeq ($(CONFIG_ADBMOUSE),y)
-L_OBJS += adbmouse.o
+O_OBJS += adbmouse.o
else
ifeq ($(CONFIG_ADBMOUSE),m)
M_OBJS += adbmouse.o
@@ -340,7 +336,7 @@
endif
ifeq ($(CONFIG_PC110_PAD),y)
-L_OBJS += pc110pad.o
+O_OBJS += pc110pad.o
else
ifeq ($(CONFIG_PC110_PAD),m)
M_OBJS += pc110pad.o
@@ -348,20 +344,28 @@
endif
ifeq ($(CONFIG_WDT),y)
-L_OBJS += wdt.o
+O_OBJS += wdt.o
else
ifeq ($(CONFIG_WDT),m)
M_OBJS += wdt.o
endif
endif
+ifeq ($(CONFIG_WDTPCI),y)
+O_OBJS += wdt_pci.o
+else
+ ifeq ($(CONFIG_WDTPCI),m)
+ M_OBJS += wdt_pci.o
+ endif
+endif
+
ifeq ($(CONFIG_RTC),y)
-L_OBJS += rtc.o
+O_OBJS += rtc.o
endif
ifeq ($(CONFIG_NVRAM),y)
ifeq ($(CONFIG_PPC),)
- L_OBJS += nvram.o
+ O_OBJS += nvram.o
endif
else
ifeq ($(CONFIG_NVRAM),m)
@@ -371,8 +375,35 @@
endif
endif
+ifeq ($(CONFIG_AGP),y)
+O_OBJS += agp/agp.o
+SUB_DIRS += agp
+else
+ ifeq ($(CONFIG_AGP),m)
+ MOD_SUB_DIRS += agp
+ endif
+endif
+
+ifeq ($(CONFIG_DRM),y)
+O_OBJS += drm/drm.o
+MOD_SUB_DIRS += drm
+SUB_DIRS += drm
+else
+ ifeq ($(CONFIG_DRM),m)
+ MOD_SUB_DIRS += drm
+ endif
+endif
+
+ifeq ($(CONFIG_INTEL_RNG),y)
+O_OBJS += i810_rng.o
+else
+ ifeq ($(CONFIG_INTEL_RNG),m)
+ M_OBJS += i810_rng.o
+ endif
+endif
+
ifeq ($(CONFIG_VIDEO_DEV),y)
-LX_OBJS += videodev.o
+OX_OBJS += videodev.o
else
ifeq ($(CONFIG_VIDEO_DEV),m)
MX_OBJS += videodev.o
@@ -388,7 +419,7 @@
endif
ifeq ($(CONFIG_VIDEO_BT848),y)
-L_OBJS += bttv.o tuner.o
+O_OBJS += bttv.o tuner.o
L_I2C=y
else
ifeq ($(CONFIG_VIDEO_BT848),m)
@@ -398,7 +429,7 @@
endif
ifeq ($(CONFIG_VIDEO_MSP3400),y)
-L_OBJS += msp3400.o
+O_OBJS += msp3400.o
L_I2C=y
else
ifeq ($(CONFIG_VIDEO_MSP3400),m)
@@ -408,7 +439,7 @@
endif
ifeq ($(CONFIG_VIDEO_SAA5249),y)
-L_OBJS += saa5249.o
+O_OBJS += saa5249.o
L_I2C=y
else
ifeq ($(CONFIG_VIDEO_SAA5249),m)
@@ -418,7 +449,7 @@
endif
ifeq ($(CONFIG_VIDEO_BWQCAM),y)
-L_OBJS += bw-qcam.o
+O_OBJS += bw-qcam.o
else
ifeq ($(CONFIG_VIDEO_BWQCAM),m)
M_OBJS += bw-qcam.o
@@ -426,7 +457,7 @@
endif
ifeq ($(CONFIG_VIDEO_CQCAM),y)
-L_OBJS += c-qcam.o
+O_OBJS += c-qcam.o
else
ifeq ($(CONFIG_VIDEO_CQCAM),m)
M_OBJS += c-qcam.o
@@ -434,7 +465,7 @@
endif
ifeq ($(CONFIG_VIDEO_ZORAN),y)
-L_OBJS += buz.o
+O_OBJS += buz.o
L_I2C=y
else
ifeq ($(CONFIG_VIDEO_ZORAN),m)
@@ -444,7 +475,7 @@
endif
ifeq ($(CONFIG_VIDEO_LML33),y)
-L_OBJS += bt856.o bt819.o
+O_OBJS += bt856.o bt819.o
else
ifeq ($(CONFIG_VIDEO_LML33),m)
M_OBJS += bt856.o bt819.o
@@ -452,7 +483,7 @@
endif
ifeq ($(CONFIG_VIDEO_BUZ),y)
-L_OBJS += saa7111.o saa7185.o
+O_OBJS += saa7111.o saa7185.o
else
ifeq ($(CONFIG_VIDEO_BUZ),m)
M_OBJS += saa7111.o saa7185.o
@@ -460,7 +491,7 @@
endif
ifeq ($(CONFIG_VIDEO_PMS),y)
-L_OBJS += pms.o
+O_OBJS += pms.o
else
ifeq ($(CONFIG_VIDEO_PMS),m)
M_OBJS += pms.o
@@ -468,7 +499,7 @@
endif
ifeq ($(CONFIG_VIDEO_PLANB),y)
-L_OBJS += planb.o
+O_OBJS += planb.o
else
ifeq ($(CONFIG_VIDEO_PLANB),m)
M_OBJS += planb.o
@@ -476,7 +507,7 @@
endif
ifeq ($(CONFIG_VIDEO_VINO),y)
-L_OBJS += vino.o
+O_OBJS += vino.o
else
ifeq ($(CONFIG_VIDEO_VINO),m)
M_OBJS += vino.o
@@ -484,7 +515,7 @@
endif
ifeq ($(CONFIG_VIDEO_CPIA),y)
-LX_OBJS += cpia.o
+OX_OBJS += cpia.o
else
ifeq ($(CONFIG_VIDEO_CPIA),m)
MX_OBJS += cpia.o
@@ -492,15 +523,23 @@
endif
ifeq ($(CONFIG_VIDEO_CPIA_PP),y)
-L_OBJS += cpia_pp.o
+O_OBJS += cpia_pp.o
else
ifeq ($(CONFIG_VIDEO_CPIA_PP),m)
M_OBJS += cpia_pp.o
endif
endif
+ifeq ($(CONFIG_VIDEO_CPIA_USB),y)
+O_OBJS += cpia_usb.o
+else
+ ifeq ($(CONFIG_VIDEO_CPIA_USB),m)
+ M_OBJS += cpia_usb.o
+ endif
+endif
+
ifeq ($(CONFIG_RADIO_AZTECH),y)
-L_OBJS += radio-aztech.o
+O_OBJS += radio-aztech.o
else
ifeq ($(CONFIG_RADIO_AZTECH),m)
M_OBJS += radio-aztech.o
@@ -508,7 +547,7 @@
endif
ifeq ($(CONFIG_RADIO_SF16FMI),y)
-L_OBJS += radio-sf16fmi.o
+O_OBJS += radio-sf16fmi.o
else
ifeq ($(CONFIG_RADIO_SF16FMI),m)
M_OBJS += radio-sf16fmi.o
@@ -516,7 +555,7 @@
endif
ifeq ($(CONFIG_RADIO_RTRACK),y)
-L_OBJS += radio-aimslab.o
+O_OBJS += radio-aimslab.o
else
ifeq ($(CONFIG_RADIO_RTRACK),m)
M_OBJS += radio-aimslab.o
@@ -524,7 +563,7 @@
endif
ifeq ($(CONFIG_RADIO_RTRACK2),y)
-L_OBJS += radio-rtrack2.o
+O_OBJS += radio-rtrack2.o
else
ifeq ($(CONFIG_RADIO_RTRACK2),m)
M_OBJS += radio-rtrack2.o
@@ -532,7 +571,7 @@
endif
ifeq ($(CONFIG_RADIO_TYPHOON),y)
-L_OBJS += radio-typhoon.o
+O_OBJS += radio-typhoon.o
else
ifeq ($(CONFIG_RADIO_TYPHOON),m)
M_OBJS += radio-typhoon.o
@@ -540,7 +579,7 @@
endif
ifeq ($(CONFIG_RADIO_ZOLTRIX),y)
-L_OBJS += radio-zoltrix.o
+O_OBJS += radio-zoltrix.o
else
ifeq ($(CONFIG_RADIO_ZOLTRIX),m)
M_OBJS += radio-zoltrix.o
@@ -548,7 +587,7 @@
endif
ifeq ($(CONFIG_RADIO_CADET),y)
-L_OBJS += radio-cadet.o
+O_OBJS += radio-cadet.o
else
ifeq ($(CONFIG_RADIO_CADET),m)
M_OBJS += radio-cadet.o
@@ -556,15 +595,23 @@
endif
ifeq ($(CONFIG_RADIO_MIROPCM20),y)
-L_OBJS += radio-miropcm20.o
+O_OBJS += radio-miropcm20.o
else
ifeq ($(CONFIG_RADIO_MIROPCM20),m)
M_OBJS += radio-miropcm20.o
endif
endif
+ifeq ($(CONFIG_RADIO_MAESTRO),y)
+O_OBJS += radio-maestro.o
+else
+ ifeq ($(CONFIG_RADIO_MAESTRO),m)
+ M_OBJS += radio-maestro.o
+ endif
+endif
+
ifeq ($(CONFIG_RADIO_GEMTEK),y)
-L_OBJS += radio-gemtek.o
+O_OBJS += radio-gemtek.o
else
ifeq ($(CONFIG_RADIO_GEMTEK),m)
M_OBJS += radio-gemtek.o
@@ -572,7 +619,7 @@
endif
ifeq ($(CONFIG_RADIO_TRUST),y)
-L_OBJS += radio-trust.o
+O_OBJS += radio-trust.o
else
ifeq ($(CONFIG_RADIO_TRUST),m)
M_OBJS += radio-trust.o
@@ -580,7 +627,7 @@
endif
ifeq ($(CONFIG_QIC02_TAPE),y)
-L_OBJS += tpqic02.o
+O_OBJS += tpqic02.o
else
ifeq ($(CONFIG_QIC02_TAPE),m)
M_OBJS += tpqic02.o
@@ -588,7 +635,7 @@
endif
ifeq ($(CONFIG_FTAPE),y)
-L_OBJS += ftape/ftape.o
+O_OBJS += ftape/ftape.o
SUB_DIRS += ftape
ifneq ($(CONFIG_ZFTAPE),n)
MOD_SUB_DIRS += ftape
@@ -600,11 +647,11 @@
endif
ifdef CONFIG_H8
-LX_OBJS += h8.o
+OX_OBJS += h8.o
endif
ifeq ($(L_I2C),y)
-LX_OBJS += i2c.o
+OX_OBJS += i2c.o
else
ifeq ($(M_I2C),y)
MX_OBJS += i2c.o
@@ -613,29 +660,35 @@
ifeq ($(CONFIG_HFMODEM),y)
-ALL_SUB_DIRS += hfmodem
SUB_DIRS += hfmodem
-L_OBJS += hfmodem/hfmodem.o
+O_OBJS += hfmodem/hfmodem.o
else
ifeq ($(CONFIG_HFMODEM),m)
- ALL_SUB_DIRS += hfmodem
MOD_SUB_DIRS += hfmodem
endif
-
endif
ifeq ($(CONFIG_DZ),y)
- L_OBJS += dz.o
+ O_OBJS += dz.o
endif
ifeq ($(CONFIG_TOSHIBA),y)
-L_OBJS += toshiba.o
+O_OBJS += toshiba.o
else
ifeq ($(CONFIG_TOSHIBA),m)
M_OBJS += toshiba.o
endif
endif
+
+# remove objects from modular that are also built in
+obj-m := $(filter-out $(obj-y), $(obj-m))
+
+# Translate to Rules.make lists.
+
+O_OBJS += $(filter-out $(export-objs), $(obj-y))
+OX_OBJS += $(filter $(export-objs), $(obj-y))
+M_OBJS += $(sort $(filter $(module-list), $(obj-m)))
include $(TOPDIR)/Rules.make
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)