fix board.a creation: only the first COBJ would get built and added to

board.a.
This commit is contained in:
Mariano Alvira 2010-03-13 07:43:44 -05:00
parent fecb5e7bdb
commit 6bf05a9280

View file

@ -65,13 +65,13 @@ $(ISR): $(ISR:.o=.c)
ifdef COBJS ifdef COBJS
BOARDARCS := $(OBJDIR)/board.a(${filter $(OBJDIR)/%.o,$(OBJDIR)/$(COBJS)}) BOARDARCS := $(OBJDIR)/board.a(${filter $(OBJDIR)/%.o,$(BOARDOBJS)})
endif endif
empty-board-a: empty-board-a:
$(AR) $(ARFLAGS) $(OBJDIR)/board.a $(AR) $(ARFLAGS) $(OBJDIR)/board.a
.PHONY: empty-board-a .PHONY: empty-board-a
$(OBJDIR)/board.a: empty-board-a $(BOARDARCS) $(OBJDIR)/board.a: empty-board-a $(BOARDARCS) $(BOARDOBJS)
$(MC1322X)/src/src.a: $(MC1322X)/src/src.a($(SRCOBJS)) $(MC1322X)/src/src.a: $(MC1322X)/src/src.a($(SRCOBJS))
%_$(BOARD).elf: $(OBJDIR)/%.o $(START) $(ISR) $(SRCOBJS) $(LINKERSCRIPT) $(LIBMC1322X)/libmc1322x.a $(OBJDIR)/board.a $(MC1322X)/src/src.a %_$(BOARD).elf: $(OBJDIR)/%.o $(START) $(ISR) $(SRCOBJS) $(LINKERSCRIPT) $(LIBMC1322X)/libmc1322x.a $(OBJDIR)/board.a $(MC1322X)/src/src.a