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