xref: /openbmc/u-boot/drivers/usb/gadget/Makefile (revision a04983d6)
12731b9a8SJean-Christophe PLAGNIOL-VILLARD#
22731b9a8SJean-Christophe PLAGNIOL-VILLARD# (C) Copyright 2000-2007
32731b9a8SJean-Christophe PLAGNIOL-VILLARD# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
42731b9a8SJean-Christophe PLAGNIOL-VILLARD#
52731b9a8SJean-Christophe PLAGNIOL-VILLARD# See file CREDITS for list of people who contributed to this
62731b9a8SJean-Christophe PLAGNIOL-VILLARD# project.
72731b9a8SJean-Christophe PLAGNIOL-VILLARD#
82731b9a8SJean-Christophe PLAGNIOL-VILLARD# This program is free software; you can redistribute it and/or
92731b9a8SJean-Christophe PLAGNIOL-VILLARD# modify it under the terms of the GNU General Public License as
102731b9a8SJean-Christophe PLAGNIOL-VILLARD# published by the Free Software Foundation; either version 2 of
112731b9a8SJean-Christophe PLAGNIOL-VILLARD# the License, or (at your option) any later version.
122731b9a8SJean-Christophe PLAGNIOL-VILLARD#
132731b9a8SJean-Christophe PLAGNIOL-VILLARD# This program is distributed in the hope that it will be useful,
142731b9a8SJean-Christophe PLAGNIOL-VILLARD# but WITHOUT ANY WARRANTY; without even the implied warranty of
152731b9a8SJean-Christophe PLAGNIOL-VILLARD# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
162731b9a8SJean-Christophe PLAGNIOL-VILLARD# GNU General Public License for more details.
172731b9a8SJean-Christophe PLAGNIOL-VILLARD#
182731b9a8SJean-Christophe PLAGNIOL-VILLARD# You should have received a copy of the GNU General Public License
192731b9a8SJean-Christophe PLAGNIOL-VILLARD# along with this program; if not, write to the Free Software
202731b9a8SJean-Christophe PLAGNIOL-VILLARD# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
212731b9a8SJean-Christophe PLAGNIOL-VILLARD# MA 02111-1307 USA
222731b9a8SJean-Christophe PLAGNIOL-VILLARD#
232731b9a8SJean-Christophe PLAGNIOL-VILLARD
242731b9a8SJean-Christophe PLAGNIOL-VILLARDinclude $(TOPDIR)/config.mk
252731b9a8SJean-Christophe PLAGNIOL-VILLARD
266d8962e8SSebastien CarlierLIB	:= $(obj)libusb_gadget.o
272731b9a8SJean-Christophe PLAGNIOL-VILLARD
28*a04983d6SPantelis Antoniou# if defined(CONFIG_USB_GADGET) || defined(CONFIG_USB_ETHER)
29*a04983d6SPantelis Antoniou#   Everytime you forget how crufty makefiles can get things like
30*a04983d6SPantelis Antoniou#   this remind you...
31*a04983d6SPantelis Antoniouifneq (,$(CONFIG_USB_GADGET)$(CONFIG_USB_ETHER))
32*a04983d6SPantelis AntoniouCOBJS-y += epautoconf.o config.o usbstring.o
33*a04983d6SPantelis Antoniouendif
34*a04983d6SPantelis Antoniou
357b2f3906SVitaly Kuzmichev# new USB gadget layer dependencies
3638517a78SLukasz Majewskiifdef CONFIG_USB_GADGET
3738517a78SLukasz MajewskiCOBJS-$(CONFIG_USB_GADGET_S3C_UDC_OTG) += s3c_udc_otg.o
381d4a0b6cSLukasz MajewskiCOBJS-$(CONFIG_USBDOWNLOAD_GADGET) += g_dnl.o
39b819ddbfSLukasz MajewskiCOBJS-$(CONFIG_DFU_FUNCTION) += f_dfu.o
4038517a78SLukasz Majewskiendif
417b2f3906SVitaly Kuzmichevifdef CONFIG_USB_ETHER
42*a04983d6SPantelis AntoniouCOBJS-y += ether.o
437612a43dSVitaly KuzmichevCOBJS-$(CONFIG_USB_ETH_RNDIS) += rndis.o
4426cc5129SLei WenCOBJS-$(CONFIG_MV_UDC)	+= mv_udc.o
453c09a283SLukasz DalekCOBJS-$(CONFIG_CPU_PXA25X) += pxa25x_udc.o
467b2f3906SVitaly Kuzmichevelse
4723cd1385SRemy Bohmer# Devices not related to the new gadget layer depend on CONFIG_USB_DEVICE
482731b9a8SJean-Christophe PLAGNIOL-VILLARDifdef CONFIG_USB_DEVICE
492731b9a8SJean-Christophe PLAGNIOL-VILLARDCOBJS-y += core.o
502731b9a8SJean-Christophe PLAGNIOL-VILLARDCOBJS-y += ep0.o
512721551aSVipin KUMARCOBJS-$(CONFIG_DW_UDC) += designware_udc.o
522731b9a8SJean-Christophe PLAGNIOL-VILLARDCOBJS-$(CONFIG_OMAP1510) += omap1510_udc.o
532731b9a8SJean-Christophe PLAGNIOL-VILLARDCOBJS-$(CONFIG_OMAP1610) += omap1510_udc.o
542731b9a8SJean-Christophe PLAGNIOL-VILLARDCOBJS-$(CONFIG_MPC885_FAMILY) += mpc8xx_udc.o
55abc20abaSMarek VasutCOBJS-$(CONFIG_CPU_PXA27X) += pxa27x_udc.o
562731b9a8SJean-Christophe PLAGNIOL-VILLARDendif
577b2f3906SVitaly Kuzmichevendif
582731b9a8SJean-Christophe PLAGNIOL-VILLARD
592731b9a8SJean-Christophe PLAGNIOL-VILLARDCOBJS	:= $(COBJS-y)
602731b9a8SJean-Christophe PLAGNIOL-VILLARDSRCS	:= $(COBJS:.o=.c)
612731b9a8SJean-Christophe PLAGNIOL-VILLARDOBJS	:= $(addprefix $(obj),$(COBJS))
622731b9a8SJean-Christophe PLAGNIOL-VILLARD
632731b9a8SJean-Christophe PLAGNIOL-VILLARDall:	$(LIB)
642731b9a8SJean-Christophe PLAGNIOL-VILLARD
652731b9a8SJean-Christophe PLAGNIOL-VILLARD$(LIB):	$(obj).depend $(OBJS)
666d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
672731b9a8SJean-Christophe PLAGNIOL-VILLARD
682731b9a8SJean-Christophe PLAGNIOL-VILLARD#########################################################################
692731b9a8SJean-Christophe PLAGNIOL-VILLARD
702731b9a8SJean-Christophe PLAGNIOL-VILLARD# defines $(obj).depend target
712731b9a8SJean-Christophe PLAGNIOL-VILLARDinclude $(SRCTREE)/rules.mk
722731b9a8SJean-Christophe PLAGNIOL-VILLARD
732731b9a8SJean-Christophe PLAGNIOL-VILLARDsinclude $(obj).depend
742731b9a8SJean-Christophe PLAGNIOL-VILLARD
752731b9a8SJean-Christophe PLAGNIOL-VILLARD#########################################################################
76