aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-13 07:23:18 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-13 07:23:18 -0500
commit5df3e66eab811ae603cf50d61caa2d3dfdeb8503 (patch)
tree398deebacf0390167b37788f36cc45d8816f9432 /Makefile
parenteb9fa9189a0948f17708e6bfc11d204af4d5e34f (diff)
downloaduxd-5df3e66eab811ae603cf50d61caa2d3dfdeb8503.tar.gz
Makefile: build with warnings, force C89.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c6ae04a..c926d46 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
### Override these variables as needed. Don't override CFLAGS; use
# MYCFLAGS instead.
-MYCFLAGS=-O2 -fPIC -Wall
+MYCFLAGS=-O2 -fPIC
# These only affect the 'install' target (they don't get compiled
# into the binary).
@@ -23,7 +23,8 @@ GZIP_MAN=yes
VERSION=0.1.0
DEFINES=-DVERSION='"$(VERSION)"'
-CFLAGS=$(MYCFLAGS) $(DEFINES)
+WARNFLAGS=-std=c89 -Wall -pedantic -Wextra
+CFLAGS=$(DEFINES) $(WARNFLAGS) $(MYCFLAGS)
.PHONY: all test man clean install