From 106137ff6470c56f8160338220ceefec4751f06a Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Fri, 1 Aug 2014 18:48:16 +0200 Subject: [PATCH] examples: use DEVELHELP per default --- examples/ccn-lite-client/Makefile | 4 ++-- examples/ccn-lite-relay/Makefile | 4 ++-- examples/default/Makefile | 4 ++-- examples/hello-world/Makefile | 5 +++++ examples/ipc_pingpong/Makefile | 5 +++++ examples/riot_and_cpp/Makefile | 4 ++-- examples/rpl_udp/Makefile | 4 ++-- 7 files changed, 20 insertions(+), 10 deletions(-) diff --git a/examples/ccn-lite-client/Makefile b/examples/ccn-lite-client/Makefile index 8f2dfd9ffbef..2f759e1f1cfe 100644 --- a/examples/ccn-lite-client/Makefile +++ b/examples/ccn-lite-client/Makefile @@ -19,10 +19,10 @@ RIOTBASE ?= $(CURDIR)/../.. # with the target all-valgrind instead of all: # make -B clean all-valgrind -# Uncomment this to enable code in RIOT that does safety checking +# 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 +CFLAGS += -DDEVELHELP # Change this to 0 show compiler invocation lines by default: QUIET ?= 1 diff --git a/examples/ccn-lite-relay/Makefile b/examples/ccn-lite-relay/Makefile index 83db57325a09..ae13178bffd8 100644 --- a/examples/ccn-lite-relay/Makefile +++ b/examples/ccn-lite-relay/Makefile @@ -19,10 +19,10 @@ RIOTBASE ?= $(CURDIR)/../.. # with the target all-valgrind instead of all: # make -B clean all-valgrind -# Uncomment this to enable code in RIOT that does safety checking +# 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 +CFLAGS += -DDEVELHELP # Change this to 0 show compiler invocation lines by default: QUIET ?= 1 diff --git a/examples/default/Makefile b/examples/default/Makefile index 15d4016401e4..82b5c0e65135 100644 --- a/examples/default/Makefile +++ b/examples/default/Makefile @@ -19,10 +19,10 @@ RIOTBASE ?= $(CURDIR)/../.. # with the target all-valgrind instead of all: # make -B clean all-valgrind -# Uncomment this to enable code in RIOT that does safety checking +# 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 +CFLAGS += -DDEVELHELP # Change this to 0 show compiler invocation lines by default: QUIET ?= 1 diff --git a/examples/hello-world/Makefile b/examples/hello-world/Makefile index 7a8d210b0233..6d432913a0d5 100644 --- a/examples/hello-world/Makefile +++ b/examples/hello-world/Makefile @@ -7,6 +7,11 @@ BOARD ?= native # This has to be the absolute path to the RIOT base directory: RIOTBASE ?= $(CURDIR)/../.. +# 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 + # Change this to 0 show compiler invocation lines by default: QUIET ?= 1 diff --git a/examples/ipc_pingpong/Makefile b/examples/ipc_pingpong/Makefile index 18e3e3b85f81..3affeb63338a 100644 --- a/examples/ipc_pingpong/Makefile +++ b/examples/ipc_pingpong/Makefile @@ -7,6 +7,11 @@ BOARD ?= native # This has to be the absolute path to the RIOT base directory: RIOTBASE ?= $(CURDIR)/../.. +# 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 + # Change this to 0 show compiler invocation lines by default: QUIET ?= 1 diff --git a/examples/riot_and_cpp/Makefile b/examples/riot_and_cpp/Makefile index 0fc95e3cf811..c46da8e8644d 100644 --- a/examples/riot_and_cpp/Makefile +++ b/examples/riot_and_cpp/Makefile @@ -19,10 +19,10 @@ RIOTBASE ?= $(CURDIR)/../.. # with the target all-valgrind instead of all: # make -B clean all-valgrind -# Uncomment this to enable code in RIOT that does safety checking +# 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 +CFLAGS += -DDEVELHELP # Change this to 0 show compiler invocation lines by default: QUIET ?= 1 diff --git a/examples/rpl_udp/Makefile b/examples/rpl_udp/Makefile index 69e607ca7239..3d4d82b4e11a 100644 --- a/examples/rpl_udp/Makefile +++ b/examples/rpl_udp/Makefile @@ -19,10 +19,10 @@ RIOTBASE ?= $(CURDIR)/../.. # with the target all-valgrind instead of all: # make -B clean all-valgrind -# Uncomment this to enable code in RIOT that does safety checking +# 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 +CFLAGS += -DDEVELHELP # Change this to 0 show compiler invocation lines by default: QUIET ?= 1