2010-02-26 07:16:06 -05:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
2010-05-04 17:14:31 -04:00
|
|
|
BOARDS := redbee-dev redbee-r1 redbee-usb redbee-econotag quahogcon freescale-ncb
|
2010-02-22 19:18:48 -05:00
|
|
|
|
2010-02-23 18:14:32 -05:00
|
|
|
OBJDIR := obj_$(BOARD)_board
|
2010-02-26 14:04:10 -05:00
|
|
|
CFLAGS += -I$(OBJDIR) -I$(MC1322X)/board -DBOARD=$(BOARD)
|
2010-02-21 18:47:12 -05:00
|
|
|
|
2010-02-23 15:53:00 -05:00
|
|
|
$(OBJDIR):
|
2010-02-22 19:18:48 -05:00
|
|
|
ifndef BOARD
|
|
|
|
${warning BOARD not defined}
|
|
|
|
${warning echo "make BOARD=foo"}
|
|
|
|
${warning "boards: $(BOARDS)"}
|
|
|
|
${error you must define BOARD}
|
|
|
|
endif
|
2010-02-21 18:47:12 -05:00
|
|
|
@echo "setup object directory for dev board"
|
2010-02-23 18:14:32 -05:00
|
|
|
mkdir $(OBJDIR)
|
2010-02-23 15:53:00 -05:00
|
|
|
|
|
|
|
$(OBJDIR)/board.h: $(OBJDIR)
|
2010-02-24 13:35:46 -05:00
|
|
|
ln -sf ../$(MC1322X)/board/$(BOARD).h $(OBJDIR)/board.h
|
2010-03-01 14:30:19 -05:00
|
|
|
|