18 lines
436 B
Makefile
18 lines
436 B
Makefile
BOARDS = redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
|
|
|
|
OBJDIR = ./obj_$(BOARD)_board
|
|
CFLAGS += -I$(OBJDIR)
|
|
|
|
$(OBJDIR):
|
|
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)
|
|
|
|
$(OBJDIR)/board.h: $(OBJDIR)
|
|
ln -s ../$(MC1322X)/board/$(BOARD).h $(OBJDIR)/board.h
|