]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/bf533-ezkit/Makefile
punt unused clean/distclean targets
[karo-tx-uboot.git] / board / bf533-ezkit / Makefile
index e55c1a78a82b5b38b9e3af5a6b587f463d0bfcce..5fb51dadd78efecd5d65f92f18dce3a8f7edbacf 100644 (file)
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
-COBJS  := $(BOARD).o flash.o
+COBJS-y        := $(BOARD).o flash.o
 
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
+SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS-y))
+SOBJS  := $(addprefix $(obj),$(SOBJS-y))
 
-$(LIB):        $(obj).depend $(OBJS) $(SOBJS) u-boot.lds
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
-
-u-boot.lds: u-boot.lds.S
-       $(CPP) $(CPPFLAGS) -P -Ubfin $^ > $@.tmp
-       mv -f $@.tmp $@
-
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+$(LIB):        $(obj).depend $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 #########################################################################