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