summaryrefslogtreecommitdiffstats
path: root/board/ms7750se/Makefile
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-07-02 23:38:50 +0200
committerWolfgang Denk <wd@denx.de>2008-07-02 23:38:50 +0200
commita30cc5a340e7f8f5f85a0e08e7f6c4106ce117c4 (patch)
treed01afe0202765ea80f5b260cf3df0a86ba0ce1fa /board/ms7750se/Makefile
parent461fa68d20861811487944d22291db5a13410e20 (diff)
downloadu-boot-a30cc5a340e7f8f5f85a0e08e7f6c4106ce117c4.tar.gz
u-boot-a30cc5a340e7f8f5f85a0e08e7f6c4106ce117c4.tar.xz
u-boot-a30cc5a340e7f8f5f85a0e08e7f6c4106ce117c4.zip
Cleanup: fix out-of-tree building for some boards
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/ms7750se/Makefile')
-rw-r--r--board/ms7750se/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/board/ms7750se/Makefile b/board/ms7750se/Makefile
index f02ad0a2da..b4b82bb6e3 100644
--- a/board/ms7750se/Makefile
+++ b/board/ms7750se/Makefile
@@ -19,11 +19,15 @@
#
include $(TOPDIR)/config.mk
-LIB = lib$(BOARD).a
+LIB = $(obj)lib$(BOARD).a
OBJS := ms7750se.o
SOBJS := lowlevel_init.o
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
+
$(LIB): $(OBJS) $(SOBJS)
$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
@@ -33,11 +37,11 @@ clean:
distclean: clean
rm -f $(LIB) core *.bak .depend
-#################################################################
+#########################################################################
-.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
-#################################################################
+#########################################################################