1*89d48367SSimon Glass# 2*89d48367SSimon Glass# Copyright (c) 2011 The Chromium OS Authors. 3*89d48367SSimon Glass# See file CREDITS for list of people who contributed to this 4*89d48367SSimon Glass# project. 5*89d48367SSimon Glass# 6*89d48367SSimon Glass# This program is free software; you can redistribute it and/or 7*89d48367SSimon Glass# modify it under the terms of the GNU General Public License as 8*89d48367SSimon Glass# published by the Free Software Foundation; either version 2 of 9*89d48367SSimon Glass# the License, or (at your option) any later version. 10*89d48367SSimon Glass# 11*89d48367SSimon Glass# This program is distributed in the hope that it will be useful, 12*89d48367SSimon Glass# but WITHOUT ANY WARRANTY; without even the implied warranty of 13*89d48367SSimon Glass# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*89d48367SSimon Glass# GNU General Public License for more details. 15*89d48367SSimon Glass# 16*89d48367SSimon Glass# You should have received a copy of the GNU General Public License 17*89d48367SSimon Glass# along with this program; if not, write to the Free Software 18*89d48367SSimon Glass# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 19*89d48367SSimon Glass# MA 02111-1307 USA 20*89d48367SSimon Glass# 21*89d48367SSimon Glass 22*89d48367SSimon Glassinclude $(TOPDIR)/config.mk 23*89d48367SSimon Glass 24*89d48367SSimon GlassLIB := $(obj)libusb_eth.a 25*89d48367SSimon Glass 26*89d48367SSimon Glass# new USB host ethernet layer dependencies 27*89d48367SSimon GlassCOBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o 28*89d48367SSimon Glass 29*89d48367SSimon GlassCOBJS := $(COBJS-y) 30*89d48367SSimon GlassSRCS := $(COBJS:.o=.c) 31*89d48367SSimon GlassOBJS := $(addprefix $(obj),$(COBJS)) 32*89d48367SSimon Glass 33*89d48367SSimon Glassall: $(LIB) 34*89d48367SSimon Glass 35*89d48367SSimon Glass$(LIB): $(obj).depend $(OBJS) 36*89d48367SSimon Glass $(AR) $(ARFLAGS) $@ $(OBJS) 37*89d48367SSimon Glass 38*89d48367SSimon Glass######################################################################### 39*89d48367SSimon Glass 40*89d48367SSimon Glass# defines $(obj).depend target 41*89d48367SSimon Glassinclude $(SRCTREE)/rules.mk 42*89d48367SSimon Glass 43*89d48367SSimon Glasssinclude $(obj).depend 44*89d48367SSimon Glass 45*89d48367SSimon Glass######################################################################### 46