|
|
|
|
@ -33,15 +33,18 @@
|
|
|
|
|
#CC=clang
|
|
|
|
|
CCDEP?=$(CC)
|
|
|
|
|
|
|
|
|
|
CFLAGS+=-g -Wall -DLWIP_DEBUG -pedantic -Werror \
|
|
|
|
|
CFLAGS+=-g -DLWIP_DEBUG -Wall -pedantic -Werror \
|
|
|
|
|
-Wparentheses -Wsequence-point -Wswitch-default \
|
|
|
|
|
-Wextra -Wundef -Wshadow -Wpointer-arith -Wcast-qual \
|
|
|
|
|
-Wc++-compat -Wwrite-strings -Wold-style-definition -Wcast-align \
|
|
|
|
|
-Wmissing-prototypes -Wredundant-decls -Wnested-externs \
|
|
|
|
|
-Wunreachable-code -Wuninitialized
|
|
|
|
|
-Wunreachable-code -Wuninitialized -Wmissing-prototypes \
|
|
|
|
|
-Wredundant-decls -Waggregate-return -Wlogical-not-parentheses \
|
|
|
|
|
-Wmissing-include-dirs
|
|
|
|
|
# -Wconversion -Wsign-compare
|
|
|
|
|
|
|
|
|
|
ifeq (,$(findstring clang,$(CC))) |
|
|
|
|
CFLAGS+= -Wlogical-op
|
|
|
|
|
CFLAGS+= -Wlogical-op -Wc90-c99-compat -Wtrampolines
|
|
|
|
|
# if GCC is newer than 4.8/4.9 you may use:
|
|
|
|
|
#CFLAGS:=$(CFLAGS) -fsanitize=address -fstack-protector -fstack-check -fsanitize=undefined -fno-sanitize=alignment
|
|
|
|
|
else |
|
|
|
|
@ -49,11 +52,6 @@ else
|
|
|
|
|
CFLAGS+= -fsanitize=address -fsanitize=undefined -fno-sanitize=alignment -Wdocumentation -Wno-documentation-deprecated-sync
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
# not used for now but interesting:
|
|
|
|
|
# -Wpacked
|
|
|
|
|
# -ansi
|
|
|
|
|
# -std=c89
|
|
|
|
|
|
|
|
|
|
CONTRIBDIR?=../../..
|
|
|
|
|
ARFLAGS?=rs
|
|
|
|
|
|
|
|
|
|
|