Jean-Christophe PLAGNIOL-VILLARD | e455866 | 2007-11-24 19:40:11 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2007 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Jean-Christophe PLAGNIOL-VILLARD | e455866 | 2007-11-24 19:40:11 +0100 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libusb_musb.o |
Jean-Christophe PLAGNIOL-VILLARD | e455866 | 2007-11-24 19:40:11 +0100 | [diff] [blame] | 11 | |
Thomas Abraham | a142896 | 2009-01-04 09:41:03 +0530 | [diff] [blame] | 12 | COBJS-$(CONFIG_MUSB_HCD) += musb_hcd.o musb_core.o |
Tom Rix | f298e4b | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 13 | COBJS-$(CONFIG_MUSB_UDC) += musb_udc.o musb_core.o |
Bryan Wu | e608f22 | 2009-12-16 22:04:02 -0500 | [diff] [blame] | 14 | COBJS-$(CONFIG_USB_BLACKFIN) += blackfin_usb.o |
Jean-Christophe PLAGNIOL-VILLARD | 2731b9a | 2009-04-03 12:46:58 +0200 | [diff] [blame] | 15 | COBJS-$(CONFIG_USB_DAVINCI) += davinci.o |
Tom Rix | f298e4b | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 16 | COBJS-$(CONFIG_USB_OMAP3) += omap3.o |
Ajay Kumar Gupta | 7359273 | 2009-12-22 10:56:13 +0530 | [diff] [blame] | 17 | COBJS-$(CONFIG_USB_DA8XX) += da8xx.o |
Ajay Kumar Gupta | dbea324 | 2010-07-09 11:43:48 +0530 | [diff] [blame] | 18 | COBJS-$(CONFIG_USB_AM35X) += am35x.o |
Jean-Christophe PLAGNIOL-VILLARD | e455866 | 2007-11-24 19:40:11 +0100 | [diff] [blame] | 19 | |
| 20 | COBJS := $(COBJS-y) |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 21 | SRCS := $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | e455866 | 2007-11-24 19:40:11 +0100 | [diff] [blame] | 23 | |
| 24 | all: $(LIB) |
| 25 | |
| 26 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 27 | $(call cmd_link_o_target, $(OBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | e455866 | 2007-11-24 19:40:11 +0100 | [diff] [blame] | 28 | |
| 29 | ######################################################################### |
| 30 | |
| 31 | # defines $(obj).depend target |
| 32 | include $(SRCTREE)/rules.mk |
| 33 | |
| 34 | sinclude $(obj).depend |
| 35 | |
| 36 | ######################################################################### |