]> git.sur5r.net Git - u-boot/blobdiff - board/xilinx/ppc405-generic/Makefile
Merge branch 'next' of ../next
[u-boot] / board / xilinx / ppc405-generic / Makefile
index 4e87e4b5cea68e2cb545aa4e3e60b10db6f6b957..717ffc9c9f1a5158ce5131e268253324cd6f0c59 100644 (file)
@@ -33,7 +33,7 @@ INCS          :=
 CFLAGS         += $(INCS)
 HOSTCFLAGS     += $(INCS)
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  += ../../xilinx/ppc405-generic/xilinx_ppc405_generic.o
 
@@ -41,8 +41,10 @@ SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
-$(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $^
+all: $(LIB) $(SOBJS)
+
+$(LIB):        $(OBJS)
+       $(call cmd_link_o_target, $^)
 
 clean:
        rm -f $(SOBJS) $(OBJS)