contiki/board/Makefile.board

18 lines
436 B
Makefile
Raw Normal View History

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