2010-02-26 12:16:06 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
2010-02-23 23:54:50 +00:00
|
|
|
#BOARDS := redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
|
|
|
|
BOARDS := redbee-dev redbee-r1
|
2010-02-23 00:18:48 +00:00
|
|
|
|
2010-02-23 23:14:32 +00:00
|
|
|
OBJDIR := obj_$(BOARD)_board
|
2010-02-26 17:37:13 +00:00
|
|
|
CFLAGS += -I$(OBJDIR) -I$(MC1322X)/board
|
2010-02-21 23:47:12 +00:00
|
|
|
|
2010-02-23 20:53:00 +00:00
|
|
|
$(OBJDIR):
|
2010-02-23 00:18:48 +00:00
|
|
|
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"
|
2010-02-23 23:14:32 +00:00
|
|
|
mkdir $(OBJDIR)
|
2010-02-23 20:53:00 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/board.h: $(OBJDIR)
|
2010-02-24 18:35:46 +00:00
|
|
|
ln -sf ../$(MC1322X)/board/$(BOARD).h $(OBJDIR)/board.h
|
2010-02-26 12:16:06 +00:00
|
|
|
touch $(OBJDIR)/board.h
|