patch-2.3.12 linux/drivers/usb/Makefile

Next file: linux/drivers/usb/cpia.c
Previous file: linux/drivers/usb/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.11/linux/drivers/usb/Makefile linux/drivers/usb/Makefile
@@ -22,6 +22,9 @@
 ifeq ($(CONFIG_USB),m)
   M_OBJS +=usbcore.o
   MIX_OBJS +=usb.o usb-debug.o usb-core.o
+  ifeq ($(CONFIG_USB_PROC),y)
+    MIX_OBJS += proc_usb.o
+  endif
 endif
 
 ifeq ($(CONFIG_USB_UHCI),y)
@@ -153,7 +156,10 @@
 usb-ohci-hcd.o: ohci-hcd.o ohci-root-hub.o 
 	$(LD) $(LD_RFLAG) -r -o $@ ohci-hcd.o ohci-root-hub.o 
        
+ifeq ($(CONFIG_USB_PROC),y)
+usbcore.o: usb.o usb-debug.o usb-core.o proc_usb.o
+	$(LD) $(LD_RFLAG) -r -o $@ usb.o usb-debug.o usb-core.o proc_usb.o
+else
 usbcore.o: usb.o usb-debug.o usb-core.o
 	$(LD) $(LD_RFLAG) -r -o $@ usb.o usb-debug.o usb-core.o
-
-       
+endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)