xref: /openbmc/u-boot/drivers/usb/eth/Makefile (revision 1a459660)
189d48367SSimon Glass#
289d48367SSimon Glass# Copyright (c) 2011 The Chromium OS Authors.
3*1a459660SWolfgang Denk# SPDX-License-Identifier:	GPL-2.0+
489d48367SSimon Glass#
589d48367SSimon Glass
689d48367SSimon Glassinclude $(TOPDIR)/config.mk
789d48367SSimon Glass
8181f565cSMike FrysingerLIB	:= $(obj)libusb_eth.o
989d48367SSimon Glass
1089d48367SSimon Glass# new USB host ethernet layer dependencies
1189d48367SSimon GlassCOBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o
129b70e007SSimon Glassifdef CONFIG_USB_ETHER_ASIX
139b70e007SSimon GlassCOBJS-y += asix.o
149b70e007SSimon Glassendif
15291391beSSimon GlassCOBJS-$(CONFIG_USB_ETHER_SMSC95XX) += smsc95xx.o
1689d48367SSimon Glass
1789d48367SSimon GlassCOBJS	:= $(COBJS-y)
1889d48367SSimon GlassSRCS	:= $(COBJS:.o=.c)
1989d48367SSimon GlassOBJS	:= $(addprefix $(obj),$(COBJS))
2089d48367SSimon Glass
2189d48367SSimon Glassall:	$(LIB)
2289d48367SSimon Glass
2389d48367SSimon Glass$(LIB):	$(obj).depend $(OBJS)
24181f565cSMike Frysinger	$(call cmd_link_o_target, $(OBJS))
2589d48367SSimon Glass
2689d48367SSimon Glass#########################################################################
2789d48367SSimon Glass
2889d48367SSimon Glass# defines $(obj).depend target
2989d48367SSimon Glassinclude $(SRCTREE)/rules.mk
3089d48367SSimon Glass
3189d48367SSimon Glasssinclude $(obj).depend
3289d48367SSimon Glass
3389d48367SSimon Glass#########################################################################
34