mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 16:29:34 +00:00
21 lines
501 B
Makefile
21 lines
501 B
Makefile
|
# -*- makefile -*-
|
||
|
|
||
|
BOARDS := redbee-dev redbee-r1 redbee-usb redbee-econotag quahogcon freescale-ncb
|
||
|
|
||
|
OBJDIR := obj_$(BOARD)_board
|
||
|
CFLAGS += -I$(OBJDIR) -I$(MC1322X)/board -DBOARD=$(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
|
||
|
|