2 # Makefile for the kernel usb device drivers.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definitions are now inherited from the
12 MOD_SUB_DIRS
:= $(SUB_DIRS
)
13 ALL_SUB_DIRS
:= $(SUB_DIRS
)
18 MOD_LIST_NAME
:= USB_MODULES
20 ifeq ($(CONFIG_USB
),y
)
22 ifeq ($(CONFIG_USB_PROC
),y
)
26 ifeq ($(CONFIG_USB
),m
)
28 MIX_OBJS
+= usb.o usb-debug.o usb-core.o
29 ifeq ($(CONFIG_USB_PROC
),y
)
30 MIX_OBJS
+= proc_usb.o
34 ifeq ($(CONFIG_USB_UHCI
),y
)
35 L_OBJS
+= uhci.o uhci-debug.o
38 ifeq ($(CONFIG_USB_UHCI
),m
)
40 MIX_OBJS
+= uhci.o uhci-debug.o
43 ifeq ($(CONFIG_USB_OHCI
),y
)
44 L_OBJS
+= ohci.o ohci-debug.o
46 ifeq ($(CONFIG_USB_OHCI
),m
)
48 MIX_OBJS
+= ohci.o ohci-debug.o
51 ifeq ($(CONFIG_USB_OHCI_HCD
),y
)
52 L_OBJS
+= ohci-hcd.o ohci-root-hub.o
54 ifeq ($(CONFIG_USB_OHCI_HCD
),m
)
55 M_OBJS
+= usb-ohci-hcd.o
56 MIX_OBJS
+= ohci-hcd.o ohci-root-hub.o
59 ifeq ($(CONFIG_USB_MOUSE
),y
)
62 ifeq ($(CONFIG_USB_MOUSE
),m
)
67 ifeq ($(CONFIG_USB_HP_SCANNER
),y
)
68 L_OBJS
+= hp_scanner.o
70 ifeq ($(CONFIG_USB_HP_SCANNER
),m
)
72 MIX_OBJS
+=hp_scanner.o
75 ifeq ($(CONFIG_USB_HUB
),y
)
78 ifeq ($(CONFIG_USB_HUB
),m
)
83 ifeq ($(CONFIG_USB_ACM
),y
)
86 ifeq ($(CONFIG_USB_ACM
),m
)
91 ifeq ($(CONFIG_USB_PRINTER
),y
)
95 ifeq ($(CONFIG_USB_PRINTER
),m
)
100 ifeq ($(CONFIG_USB_SERIAL
),y
)
101 L_OBJS
+= usb-serial.o
104 ifeq ($(CONFIG_USB_SERIAL
),m
)
105 M_OBJS
+= usb-serial.o
106 MIX_OBJS
+= usb-serial.o
109 ifneq ($(CONFIG_ADB_KEYBOARD
),y
)
115 ifeq ($(CONFIG_USB_KBD
),y
)
116 L_OBJS
+= keyboard.o
$(KEYMAP
).o
119 ifeq ($(CONFIG_USB_KBD
),m
)
120 M_OBJS
+= usb-keyboard.o
121 MIX_OBJS
+= keyboard.o
$(KEYMAP
).o
124 ifeq ($(CONFIG_USB_AUDIO
),y
)
128 ifeq ($(CONFIG_USB_AUDIO
),m
)
133 ifeq ($(CONFIG_USB_CPIA
),y
)
137 ifeq ($(CONFIG_USB_CPIA
),m
)
142 ifeq ($(CONFIG_USB_SCSI
),y
)
144 ifeq ($(CONFIG_USB_SCSI_DEBUG
),y
)
145 L_OBJS
+= usb_scsi_debug.o
149 ifeq ($(CONFIG_USB_SCSI
),m
)
151 MIX_OBJS
+= usb_scsi.o
152 ifeq ($(CONFIG_USB_SCSI_DEBUG
),y
)
153 MIX_OBJS
+= usb_scsi_debug.o
157 ifeq ($(CONFIG_USB_EZUSB
),y
)
161 ifeq ($(CONFIG_USB_EZUSB
),m
)
166 ifeq ($(CONFIG_USB_USS720
),y
)
170 ifeq ($(CONFIG_USB_USS720
),m
)
175 include $(TOPDIR
)/Rules.make
179 keymap.c
: maps
/serial.map maps
/usb.map maps
/fixup.map
182 keymap-mac.o
: keymap-mac.c
183 keymap-mac.c
: maps
/mac.map maps
/usb.map
186 usb-keyboard.o
: $(KEYMAP
).o keyboard.o
187 $(LD
) $(LD_RFLAG
) -r
-o
$@
$(KEYMAP
).o keyboard.o
189 ifeq ($(CONFIG_USB_SCSI_DEBUG
),y
)
190 usb-scsi.o
: usb_scsi.o usb_scsi_debug.o
191 $(LD
) $(LD_RFLAG
) -r
-o
$@ usb_scsi.o usb_scsi_debug.o
193 usb-scsi.o
: usb_scsi.o
194 $(LD
) $(LD_RFLAG
) -r
-o
$@ usb_scsi.o
197 usb-uhci.o
: uhci.o uhci-debug.o
198 $(LD
) $(LD_RFLAG
) -r
-o
$@ uhci.o uhci-debug.o
200 usb-ohci.o
: ohci.o ohci-debug.o
201 $(LD
) $(LD_RFLAG
) -r
-o
$@ ohci.o ohci-debug.o
203 usb-ohci-hcd.o
: ohci-hcd.o ohci-root-hub.o
204 $(LD
) $(LD_RFLAG
) -r
-o
$@ ohci-hcd.o ohci-root-hub.o
206 ifeq ($(CONFIG_USB_PROC
),y
)
207 usbcore.o
: usb.o usb-debug.o usb-core.o proc_usb.o
208 $(LD
) $(LD_RFLAG
) -r
-o
$@ usb.o usb-debug.o usb-core.o proc_usb.o
210 usbcore.o
: usb.o usb-debug.o usb-core.o
211 $(LD
) $(LD_RFLAG
) -r
-o
$@ usb.o usb-debug.o usb-core.o