]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/gcplus/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / board / gcplus / Makefile
index 695cd93c990bc38a50763e8ae652ca3a721518e5..e62aa1b0389bd9f95ec5b574e08723338533347b 100644 (file)
@@ -25,7 +25,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := gcplus.o flash.o
 SOBJS  := lowlevel_init.o
@@ -35,13 +35,13 @@ OBJS        := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) crv $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)
 
 distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+       rm -f $(LIB) core *.bak $(obj).depend
 
 #########################################################################