now running just 'make' builds all the targets for all the boards.

This commit is contained in:
Mariano Alvira 2010-02-23 18:54:50 -05:00
parent dc9473a228
commit f79c71153a
3 changed files with 18 additions and 5 deletions

View file

@ -67,7 +67,19 @@ clobber \
mrproper \
distclean: clean
.DEFAULT_GOAL := all
#.DEFAULT_GOAL := all
ifndef BOARD
.DEFAULT_GOAL := allboards
else
.DEFAULT_GOAL := all
endif
all: $(OBJDIR)/board.h
for target in $(TARGETS); do make $$target\_$(BOARD).bin; done
allboards:
for board in $(BOARDS); do make BOARD=$$board all; done
ALL := $(OBJDIR)/board.h $(TARGETS)_$(BOARD).bin
all: $(ALL)

View file

@ -1,4 +1,5 @@
BOARDS := redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
#BOARDS := redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
BOARDS := redbee-dev redbee-r1
OBJDIR := obj_$(BOARD)_board
CFLAGS += -I$(OBJDIR)

View file

@ -1,6 +1,6 @@
MC1322X := ..
TARGETS := blink-red
TARGETS := blink-red blink-green blink-blue
include $(MC1322X)/Makefile.include