From: Wolfgang Denk Date: Wed, 14 May 2008 10:21:48 +0000 (+0200) Subject: linkstation_HGLAN: Fix out of tree building. X-Git-Tag: v1.3.3~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cf39b07948015c480b72a6e732cf7d839aa93a9e;p=u-boot linkstation_HGLAN: Fix out of tree building. Signed-off-by: Wolfgang Denk --- diff --git a/board/linkstation/Makefile b/board/linkstation/Makefile index 57c84de60e..8d92d8a6c7 100644 --- a/board/linkstation/Makefile +++ b/board/linkstation/Makefile @@ -23,18 +23,21 @@ include $(TOPDIR)/config.mk -LIB = lib$(BOARD).a +LIB = $(obj)lib$(BOARD).a OBJS = $(BOARD).o ide.o hwctl.o avr.o -$(LIB): .depend $(OBJS) $(SOBJS) - $(AR) crv $@ $(OBJS) $(SOBJS) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(OBJS)) + +$(LIB): $(obj).depend $(OBJS) + $(AR) crv $@ $(OBJS) ######################################################################### -.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c) - $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@ +# defines $(obj).depend target +include $(SRCTREE)/rules.mk -sinclude .depend +sinclude $(obj).depend #########################################################################