]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/sandburst/metrobox/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / sandburst / metrobox / Makefile
index 9579512aac235a5e00cadf362f7baf2bd59a7be3..e98c9895ef7078a524500bff040239819a88d234 100644 (file)
@@ -37,7 +37,7 @@ CFLAGS += -DBUILDUSER='"$(BUILDUSER)"'
 # TBS: end debugging
 
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o ../common/flash.o ../common/ppc440gx_i2c.o \
        ../common/sb_common.o
@@ -48,13 +48,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
 
 #########################################################################