From f2599b38e740be5d898b422e68b48368fac1ccea Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 17 Jan 2008 12:07:32 +0000 Subject: [PATCH] Added a WERROR variable, which, if set, causes -Werror flags to be turned on --- cpu/native/Makefile.native | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpu/native/Makefile.native b/cpu/native/Makefile.native index a9c7130ad..7d8b2a4a5 100644 --- a/cpu/native/Makefile.native +++ b/cpu/native/Makefile.native @@ -9,7 +9,10 @@ AS = as NM = nm OBJCOPY = objcopy STRIP = strip -CFLAGSNO = -Wall -g -I/usr/local/include #-pedantic -std=c99 -Werror +ifdef WERROR +CFLAGSWERROR=-Werror -pedantic -std=c99 -Werror +endif +CFLAGSNO = -Wall -g -I/usr/local/include $(CFLAGSWERROR) CFLAGS += $(CFLAGSNO) -O LDFLAGS = -Wl,-Map=contiki-$(TARGET).map,-export-dynamic