]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: common: Synchronize Makefile across zynq platforms
authorMichal Simek <monstr@monstr.eu>
Tue, 25 Sep 2012 12:31:04 +0000 (14:31 +0200)
committerMichal Simek <monstr@monstr.eu>
Fri, 12 Oct 2012 06:40:00 +0000 (08:40 +0200)
Signed-off-by: Michal Simek <monstr@monstr.eu>
board/xilinx/zynq_common/Makefile

index 135d03c0736c6f8ea1f7b794f55148e2fe9e1c2b..5e1570782560eb006fc4061e0126f20255af4b68 100644 (file)
@@ -28,20 +28,24 @@ endif
 
 LIB    = $(obj)lib$(BOARD).o
 
-COBJS-y        := board.o \
-          ../common/xbasic_types.o
+COBJS-y        := board.o
+SOBJS   := lowlevel_init.o
 
 COBJS  := $(sort $(COBJS-y))
 
-SOBJS  := lowlevel_init.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+SRCS   := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
+SOBJS   := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
        $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
+clean:
+       rm -f $(OBJS) $(SOBJS)
+
+distclean:     clean
+       rm -f $(LIB) core *.bak $(obj).depend
+
 #########################################################################
 
 # defines $(obj).depend target