1# 2# Makefile for USB Host Controller Driver 3# framework and drivers 4# 5 6O_TARGET := 7 8obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o 9obj-$(CONFIG_USB_UHCI_ALT) += uhci.o 10obj-$(CONFIG_USB_UHCI) += usb-uhci.o 11obj-$(CONFIG_USB_OHCI) += usb-ohci.o 12obj-$(CONFIG_USB_SL811HS_ALT) += sl811.o 13obj-$(CONFIG_USB_SL811HS) += hc_sl811.o 14 15# Extract lists of the multi-part drivers. 16# The 'int-*' lists are the intermediate files used to build the multi's. 17multi-y := $(filter $(list-multi), $(obj-y)) 18multi-m := $(filter $(list-multi), $(obj-m)) 19int-y := $(sort $(foreach m, $(multi-y), $($(basename $(m))-objs))) 20int-m := $(sort $(foreach m, $(multi-m), $($(basename $(m))-objs))) 21 22# Take multi-part drivers out of obj-y and put components in. 23obj-y := $(filter-out $(list-multi), $(obj-y)) $(int-y) 24 25# Translate to Rules.make lists. 26OX_OBJS := $(obj-y) 27MX_OBJS := $(obj-m) 28MIX_OBJS := $(int-m) 29 30include $(TOPDIR)/Rules.make 31