- Kai Germaschewski: ISDN update (including Makefiles)
[davej-history.git] / drivers / usb / Makefile
blobc53a93b2635383b7d1960b16779fdd330fc5f2bc
2 # Makefile for the kernel USB device drivers.
5 # Subdirs.
7 # The target object and module list name.
9 O_TARGET := usbdrv.o
11 # Objects that export symbols.
13 export-objs := usb.o
15 # Multipart objects.
17 list-multi := usbcore.o
18 usbcore-objs := usb.o usb-debug.o hub.o
20 # Optional parts of multipart objects.
22 ifeq ($(CONFIG_USB_DEVICEFS),y)
23 usbcore-objs += devio.o inode.o drivers.o devices.o
24 endif
26 # Object file lists.
28 obj-y :=
29 obj-m :=
30 obj-n :=
31 obj- :=
33 # Each configuration option enables a list of files.
35 obj-$(CONFIG_USB) += usbcore.o
36 obj-$(CONFIG_USB_UHCI) += usb-uhci.o
37 obj-$(CONFIG_USB_UHCI_ALT) += uhci.o
38 obj-$(CONFIG_USB_OHCI) += usb-ohci.o
40 obj-$(CONFIG_USB_MOUSE) += usbmouse.o
41 obj-$(CONFIG_USB_HID) += hid.o
42 obj-$(CONFIG_USB_KBD) += usbkbd.o
43 obj-$(CONFIG_USB_WACOM) += wacom.o
45 obj-$(CONFIG_USB_SCANNER) += scanner.o
46 obj-$(CONFIG_USB_ACM) += acm.o
47 obj-$(CONFIG_USB_PRINTER) += printer.o
48 obj-$(CONFIG_USB_AUDIO) += audio.o
49 obj-$(CONFIG_USB_IBMCAM) += ibmcam.o
50 obj-$(CONFIG_USB_DC2XX) += dc2xx.o
51 obj-$(CONFIG_USB_MDC800) += mdc800.o
52 obj-$(CONFIG_USB_USS720) += uss720.o
53 obj-$(CONFIG_USB_DABUSB) += dabusb.o
54 obj-$(CONFIG_USB_PLUSB) += plusb.o
55 obj-$(CONFIG_USB_OV511) += ov511.o
56 obj-$(CONFIG_USB_PEGASUS) += pegasus.o
57 obj-$(CONFIG_USB_RIO500) += rio500.o
58 obj-$(CONFIG_USB_DSBR) += dsbr100.o
59 obj-$(CONFIG_USB_MICROTEK) += microtek.o
60 obj-$(CONFIG_USB_BLUETOOTH) += bluetooth.o
61 obj-$(CONFIG_USB_NET1080) += net1080.o
63 # Object files in subdirectories
65 subdir-$(CONFIG_USB_SERIAL) += serial
66 subdir-$(CONFIG_USB_STORAGE) += storage
68 ifeq ($(CONFIG_USB_SERIAL),y)
69 obj-y += serial/usb-serial.o
70 endif
72 ifeq ($(CONFIG_USB_STORAGE),y)
73 obj-y += storage/storage.o
74 endif
76 include $(TOPDIR)/Rules.make
78 # Link rules for multi-part drivers.
80 usbcore.o: $(usbcore-objs)
81 $(LD) -r -o $@ $(usbcore-objs)