summaryrefslogtreecommitdiff
path: root/board/renesas/sh7785lcr
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2011-02-03 16:27:45 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2011-02-03 16:54:19 +0900
commite72f46787f44c1104a8df18511ab230b6072a1f0 (patch)
tree690580a10dde64d665f78845a14c9afab0fc7fdc /board/renesas/sh7785lcr
parent9274b7b2eaf551bdbc005ed47206729a3bf042bb (diff)
sh: sh7785lcr: Fix out of tree building
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'board/renesas/sh7785lcr')
-rw-r--r--board/renesas/sh7785lcr/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/board/renesas/sh7785lcr/Makefile b/board/renesas/sh7785lcr/Makefile
index b5c496f763..e404fa6e42 100644
--- a/board/renesas/sh7785lcr/Makefile
+++ b/board/renesas/sh7785lcr/Makefile
@@ -23,8 +23,12 @@ LIB = $(obj)lib$(BOARD).o
COBJS := sh7785lcr.o selfcheck.o rtl8169_mac.o
SOBJS := lowlevel_init.o
-$(LIB): $(obj).depend $(COBJS) $(SOBJS)
- $(call cmd_link_o_target, $(COBJS) $(SOBJS))
+SRCS := $(SOBJS:.o=.S) $(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)