]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/sc3/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / board / sc3 / Makefile
index 4cc2b4171ca2c5a382a7756a8e67225a2c1c76cb..48f5cf69c96523e3b325395d7b0b37f58e6b68ab 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o sc3nand.o
 SOBJS  = init.o
@@ -33,13 +33,13 @@ OBJS        := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(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
 
 #########################################################################