mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-27 09:02:20 +00:00
linkstation_HGLAN: Fix out of tree building.
Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
1510b82d50
commit
cf39b07948
1 changed files with 9 additions and 6 deletions
|
@ -23,18 +23,21 @@
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
LIB = lib$(BOARD).a
|
LIB = $(obj)lib$(BOARD).a
|
||||||
|
|
||||||
OBJS = $(BOARD).o ide.o hwctl.o avr.o
|
OBJS = $(BOARD).o ide.o hwctl.o avr.o
|
||||||
|
|
||||||
$(LIB): .depend $(OBJS) $(SOBJS)
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||||
$(AR) crv $@ $(OBJS) $(SOBJS)
|
OBJS := $(addprefix $(obj),$(OBJS))
|
||||||
|
|
||||||
|
$(LIB): $(obj).depend $(OBJS)
|
||||||
|
$(AR) crv $@ $(OBJS)
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
|
# defines $(obj).depend target
|
||||||
$(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
|
include $(SRCTREE)/rules.mk
|
||||||
|
|
||||||
sinclude .depend
|
sinclude $(obj).depend
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue