]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/amcc/bamboo/Makefile
punt unused clean/distclean targets
[karo-tx-uboot.git] / board / amcc / bamboo / Makefile
index d01cc49e2ce6a3914867367087fc98158d900ec5..ecdf67ac1774bd6111b2bb615ae9667f8e53ba8a 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o flash.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, $^)
 
 #########################################################################