]> git.sur5r.net Git - u-boot/blobdiff - board/lwmon5/Makefile
twl4030: make twl4030_i2c_write_u8 prototype consistent
[u-boot] / board / lwmon5 / Makefile
index 2a9357146c5999e3af7d04fc8f54a7e78aa2da38..6e3ec128485e3a86613f7162efa9bc1fa65ca68a 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o kbd.o sdram.o
 SOBJS  = init.o
@@ -32,14 +32,10 @@ SRCS        := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
-$(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+all:   $(LIB) $(SOBJS)
 
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+$(LIB):        $(OBJS)
+       $(call cmd_link_o_target, $^)
 
 #########################################################################