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