2015-02-25 12:12:20 +00:00
|
|
|
# srf06-cc26xx platform makefile
|
|
|
|
|
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
### Board and BSP selection
|
|
|
|
ifeq ($(BOARD),)
|
2015-08-16 15:55:44 +00:00
|
|
|
BOARD=srf06/cc26xx
|
2015-02-25 12:12:20 +00:00
|
|
|
endif
|
|
|
|
|
2015-08-16 15:55:44 +00:00
|
|
|
CONTIKI_TARGET_DIRS += .
|
2015-02-25 12:12:20 +00:00
|
|
|
|
2015-08-16 15:55:44 +00:00
|
|
|
### Include the board-specific makefile
|
2017-05-15 14:58:13 +00:00
|
|
|
PLATFORM_ROOT_DIR = $(CONTIKI)/drivers/platform/$(TARGET)
|
2015-08-16 15:55:44 +00:00
|
|
|
-include $(PLATFORM_ROOT_DIR)/$(BOARD)/Makefile.$(notdir $(BOARD))
|
2015-02-25 12:12:20 +00:00
|
|
|
|
|
|
|
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 with code size optimisations
|
|
|
|
ifndef SMALL
|
|
|
|
SMALL = 0
|
|
|
|
endif
|
|
|
|
|
2015-08-16 15:55:44 +00:00
|
|
|
### 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
|
2017-05-15 14:58:13 +00:00
|
|
|
CONTIKI_CPU=$(CONTIKI)/drivers/cpu/cc26xx-cc13xx
|
2015-08-16 15:55:44 +00:00
|
|
|
include $(CONTIKI_CPU)/Makefile.$(CPU_FAMILY)
|
2015-02-25 12:12:20 +00:00
|
|
|
|
2017-05-13 11:09:58 +00:00
|
|
|
MODULES += core/net core/net/mac
|