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