blob: 04a8b58c89180aff3ef506245736da1413f66584 [file] [log] [blame]
Simon Glass89d48362011-02-16 11:14:33 -08001#
2# Copyright (c) 2011 The Chromium OS Authors.
Wolfgang Denk1a459662013-07-08 09:37:19 +02003# SPDX-License-Identifier: GPL-2.0+
Simon Glass89d48362011-02-16 11:14:33 -08004#
5
6include $(TOPDIR)/config.mk
7
Mike Frysinger181f5652011-06-24 21:12:36 -04008LIB := $(obj)libusb_eth.o
Simon Glass89d48362011-02-16 11:14:33 -08009
10# new USB host ethernet layer dependencies
11COBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o
Simon Glass9b70e002011-02-16 11:14:34 -080012ifdef CONFIG_USB_ETHER_ASIX
13COBJS-y += asix.o
14endif
Simon Glass291391b2011-06-13 16:13:09 -070015COBJS-$(CONFIG_USB_ETHER_SMSC95XX) += smsc95xx.o
Simon Glass89d48362011-02-16 11:14:33 -080016
17COBJS := $(COBJS-y)
18SRCS := $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20
21all: $(LIB)
22
23$(LIB): $(obj).depend $(OBJS)
Mike Frysinger181f5652011-06-24 21:12:36 -040024 $(call cmd_link_o_target, $(OBJS))
Simon Glass89d48362011-02-16 11:14:33 -080025
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################