Handle empty board.a (no COBJS defined)

This commit is contained in:
Jim Paris 2010-09-25 15:09:26 -04:00
parent 744b4f4764
commit ebac883e25

View File

@ -13,7 +13,13 @@ $(OBJDIR)/board.h:
$(Q)echo '#include "$(BOARD).h"' >> $(OBJDIR)/board.h
# $(OBJDIR)/board.a contains all the objects defined in COBJS
ifdef COBJS
$(OBJDIR)/board.a: $(OBJDIR)/board.h $(OBJDIR)/board.a($(addprefix $(OBJDIR)/, $(COBJS)))
else
$(OBJDIR)/board.a: $(OBJDIR)/board.h
$(call pretty,AR (empty),$@)
$Q$(AR) $(ARFLAGS) $@
endif
# And is built from files in the parent directory
$(OBJDIR)/%.o: %.c $(OBJDIR)/board.h