now running just 'make' builds all the targets for all the boards.
This commit is contained in:
parent
dc9473a228
commit
f79c71153a
|
@ -67,7 +67,19 @@ clobber \
|
||||||
mrproper \
|
mrproper \
|
||||||
distclean: clean
|
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)
|
|
|
@ -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
|
OBJDIR := obj_$(BOARD)_board
|
||||||
CFLAGS += -I$(OBJDIR)
|
CFLAGS += -I$(OBJDIR)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
MC1322X := ..
|
MC1322X := ..
|
||||||
|
|
||||||
TARGETS := blink-red
|
TARGETS := blink-red blink-green blink-blue
|
||||||
|
|
||||||
include $(MC1322X)/Makefile.include
|
include $(MC1322X)/Makefile.include
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue