]> git.sur5r.net Git - u-boot/blobdiff - board/ep7312/Makefile
DaVinci: rename gpio_defs.h to gpio.h
[u-boot] / board / ep7312 / Makefile
index c8c834f62e44bb45925d83328840f9487d97bbd5..f2d8cf5012f5be5508b32b622fbe9249aa0325aa 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := ep7312.o flash.o
 SOBJS  := lowlevel_init.o
@@ -37,13 +37,13 @@ OBJS        := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) crv $@ $(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
 
 #########################################################################