summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-03-09 02:07:49 +0100
committerWolfgang Denk <wd@denx.de>2008-03-09 02:07:49 +0100
commit76babc86576f092573599334c85ec543fdbc6015 (patch)
tree6b2a891f6a000d89727136cce799ed9bf1655ed9 /board
parent210ed2004e062fdd03f25ab4925998aa1bd08a07 (diff)
downloadu-boot-imx-76babc86576f092573599334c85ec543fdbc6015.zip
u-boot-imx-76babc86576f092573599334c85ec543fdbc6015.tar.gz
u-boot-imx-76babc86576f092573599334c85ec543fdbc6015.tar.bz2
m501sk: Fix out of tree building
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board')
-rw-r--r--board/m501sk/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/board/m501sk/Makefile b/board/m501sk/Makefile
index da7987b..b403095 100644
--- a/board/m501sk/Makefile
+++ b/board/m501sk/Makefile
@@ -23,12 +23,16 @@
include $(TOPDIR)/config.mk
-LIB = lib$(BOARD).a
+LIB = $(obj)lib$(BOARD).a
-OBJS := m501sk.o eeprom.o
+COBJS := m501sk.o eeprom.o
SOBJS := memsetup.o
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
+
$(LIB): $(OBJS) $(SOBJS)
$(AR) crv $@ $(OBJS) $(SOBJS)
@@ -40,9 +44,9 @@ distclean: clean
#########################################################################
-.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
--include .depend
+sinclude $(obj).depend
#########################################################################