Added a WERROR variable, which, if set, causes -Werror flags to be turned on
This commit is contained in:
parent
cee1823dc3
commit
f2599b38e7
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,10 @@ AS = as
|
||||||
NM = nm
|
NM = nm
|
||||||
OBJCOPY = objcopy
|
OBJCOPY = objcopy
|
||||||
STRIP = strip
|
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
|
CFLAGS += $(CFLAGSNO) -O
|
||||||
LDFLAGS = -Wl,-Map=contiki-$(TARGET).map,-export-dynamic
|
LDFLAGS = -Wl,-Map=contiki-$(TARGET).map,-export-dynamic
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue