diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-03 01:38:50 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-03 01:38:50 +0400 |
commit | a30cc5a340e7f8f5f85a0e08e7f6c4106ce117c4 (patch) | |
tree | d01afe0202765ea80f5b260cf3df0a86ba0ce1fa /board/ms7720se/Makefile | |
parent | 461fa68d20861811487944d22291db5a13410e20 (diff) | |
download | u-boot-a30cc5a340e7f8f5f85a0e08e7f6c4106ce117c4.tar.xz |
Cleanup: fix out-of-tree building for some boards
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/ms7720se/Makefile')
-rw-r--r-- | board/ms7720se/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/board/ms7720se/Makefile b/board/ms7720se/Makefile index 236959c15d..0288bede3e 100644 --- a/board/ms7720se/Makefile +++ b/board/ms7720se/Makefile @@ -27,11 +27,15 @@ include $(TOPDIR)/config.mk -LIB = lib$(BOARD).a +LIB = $(obj)lib$(BOARD).a OBJS := ms7720se.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) @@ -43,9 +47,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 ######################################################################### |