1# 2# (C) Copyright 2000-2007 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7 8include $(TOPDIR)/config.mk 9 10LIB := $(obj)libusb_musb.o 11 12COBJS-$(CONFIG_MUSB_HCD) += musb_hcd.o musb_core.o 13COBJS-$(CONFIG_MUSB_UDC) += musb_udc.o musb_core.o 14COBJS-$(CONFIG_USB_BLACKFIN) += blackfin_usb.o 15COBJS-$(CONFIG_USB_DAVINCI) += davinci.o 16COBJS-$(CONFIG_USB_OMAP3) += omap3.o 17COBJS-$(CONFIG_USB_DA8XX) += da8xx.o 18COBJS-$(CONFIG_USB_AM35X) += am35x.o 19 20COBJS := $(COBJS-y) 21SRCS := $(COBJS:.o=.c) 22OBJS := $(addprefix $(obj),$(COBJS)) 23 24all: $(LIB) 25 26$(LIB): $(obj).depend $(OBJS) 27 $(call cmd_link_o_target, $(OBJS)) 28 29######################################################################### 30 31# defines $(obj).depend target 32include $(SRCTREE)/rules.mk 33 34sinclude $(obj).depend 35 36######################################################################### 37