2011-02-16 19:14:33 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2011 The Chromium OS Authors.
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2011-02-16 19:14:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2011-06-25 01:12:36 +00:00
|
|
|
LIB := $(obj)libusb_eth.o
|
2011-02-16 19:14:33 +00:00
|
|
|
|
|
|
|
# new USB host ethernet layer dependencies
|
|
|
|
COBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o
|
2011-02-16 19:14:34 +00:00
|
|
|
ifdef CONFIG_USB_ETHER_ASIX
|
|
|
|
COBJS-y += asix.o
|
|
|
|
endif
|
2011-06-13 23:13:09 +00:00
|
|
|
COBJS-$(CONFIG_USB_ETHER_SMSC95XX) += smsc95xx.o
|
2011-02-16 19:14:33 +00:00
|
|
|
|
|
|
|
COBJS := $(COBJS-y)
|
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2011-06-25 01:12:36 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2011-02-16 19:14:33 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|