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