diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2010-08-08 13:55:50 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-08-08 23:13:59 (GMT) |
commit | 68e8a289dce8c409340ac07f20b1d2d5dc4d7485 (patch) | |
tree | b8de42a527418e20a6f44c33a5b6ebdc460eaa29 /board/colibri_pxa270 | |
parent | f534c7cdc66158fbf4d5e8b953e84ba070729d72 (diff) | |
download | u-boot-68e8a289dce8c409340ac07f20b1d2d5dc4d7485.tar.xz |
PXA: Fix off-the-tree build problems
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/colibri_pxa270')
-rw-r--r-- | board/colibri_pxa270/Makefile | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/board/colibri_pxa270/Makefile b/board/colibri_pxa270/Makefile index 44d73cc..ae570e1 100644 --- a/board/colibri_pxa270/Makefile +++ b/board/colibri_pxa270/Makefile @@ -21,25 +21,29 @@ include $(TOPDIR)/config.mk -LIB = lib$(BOARD).a +LIB = $(obj)lib$(BOARD).a -OBJS := colibri_pxa270.o +COBJS := colibri_pxa270.o SOBJS := lowlevel_init.o -$(LIB): $(OBJS) $(SOBJS) - $(AR) crv $@ $(OBJS) $(SOBJS) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB): $(obj).depend $(OBJS) $(SOBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) clean: rm -f $(SOBJS) $(OBJS) distclean: clean - rm -f $(LIB) core *.bak .depend + rm -f $(LIB) core *.bak $(obj).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 ######################################################################### |