37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
# srf06-cc26xx platform makefile
|
|
|
|
ifndef CONTIKI
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
endif
|
|
|
|
### Board and BSP selection
|
|
ifeq ($(BOARD),)
|
|
BOARD=srf06/cc26xx
|
|
endif
|
|
|
|
CONTIKI_TARGET_DIRS += .
|
|
|
|
### Include the board-specific makefile
|
|
PLATFORM_ROOT_DIR = $(CONTIKI)/drivers/platform/$(TARGET)
|
|
-include $(PLATFORM_ROOT_DIR)/$(BOARD)/Makefile.$(notdir $(BOARD))
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += contiki-main.c
|
|
CONTIKI_TARGET_SOURCEFILES += sensors.c leds.c
|
|
CONTIKI_TARGET_SOURCEFILES += $(BOARD_SOURCEFILES)
|
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
|
|
|
CLEAN += *.srf06-cc26xx
|
|
|
|
### Unless the example dictates otherwise, build without code size optimisations
|
|
SMALL ?= 0
|
|
|
|
### Define the CPU directory and pull in the correct CPU makefile. This will
|
|
### be defined by one of the makefiles included above and it can be either
|
|
### Makefile.cc26xx or Makefile.cc13xx
|
|
CONTIKI_CPU=$(CONTIKI)/drivers/cpu/cc26xx-cc13xx
|
|
include $(CONTIKI_CPU)/Makefile.$(CPU_FAMILY)
|
|
|
|
MODULES += core/net core/net/mac core/net/mac/framer \
|
|
core/net/mac/csma core/net/mac/nullmac
|