2010-02-24 00:54:50 +01:00
|
|
|
#BOARDS := redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
|
|
|
|
BOARDS := redbee-dev redbee-r1
|
2010-02-23 01:18:48 +01:00
|
|
|
|
2010-02-24 00:14:32 +01:00
|
|
|
OBJDIR := obj_$(BOARD)_board
|
2010-02-23 21:53:00 +01:00
|
|
|
CFLAGS += -I$(OBJDIR)
|
2010-02-22 00:47:12 +01:00
|
|
|
|
2010-02-23 21:53:00 +01:00
|
|
|
$(OBJDIR):
|
2010-02-23 01:18:48 +01:00
|
|
|
ifndef BOARD
|
|
|
|
${warning BOARD not defined}
|
|
|
|
${warning echo "make BOARD=foo"}
|
|
|
|
${warning "boards: $(BOARDS)"}
|
|
|
|
${error you must define BOARD}
|
|
|
|
endif
|
2010-02-22 00:47:12 +01:00
|
|
|
@echo "setup object directory for dev board"
|
2010-02-24 00:14:32 +01:00
|
|
|
mkdir $(OBJDIR)
|
2010-02-23 21:53:00 +01:00
|
|
|
|
|
|
|
$(OBJDIR)/board.h: $(OBJDIR)
|
2010-02-24 19:35:46 +01:00
|
|
|
ln -sf ../$(MC1322X)/board/$(BOARD).h $(OBJDIR)/board.h
|
2010-02-24 00:14:32 +01:00
|
|
|
touch $(OBJDIR)/board.h
|