cake
/
p7utils
Archived
1
0
Fork 0

Added maintainer mode

This commit is contained in:
Thomas Touhey 2017-01-05 23:08:46 +01:00
parent 0c1507f5ec
commit 069c7b1e02
2 changed files with 12 additions and 1 deletions

View File

@ -53,7 +53,14 @@
# C Compiler
CC := $(TARGET)gcc
# - Check flags (enable warnings)
CWARN := -Wall -Wextra
CWARN := -Wall -Wextra -Wno-unused-macros -Wno-vla
# - Maintainer flags
ifdef MORE_WARNINGS
CWERROR := shadow write-strings redundant-decls format format-nonliteral \
format-security implicit-function-declaration \
date-time missing-prototypes return-type pointer-arith
CWARN += $(CWERROR:%=-W%) -Wstack-protector -Wno-unused-parameter
endif
# - More flags (profiling, ...)
#CMOREFLAGS :=
# - All C Compiler flags

4
configure vendored
View File

@ -15,6 +15,7 @@ target=""
# Make options
make_full_log=
more_warnings=
# Build options
default_zoom=8
@ -43,6 +44,7 @@ General options:
--help display this help and exit
--version display version information and quit
--make-full-log display full commands while making
--maintainer enable maintainer mode
Build options:
--target=TARGET the build target [$target]
@ -98,6 +100,7 @@ esac; done
for arg ; do case "$arg" in
--make-full-log) make_full_log=yes ;;
--target=*) target="${arg#*=}" ;;
--maintainer) more_warnings=yes ;;
--default-zoom=*)
zoom="${arg#*=}"
if ! [ $zoom -eq $zoom 2>/dev/null ]; then
@ -143,6 +146,7 @@ cat <<EOF
# Configuration version and messages configuration
CONFIG_VERSION := $version
MAKE_FULL_LOG := $make_full_log
MORE_WARNINGS := $more_warnings
# Build options
TARGET := $target