-Wmissing-prototypes -Wmissing-declarations \
-Wmissing-noreturn -Wmissing-format-attribute \
-Wredundant-decls -Wnested-externs \
- -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith \
+ -Winline -Wwrite-strings -Wcast-align -Wcast-qual \
+ -Wpointer-arith \
-Wdeclaration-after-statement -Wsequence-point
_CC_FLAGS_SH= if ! test -d .git; then echo ""; else for f in ${_CCFLAGS}; do \
- if ${CC} $$f -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
+ if echo "int main(void) { return 0;} " | \
+ ${CC} $$f - -E -o /dev/null >/dev/null 2>&1; \
then printf "%s" "$$f "; fi \
done; fi
_CC_FLAGS!= ${_CC_FLAGS_SH}
CFLAGS+= ${_CC_FLAGS}$(shell ${_CC_FLAGS_SH})
-
-_GGDB_SH= if test "${DEBUG}" = "yes"; then echo "-ggdb -DDEBUG"; else echo ""; fi
-_GGDB!= ${_GGDB_SH}
-GGDB= ${_GGDB}$(shell ${_GGDB_SH})
-CFLAGS+= ${GGDB}