]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ep82xxm/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / ep82xxm / Makefile
index 349be1f8dc5271db7e350e089b43c7fe73a74732..74b9a356f726f53eb0e233436bf3ef0218cb6222 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o
 
@@ -31,13 +31,13 @@ SRCS        := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 
 $(LIB):        $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(OBJS)
 
 distclean:     clean
-       rm -f $(LIB) core *.bak .depend *~
+       rm -f $(LIB) core *.bak $(obj).depend
 
 #########################################################################