27 lines
640 B
Makefile
27 lines
640 B
Makefile
|
CONTIKI_PROJECT = node
|
||
|
all: $(CONTIKI_PROJECT)
|
||
|
|
||
|
MODULES_REL += ../testbeds
|
||
|
MODULES += os/services/deployment
|
||
|
MODULES += os/services/simple-energest
|
||
|
|
||
|
CONFIG?=CONFIG_TSCH_OPTIMS
|
||
|
|
||
|
ifeq ($(CONFIG),CONFIG_CSMA)
|
||
|
MAKE_MAC = MAKE_MAC_CSMA
|
||
|
else ifeq ($(CONFIG),CONFIG_TSCH)
|
||
|
MAKE_MAC = MAKE_MAC_TSCH
|
||
|
MODULES += os/services/orchestra
|
||
|
else ifeq ($(CONFIG),CONFIG_TSCH_OPTIMS)
|
||
|
MAKE_MAC = MAKE_MAC_TSCH
|
||
|
MODULES += os/services/orchestra
|
||
|
CFLAGS += -DCONFIG_OPTIMS=1
|
||
|
else ifeq ($(CONFIG),CONFIG_TSCH_OPTIMS2)
|
||
|
MAKE_MAC = MAKE_MAC_TSCH
|
||
|
MODULES += os/services/orchestra
|
||
|
CFLAGS += -DCONFIG_OPTIMS=2
|
||
|
endif
|
||
|
|
||
|
CONTIKI = ../../..
|
||
|
include $(CONTIKI)/Makefile.include
|