special usb hub handling, IDE disks, and retries all over the place
[linux-2.4.git] / drivers / usb / gadget / Makefile
1 #
2 # Makefile for USB peripheral controller and gadget drivers
3 # for kbuild 2.4
4 #
5
6 # for static linking
7 O_TARGET        := built-in.o
8
9 list-multi                      := g_zero.o g_ether.o g_file_storage.o
10
11 obj-$(CONFIG_USB_NET2280)       += net2280.o
12 obj-$(CONFIG_USB_GOKU)          += goku_udc.o
13
14 # only one of these may be statically linked ...
15 controller-$(CONFIG_USB_NET2280)        += net2280.o
16 controller-$(CONFIG_USB_GOKU)           += goku_udc.o
17
18 # ... and only one of these, too; kbuild/kconfig don't help though.
19 g_zero-objs                     := zero.o usbstring.o config.o epautoconf.o
20 obj-$(CONFIG_USB_ZERO)          += g_zero.o
21
22 g_ether-objs                    := ether.o usbstring.o config.o epautoconf.o
23 ifeq ($(CONFIG_USB_ETH_RNDIS),y)
24         g_ether-objs            += rndis.o
25 endif
26 obj-$(CONFIG_USB_ETH)           += g_ether.o
27
28 g_file_storage-objs             := file_storage.o usbstring.o config.o \
29                                                 epautoconf.o
30 obj-$(CONFIG_USB_FILE_STORAGE)  += g_file_storage.o
31
32 export-objs :=                  $(controller-y) $(controller-m)
33
34 include $(TOPDIR)/Rules.make
35
36 g_zero.o: $(g_zero-objs)
37         $(LD) -r -o $@ $(g_zero-objs)
38 g_ether.o: $(g_ether-objs)
39         $(LD) -r -o $@ $(g_ether-objs)
40 g_file_storage.o: $(g_file_storage-objs)
41         $(LD) -r -o $@ $(g_file_storage-objs)