dcc2d5299c
I'd like it to be though that if board isn't defined then it makes everything.
16 lines
395 B
Makefile
16 lines
395 B
Makefile
BOARDS = redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
|
|
|
|
CFLAGS += -I obj_$(BOARD)_board
|
|
OBJDIR = obj_$(BOARD)_board
|
|
|
|
board:
|
|
ifndef BOARD
|
|
${warning BOARD not defined}
|
|
${warning echo "make BOARD=foo"}
|
|
${warning "boards: $(BOARDS)"}
|
|
${error you must define BOARD}
|
|
endif
|
|
@echo "setup object directory for dev board"
|
|
mkdir -p $(OBJDIR)
|
|
cp $(MC1322X)/board/$(BOARD).h $(OBJDIR)
|