2010-02-23 01:18:48 +01:00
|
|
|
BOARDS = redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
|
|
|
|
|
2010-02-22 00:47:12 +01:00
|
|
|
CFLAGS += -I obj_$(BOARD)_board
|
|
|
|
OBJDIR = obj_$(BOARD)_board
|
|
|
|
|
|
|
|
board:
|
2010-02-23 01:18:48 +01:00
|
|
|
ifndef BOARD
|
|
|
|
${warning BOARD not defined}
|
|
|
|
${warning echo "make BOARD=foo"}
|
|
|
|
${warning "boards: $(BOARDS)"}
|
|
|
|
${error you must define BOARD}
|
|
|
|
endif
|
2010-02-22 00:47:12 +01:00
|
|
|
@echo "setup object directory for dev board"
|
|
|
|
mkdir -p $(OBJDIR)
|
2010-02-23 01:18:48 +01:00
|
|
|
cp $(MC1322X)/board/$(BOARD).h $(OBJDIR)
|