]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/usb/eth/Makefile
Merge branch 'master' of git://www.denx.de/git/u-boot-cfi-flash
[karo-tx-uboot.git] / drivers / usb / eth / Makefile
1 #
2 # Copyright (c) 2011 The Chromium OS Authors.
3 # SPDX-License-Identifier:      GPL-2.0+
4 #
5
6 include $(TOPDIR)/config.mk
7
8 LIB     := $(obj)libusb_eth.o
9
10 # new USB host ethernet layer dependencies
11 COBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o
12 ifdef CONFIG_USB_ETHER_ASIX
13 COBJS-y += asix.o
14 endif
15 COBJS-$(CONFIG_USB_ETHER_SMSC95XX) += smsc95xx.o
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)
24         $(call cmd_link_o_target, $(OBJS))
25
26 #########################################################################
27
28 # defines $(obj).depend target
29 include $(SRCTREE)/rules.mk
30
31 sinclude $(obj).depend
32
33 #########################################################################