summaryrefslogtreecommitdiff
path: root/maintMakefile
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2019-09-03 12:24:54 -0400
committerPaul Smith <psmith@gnu.org>2019-09-07 18:27:26 -0400
commit76b6e668a60d4c1eff5e231198f52e6d5f948be1 (patch)
tree3c5479765f6d56ec7e3688fa0c28185d04f5dca6 /maintMakefile
parent5ff6ae6177ffcc426aae5c5386d13017d2f58ca6 (diff)
downloadmake-git-76b6e668a60d4c1eff5e231198f52e6d5f948be1.tar.gz
* README.git: Describe GCC and GNU make requirements
* maintMakefile: Put custom C flags into a separate variable so they can be overridden more easily on the command line.
Diffstat (limited to 'maintMakefile')
-rw-r--r--maintMakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/maintMakefile b/maintMakefile
index c99a585a..b47e7145 100644
--- a/maintMakefile
+++ b/maintMakefile
@@ -29,11 +29,13 @@ MAKEWEBDIR ?= $(SRCROOTDIR)/make/make-web
# We like mondo-warnings!
# Also force comments to be preserved. This helps when using ccache, in
# combination with GCC 7's implicit-fallthrough warning.
-AM_CFLAGS += -C -Wall -Wextra -Werror -Wwrite-strings -Wshadow \
+MAKE_CFLAGS := -C -Wall -Wextra -Werror -Wwrite-strings -Wshadow \
-Wdeclaration-after-statement -Wbad-function-cast -Wformat-security \
-Wtype-limits -Wunused-but-set-parameter -Wlogical-op -Wpointer-arith \
-Wignored-qualifiers -Wformat-signedness -Wduplicated-cond
+AM_CFLAGS += $(MAKE_CFLAGS)
+
# Unfortunately the Guile headers are sometimes broken. Convince GCC
# to treat them as system headers so warnings are ignored.
GUILE_CFLAGS := $(patsubst -I%,-isystem %,$(GUILE_CFLAGS))