]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/atmel/atngw100/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / atmel / atngw100 / Makefile
index 9f3849feaf28acebbe2f32dade580bda249a74c2..7fbd20d002ea5b15b4c7467c7afec3ff736a5f94 100644 (file)
@@ -20,7 +20,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    := $(obj)lib$(BOARD).a
+LIB    := $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o
 
@@ -28,7 +28,7 @@ SRCS  := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
 
 $(LIB): $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################