]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/cm5200/Makefile
mx28evk: fix board config include guardian macro name
[karo-tx-uboot.git] / board / cm5200 / Makefile
index 8ebdb1aa28b7ce15e6980eedb96aa1ed7d17a365..c936c0871ee246eb09d54962b17ceaace27bd8fb 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o cmd_cm5200.o fwupdate.o
 
@@ -32,13 +32,7 @@ OBJS := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
-
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################