diff options
author | Wolfgang Denk <wd@denx.de> | 2008-05-14 12:21:48 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-05-14 12:21:48 +0200 |
commit | cf39b07948015c480b72a6e732cf7d839aa93a9e (patch) | |
tree | 898f364f79aa03baeb28d223d56276a5009a8eb3 /board/linkstation | |
parent | 1510b82d50615f344e89d42533e8224cce067dc0 (diff) | |
download | bootable_bootloader_goldelico_gta04-cf39b07948015c480b72a6e732cf7d839aa93a9e.zip bootable_bootloader_goldelico_gta04-cf39b07948015c480b72a6e732cf7d839aa93a9e.tar.gz bootable_bootloader_goldelico_gta04-cf39b07948015c480b72a6e732cf7d839aa93a9e.tar.bz2 |
linkstation_HGLAN: Fix out of tree building.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/linkstation')
-rw-r--r-- | board/linkstation/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/board/linkstation/Makefile b/board/linkstation/Makefile index 57c84de..8d92d8a 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 ######################################################################### |