From 5df3e66eab811ae603cf50d61caa2d3dfdeb8503 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 13 Dec 2024 07:23:18 -0500 Subject: Makefile: build with warnings, force C89. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3