patch-2.4.21 linux-2.4.21/drivers/usb/host/Makefile

Next file: linux-2.4.21/drivers/usb/host/ehci-dbg.c
Previous file: linux-2.4.21/drivers/usb/host/Config.in
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/usb/host/Makefile linux-2.4.21/drivers/usb/host/Makefile
@@ -0,0 +1,28 @@
+#
+# Makefile for USB Host Controller Driver
+# framework and drivers
+#
+
+O_TARGET	:=
+
+obj-$(CONFIG_USB_EHCI_HCD)			+= ehci-hcd.o
+obj-$(CONFIG_USB_UHCI_ALT)			+= uhci.o
+obj-$(CONFIG_USB_UHCI)				+= usb-uhci.o
+obj-$(CONFIG_USB_OHCI)				+= usb-ohci.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)))
+
+# 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.
+OX_OBJS		:= $(obj-y)
+MX_OBJS		:= $(obj-m)
+MIX_OBJS	:= $(int-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)