]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - drivers/usb/gadget/Makefile
merged kc master branch
[karo-tx-uboot.git] / drivers / usb / gadget / Makefile
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
8 include $(TOPDIR)/config.mk
9
10 LIB     := $(obj)libusb_gadget.o
11
12 # if defined(CONFIG_USB_GADGET) || defined(CONFIG_USB_ETHER)
13 #   Everytime you forget how crufty makefiles can get things like
14 #   this remind you...
15 ifneq (,$(CONFIG_USB_GADGET)$(CONFIG_USB_ETHER))
16 COBJS-y += epautoconf.o config.o usbstring.o
17 endif
18
19 # new USB gadget layer dependencies
20 ifdef CONFIG_USB_GADGET
21 COBJS-$(CONFIG_USB_GADGET_S3C_UDC_OTG) += s3c_udc_otg.o
22 COBJS-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
23 COBJS-$(CONFIG_USBDOWNLOAD_GADGET) += g_dnl.o
24 COBJS-$(CONFIG_DFU_FUNCTION) += f_dfu.o
25 endif
26 ifdef CONFIG_USB_ETHER
27 COBJS-y += ether.o
28 COBJS-$(CONFIG_USB_ETH_RNDIS) += rndis.o
29 COBJS-$(CONFIG_MV_UDC)  += mv_udc.o
30 COBJS-$(CONFIG_CPU_PXA25X) += pxa25x_udc.o
31 else
32 # Devices not related to the new gadget layer depend on CONFIG_USB_DEVICE
33 ifdef CONFIG_USB_DEVICE
34 COBJS-y += core.o
35 COBJS-y += ep0.o
36 COBJS-$(CONFIG_DW_UDC) += designware_udc.o
37 COBJS-$(CONFIG_OMAP1510) += omap1510_udc.o
38 COBJS-$(CONFIG_OMAP1610) += omap1510_udc.o
39 COBJS-$(CONFIG_MPC885_FAMILY) += mpc8xx_udc.o
40 COBJS-$(CONFIG_CPU_PXA27X) += pxa27x_udc.o
41 endif
42 endif
43
44 COBJS   := $(COBJS-y)
45 SRCS    := $(COBJS:.o=.c)
46 OBJS    := $(addprefix $(obj),$(COBJS))
47
48 all:    $(LIB)
49
50 $(LIB): $(obj).depend $(OBJS)
51         $(call cmd_link_o_target, $(OBJS))
52
53 #########################################################################
54
55 # defines $(obj).depend target
56 include $(SRCTREE)/rules.mk
57
58 sinclude $(obj).depend
59
60 #########################################################################