Merge branch 'master' of git://git.denx.de/u-boot-i2c
[oweals/u-boot.git] / drivers / usb / host / Makefile
index 0e7c9db9dcb7d132ebc469ee45f27888d98fa250..51b2494328241167be357fe7c9335d6917a6fc84 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    := $(obj)libusb_host.a
+LIB    := $(obj)libusb_host.o
 
 # ohci
 COBJS-$(CONFIG_USB_OHCI_NEW) += ohci-hcd.o
@@ -54,7 +54,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################