Added a WERROR variable, which, if set, causes -Werror flags to be turned on
This commit is contained in:
parent
cee1823dc3
commit
f2599b38e7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user