1# 2# Copyright (c) 2011 The Chromium OS Authors. 3# SPDX-License-Identifier: GPL-2.0+ 4# 5 6include $(TOPDIR)/config.mk 7 8LIB := $(obj)libusb_eth.o 9 10# new USB host ethernet layer dependencies 11COBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o 12ifdef CONFIG_USB_ETHER_ASIX 13COBJS-y += asix.o 14endif 15COBJS-$(CONFIG_USB_ETHER_SMSC95XX) += smsc95xx.o 16 17COBJS := $(COBJS-y) 18SRCS := $(COBJS:.o=.c) 19OBJS := $(addprefix $(obj),$(COBJS)) 20 21all: $(LIB) 22 23$(LIB): $(obj).depend $(OBJS) 24 $(call cmd_link_o_target, $(OBJS)) 25 26######################################################################### 27 28# defines $(obj).depend target 29include $(SRCTREE)/rules.mk 30 31sinclude $(obj).depend 32 33######################################################################### 34