contiki/board/Makefile.board
Mariano Alvira 9a8004c177 working on nvm-read.
fixed lib ordering on link command
2010-02-26 12:37:13 -05:00

22 lines
532 B
Makefile

# -*- makefile -*-
#BOARDS := redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
BOARDS := redbee-dev redbee-r1
OBJDIR := obj_$(BOARD)_board
CFLAGS += -I$(OBJDIR) -I$(MC1322X)/board
$(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