Switch from archive libraries to partial linking
[pandora-u-boot.git] / board / xilinx / ppc405-generic / Makefile
index 4e87e4b..4b8e4f4 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
 
@@ -42,7 +42,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $^
+       $(call cmd_link_o_target, $^)
 
 clean:
        rm -f $(SOBJS) $(OBJS)