Simon Glass | 89d4836 | 2011-02-16 11:14:33 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2011 The Chromium OS Authors. |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 3 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 89d4836 | 2011-02-16 11:14:33 -0800 | [diff] [blame] | 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
Mike Frysinger | 181f565 | 2011-06-24 21:12:36 -0400 | [diff] [blame] | 8 | LIB := $(obj)libusb_eth.o |
Simon Glass | 89d4836 | 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 | 9b70e00 | 2011-02-16 11:14:34 -0800 | [diff] [blame] | 12 | ifdef CONFIG_USB_ETHER_ASIX |
| 13 | COBJS-y += asix.o |
| 14 | endif |
Simon Glass | 291391b | 2011-06-13 16:13:09 -0700 | [diff] [blame] | 15 | COBJS-$(CONFIG_USB_ETHER_SMSC95XX) += smsc95xx.o |
Simon Glass | 89d4836 | 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 | 181f565 | 2011-06-24 21:12:36 -0400 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS)) |
Simon Glass | 89d4836 | 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 | ######################################################################### |