]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/esd/ar405/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / esd / ar405 / Makefile
index dec52af9cabfacfda8048b8546b1f214e1f3a7fb..bd0825336fb02787786792cb09e3d226e32f4e46 100644 (file)
@@ -26,7 +26,7 @@ ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)../common)
 endif
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o flash.o ../common/misc.o
 
@@ -35,13 +35,13 @@ OBJS        := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) crv $@ $(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
 
 #########################################################################