]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/impa7/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / impa7 / Makefile
index d77db72b05abd115c45ec96e03239ac73c4417db..79b12a220cc2434c3d60d7ba632c4bfeb06fe0a0 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := impa7.o flash.o
 SOBJS  := lowlevel_init.o
@@ -33,13 +33,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
 
 #########################################################################