]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/rsdproto/Makefile
hashtable: preparations to use hexport_r() for "env grep"
[karo-tx-uboot.git] / board / rsdproto / Makefile
index 4a7bd3dce9e896ef5f0edabc8c9b729c1d2cdeb4..c7fb6455cb5602b9f45b731a566a092861e0ea29 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := rsdproto.o flash.o
 SOBJS  := flash_asm.o
@@ -33,13 +33,7 @@ OBJS := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) crv $@ $(OBJS) $(SOBJS)
-
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak $(obj).depend
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 #########################################################################