]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/esd/apc405/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / esd / apc405 / Makefile
index 911460655732b5ddfd8b04302e9fb007f43d60bd..df391da6c2b3ec259b7a4752d69702834eabe28f 100644 (file)
@@ -26,7 +26,7 @@ ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)../common)
 endif
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o \
        ../common/misc.o \
@@ -37,7 +37,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $^
+       $(call cmd_link_o_target, $^)
 
 clean:
        rm -f $(SOBJS) $(OBJS)