Simon Glass | 1e9961d | 2011-02-16 11:14:33 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2011 The Chromium OS Authors. |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 3 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 1e9961d | 2011-02-16 11:14:33 -0800 | [diff] [blame] | 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
Mike Frysinger | e1e12ad | 2011-06-24 21:12:36 -0400 | [diff] [blame] | 8 | LIB := $(obj)libusb_eth.o |
Simon Glass | 1e9961d | 2011-02-16 11:14:33 -0800 | [diff] [blame] | 9 | |
| 10 | # new USB host ethernet layer dependencies |
| 11 | COBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o |
Simon Glass | 246d693 | 2011-02-16 11:14:34 -0800 | [diff] [blame] | 12 | ifdef CONFIG_USB_ETHER_ASIX |
| 13 | COBJS-y += asix.o |
| 14 | endif |
Simon Glass | 246c119 | 2011-06-13 16:13:09 -0700 | [diff] [blame] | 15 | COBJS-$(CONFIG_USB_ETHER_SMSC95XX) += smsc95xx.o |
Simon Glass | 1e9961d | 2011-02-16 11:14:33 -0800 | [diff] [blame] | 16 | |
| 17 | COBJS := $(COBJS-y) |
| 18 | SRCS := $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 20 | |
| 21 | all: $(LIB) |
| 22 | |
| 23 | $(LIB): $(obj).depend $(OBJS) |
Mike Frysinger | e1e12ad | 2011-06-24 21:12:36 -0400 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS)) |
Simon Glass | 1e9961d | 2011-02-16 11:14:33 -0800 | [diff] [blame] | 25 | |
| 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |