2014-07-08 16:54:54 +02:00
|
|
|
MODE = $(shell grep "RPL_DEFAULT_MOP RPL_NON_STORING_MODE" ../../include/rpl/rpl_config.h)
|
|
|
|
ifneq (,$(MODE))
|
|
|
|
DIRS += rpl_nonstoring
|
|
|
|
else
|
|
|
|
DIRS += rpl_storing
|
|
|
|
endif
|
2014-12-09 10:06:08 +01:00
|
|
|
|
|
|
|
# Set the maximum number of routing entries to 128 if no number is provided
|
|
|
|
ifneq (,$(RPL_MAX_ROUTING_ENTRIES))
|
|
|
|
CFLAGS += -DRPL_MAX_ROUTING_ENTRIES=$(RPL_MAX_ROUTING_ENTRIES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Define this node as root at compile time (required only for non-storing mode)
|
|
|
|
ifneq (,$(RPL_NODE_IS_ROOT))
|
|
|
|
CFLAGS += -DRPL_NODE_IS_ROOT
|
|
|
|
endif
|
|
|
|
|
2013-03-16 17:02:35 +01:00
|
|
|
include $(RIOTBASE)/Makefile.base
|