Merge branch 'master' of git://git.denx.de/u-boot-usb
[platform/kernel/u-boot.git] / post / rules.mk
index 94e72be..17f8ef7 100644 (file)
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 COBJS  := $(COBJS-y)
 AOBJS  := $(AOBJS-y)
-SRCS   := $(AOBJS:.o=.S) $(COBJS:.o=.c)
+SRCS   := $(AOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(AOBJS) $(COBJS))
 LIB    := $(obj)$(LIB)
 
@@ -34,7 +34,7 @@ CPPFLAGS += -I$(TOPDIR)
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################