xref: /openbmc/u-boot/drivers/usb/eth/Makefile (revision 291391be)
189d48367SSimon Glass#
289d48367SSimon Glass# Copyright (c) 2011 The Chromium OS Authors.
389d48367SSimon Glass# See file CREDITS for list of people who contributed to this
489d48367SSimon Glass# project.
589d48367SSimon Glass#
689d48367SSimon Glass# This program is free software; you can redistribute it and/or
789d48367SSimon Glass# modify it under the terms of the GNU General Public License as
889d48367SSimon Glass# published by the Free Software Foundation; either version 2 of
989d48367SSimon Glass# the License, or (at your option) any later version.
1089d48367SSimon Glass#
1189d48367SSimon Glass# This program is distributed in the hope that it will be useful,
1289d48367SSimon Glass# but WITHOUT ANY WARRANTY; without even the implied warranty of
1389d48367SSimon Glass# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1489d48367SSimon Glass# GNU General Public License for more details.
1589d48367SSimon Glass#
1689d48367SSimon Glass# You should have received a copy of the GNU General Public License
1789d48367SSimon Glass# along with this program; if not, write to the Free Software
1889d48367SSimon Glass# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
1989d48367SSimon Glass# MA 02111-1307 USA
2089d48367SSimon Glass#
2189d48367SSimon Glass
2289d48367SSimon Glassinclude $(TOPDIR)/config.mk
2389d48367SSimon Glass
24181f565cSMike FrysingerLIB	:= $(obj)libusb_eth.o
2589d48367SSimon Glass
2689d48367SSimon Glass# new USB host ethernet layer dependencies
2789d48367SSimon GlassCOBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o
289b70e007SSimon Glassifdef CONFIG_USB_ETHER_ASIX
299b70e007SSimon GlassCOBJS-y += asix.o
309b70e007SSimon Glassendif
31*291391beSSimon GlassCOBJS-$(CONFIG_USB_ETHER_SMSC95XX) += smsc95xx.o
3289d48367SSimon Glass
3389d48367SSimon GlassCOBJS	:= $(COBJS-y)
3489d48367SSimon GlassSRCS	:= $(COBJS:.o=.c)
3589d48367SSimon GlassOBJS	:= $(addprefix $(obj),$(COBJS))
3689d48367SSimon Glass
3789d48367SSimon Glassall:	$(LIB)
3889d48367SSimon Glass
3989d48367SSimon Glass$(LIB):	$(obj).depend $(OBJS)
40181f565cSMike Frysinger	$(call cmd_link_o_target, $(OBJS))
4189d48367SSimon Glass
4289d48367SSimon Glass#########################################################################
4389d48367SSimon Glass
4489d48367SSimon Glass# defines $(obj).depend target
4589d48367SSimon Glassinclude $(SRCTREE)/rules.mk
4689d48367SSimon Glass
4789d48367SSimon Glasssinclude $(obj).depend
4889d48367SSimon Glass
4989d48367SSimon Glass#########################################################################
50