]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/total5200/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / total5200 / Makefile
index 10e5fc34060c7eaa9993c25b75852110bca8a317..066d9caab478714831ded8c7c8e06297cb9a3d05 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o sdram.o
 
@@ -32,13 +32,13 @@ OBJS        := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)
 
 distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+       rm -f $(LIB) core *.bak $(obj).depend
 
 #########################################################################