]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/mx51evk/Makefile
powerpc/t4240qds: Print FPGA detail version
[u-boot] / board / freescale / mx51evk / Makefile
index 3344c28092002fad016347910dbc79337efe816a..2310fe137d73644b3738ceaae3732f1adcc1a3b5 100644 (file)
@@ -23,20 +23,15 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(BOARD).o
 
-COBJS  := mx51evk.o
+COBJS-y                        += mx51evk.o
+COBJS-$(CONFIG_VIDEO)  += mx51evk_video.o
 
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+COBJS  := $(COBJS-y)
+SRCS   := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
 
-$(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
-
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+$(LIB):        $(obj).depend $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################