1c87c5fbaSopenharmony_ci# name of your application
2c87c5fbaSopenharmony_ciAPPLICATION = libcoap-client
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_ciUSEMODULE += 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_ci
28c87c5fbaSopenharmony_ci# Specify the mandatory networking modules for IPv6 and UDP
29c87c5fbaSopenharmony_ciUSEMODULE += gnrc_ipv6_default
30c87c5fbaSopenharmony_ciUSEMODULE += memarray
31c87c5fbaSopenharmony_ciUSEMODULE += ipv4_addr
32c87c5fbaSopenharmony_ci
33c87c5fbaSopenharmony_ci# a cryptographically secure implementation of PRNG is needed for tinydtls
34c87c5fbaSopenharmony_ci# Uncomment the following 3 lines for tinydtls support
35c87c5fbaSopenharmony_ciCFLAGS += -DWITH_RIOT_SOCK
36c87c5fbaSopenharmony_ciUSEPKG += tinydtls
37c87c5fbaSopenharmony_ciUSEMODULE += prng_sha1prng
38c87c5fbaSopenharmony_ci
39c87c5fbaSopenharmony_ci# libcoap support
40c87c5fbaSopenharmony_ciUSEPKG += libcoap
41c87c5fbaSopenharmony_ci
42c87c5fbaSopenharmony_ci# Configure if DNS is required
43c87c5fbaSopenharmony_ci# USEMODULE += sock_dns
44c87c5fbaSopenharmony_ci
45c87c5fbaSopenharmony_ci# Support 64 bit ticks
46c87c5fbaSopenharmony_ciUSEMODULE += ztimer64_xtimer_compat
47c87c5fbaSopenharmony_ci
48c87c5fbaSopenharmony_ci# Add also the shell, some shell commands
49c87c5fbaSopenharmony_ciUSEMODULE += shell
50c87c5fbaSopenharmony_ciUSEMODULE += shell_cmds_default
51c87c5fbaSopenharmony_ciUSEMODULE += ps
52c87c5fbaSopenharmony_ciUSEMODULE += netstats_l2
53c87c5fbaSopenharmony_ciUSEMODULE += netstats_ipv6
54c87c5fbaSopenharmony_ciUSEMODULE += netstats_rpl
55c87c5fbaSopenharmony_ci
56c87c5fbaSopenharmony_ci# libcoap needs some space
57c87c5fbaSopenharmony_ciCFLAGS += -DTHREAD_STACKSIZE_MAIN=\(3*THREAD_STACKSIZE_DEFAULT\)
58c87c5fbaSopenharmony_ci
59c87c5fbaSopenharmony_ci# Comment this out to disable code in RIOT that does safety checking
60c87c5fbaSopenharmony_ci# which is not needed in a production environment but helps in the
61c87c5fbaSopenharmony_ci# development process:
62c87c5fbaSopenharmony_ciDEVELHELP ?= 1
63c87c5fbaSopenharmony_ci
64c87c5fbaSopenharmony_ci# Change this to 0 show compiler invocation lines by default:
65c87c5fbaSopenharmony_ci# QUIET ?= 1
66c87c5fbaSopenharmony_ci
67c87c5fbaSopenharmony_ciinclude $(RIOTBASE)/Makefile.include
68