Added a WERROR variable, which, if set, causes -Werror flags to be turned on

This commit is contained in:
adamdunkels 2008-01-17 12:07:32 +00:00
parent cee1823dc3
commit f2599b38e7

View File

@ -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