Skip to content
Snippets Groups Projects
Commit cf39b079 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

linkstation_HGLAN: Fix out of tree building.


Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent 1510b82d
No related branches found
No related tags found
No related merge requests found
...@@ -23,18 +23,21 @@ ...@@ -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
######################################################################### #########################################################################
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment