osd-contiki/board/Makefile.board
Mariano Alvira e38f9db224 force links
2010-02-24 13:35:46 -05:00

19 lines
491 B
Makefile

#BOARDS := redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
BOARDS := redbee-dev redbee-r1
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 $(OBJDIR)
$(OBJDIR)/board.h: $(OBJDIR)
ln -sf ../$(MC1322X)/board/$(BOARD).h $(OBJDIR)/board.h
touch $(OBJDIR)/board.h