2017-07-25 11:38:16 +02:00
|
|
|
# name of your application
|
|
|
|
APPLICATION = rdcli_simple
|
|
|
|
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
|
|
|
BOARD ?= native
|
|
|
|
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
|
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
|
2018-08-17 11:08:15 +02:00
|
|
|
BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-mega2560 arduino-uno \
|
|
|
|
chronos hifive1 msb-430 msb-430h nucleo-f030r8 \
|
|
|
|
nucleo-l053r8 nucleo-f031k6 nucleo-f042k6 \
|
|
|
|
nucleo-f303k8 nucleo-f334r8 nucleo-l031k6 \
|
|
|
|
stm32f0discovery telosb waspmote-pro \
|
|
|
|
wsn430-v1_3b wsn430-v1_4 z1
|
2018-04-09 10:59:06 +02:00
|
|
|
|
2017-07-25 11:38:16 +02:00
|
|
|
# Enable GNRC networking
|
|
|
|
USEMODULE += gnrc_netdev_default
|
|
|
|
USEMODULE += auto_init_gnrc_netif
|
|
|
|
USEMODULE += gnrc_ipv6_default
|
|
|
|
|
|
|
|
# Run the simple CoRE resource directory
|
2018-10-15 10:44:32 +02:00
|
|
|
USEMODULE += cord_epsim_standalone
|
2017-07-25 11:38:16 +02:00
|
|
|
|
|
|
|
# Include the shell for testing purposes
|
|
|
|
USEMODULE += shell
|
|
|
|
USEMODULE += shell_commands
|
|
|
|
USEMODULE += ps
|
|
|
|
|
|
|
|
# Comment this out to disable code in RIOT that does safety checking
|
|
|
|
# which is not needed in a production environment but helps in the
|
|
|
|
# development process:
|
|
|
|
CFLAGS += -DDEVELHELP
|
|
|
|
|
|
|
|
# For debugging and demonstration purposes, we limit the lifetime to the minimal
|
|
|
|
# allowed value of 60s (see draft-ietf-core-resource-directory-11, Table 2)
|
|
|
|
RD_LT ?= 60
|
|
|
|
# Override this variable to set the RD server address (default is the all nodes
|
|
|
|
# multicast address)
|
2018-04-12 11:29:15 +02:00
|
|
|
RD_ADDR ?= \"ff02::1\"
|
|
|
|
RD_PORT ?= 5683
|
2017-07-25 11:38:16 +02:00
|
|
|
|
|
|
|
CFLAGS += -DRDCLI_LT=$(RD_LT)
|
2018-04-12 11:29:15 +02:00
|
|
|
CFLAGS += -DRDCLI_SERVER_ADDR=$(RD_ADDR)
|
|
|
|
CFLAGS += -DRDCLI_SERVER_PORT=$(RD_PORT)
|
2017-07-25 11:38:16 +02:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|