1c87c5fbaSopenharmony_ci# name of your application 2c87c5fbaSopenharmony_ciAPPLICATION = libcoap-server 3c87c5fbaSopenharmony_ci 4c87c5fbaSopenharmony_ci# If no BOARD is found in the environment, use this default: 5c87c5fbaSopenharmony_ciBOARD ?= native 6c87c5fbaSopenharmony_ci 7c87c5fbaSopenharmony_ci# This has to be the absolute path to the RIOT base directory: 8c87c5fbaSopenharmony_ciRIOTBASE ?= $(CURDIR)/../.. 9c87c5fbaSopenharmony_ci 10c87c5fbaSopenharmony_ci# Include packages that pull up and auto-init the link layer. 11c87c5fbaSopenharmony_ci# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present 12c87c5fbaSopenharmony_ciUSEMODULE += netdev_default 13c87c5fbaSopenharmony_ciUSEMODULE += auto_init_gnrc_netif 14c87c5fbaSopenharmony_ci 15c87c5fbaSopenharmony_ci# Activate ICMPv6 error messages 16c87c5fbaSopenharmony_ci# USEMODULE += gnrc_icmpv6_error 17c87c5fbaSopenharmony_ci 18c87c5fbaSopenharmony_ci# Specify the mandatory networking module for a IPv6 routing node 19c87c5fbaSopenharmony_ciUSEMODULE += gnrc_ipv6_router_default 20c87c5fbaSopenharmony_ci 21c87c5fbaSopenharmony_ci# Add a routing protocol 22c87c5fbaSopenharmony_ciUSEMODULE += gnrc_rpl 23c87c5fbaSopenharmony_ciUSEMODULE += auto_init_gnrc_rpl 24c87c5fbaSopenharmony_ci 25c87c5fbaSopenharmony_ci# Additional networking modules that can be dropped if not needed 26c87c5fbaSopenharmony_ciUSEMODULE += gnrc_icmpv6_echo 27c87c5fbaSopenharmony_ciUSEMODULE += shell_cmd_gnrc_udp 28c87c5fbaSopenharmony_ci 29c87c5fbaSopenharmony_ci# Specify the mandatory networking modules for IPv6 and UDP 30c87c5fbaSopenharmony_ciUSEMODULE += gnrc_ipv6_default 31c87c5fbaSopenharmony_ciUSEMODULE += memarray 32c87c5fbaSopenharmony_ciUSEMODULE += ipv4_addr 33c87c5fbaSopenharmony_ci 34c87c5fbaSopenharmony_ci# a cryptographically secure implementation of PRNG is needed for tinydtls 35c87c5fbaSopenharmony_ci# Uncomment the following 3 lines for tinydtls support 36c87c5fbaSopenharmony_ciCFLAGS += -DWITH_RIOT_SOCK 37c87c5fbaSopenharmony_ciUSEPKG += tinydtls 38c87c5fbaSopenharmony_ciUSEMODULE += prng_sha1prng 39c87c5fbaSopenharmony_ci 40c87c5fbaSopenharmony_ci# libcoap support 41c87c5fbaSopenharmony_ciUSEPKG += libcoap 42c87c5fbaSopenharmony_ci 43c87c5fbaSopenharmony_ciUSEMODULE += sock_udp 44c87c5fbaSopenharmony_ci# Configure if DNS is required 45c87c5fbaSopenharmony_ciUSEMODULE += sock_dns 46c87c5fbaSopenharmony_ci 47c87c5fbaSopenharmony_ci# USEMODULE += xtimer 48c87c5fbaSopenharmony_ciUSEMODULE += ztimer64_xtimer_compat 49c87c5fbaSopenharmony_ci 50c87c5fbaSopenharmony_ci# Add also the shell, some shell commands 51c87c5fbaSopenharmony_ciUSEMODULE += shell 52c87c5fbaSopenharmony_ciUSEMODULE += shell_cmds_default 53c87c5fbaSopenharmony_ciUSEMODULE += ps 54c87c5fbaSopenharmony_ciUSEMODULE += netstats_l2 55c87c5fbaSopenharmony_ciUSEMODULE += netstats_ipv6 56c87c5fbaSopenharmony_ciUSEMODULE += netstats_rpl 57c87c5fbaSopenharmony_ci 58c87c5fbaSopenharmony_ci# libcoap needs some space 59c87c5fbaSopenharmony_ciCFLAGS += -DTHREAD_STACKSIZE_MAIN=\(3*THREAD_STACKSIZE_DEFAULT\) 60c87c5fbaSopenharmony_ci 61c87c5fbaSopenharmony_ci# Comment this out to disable code in RIOT that does safety checking 62c87c5fbaSopenharmony_ci# which is not needed in a production environment but helps in the 63c87c5fbaSopenharmony_ci# development process: 64c87c5fbaSopenharmony_ciDEVELHELP ?= 1 65c87c5fbaSopenharmony_ci 66c87c5fbaSopenharmony_ci# Change this to 0 show compiler invocation lines by default: 67c87c5fbaSopenharmony_ciQUIET ?= 1 68c87c5fbaSopenharmony_ci 69c87c5fbaSopenharmony_ciinclude $(RIOTBASE)/Makefile.include 70