From: Guus Sliepen <guus@debian.org>
Date: Sat, 14 May 2022 03:18:38 +0800
Subject: honour CFLAGS provided by the environment

This allows debian/rules to override the CFLAGS variable.
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 59f5154..7fcd966 100644
--- a/Makefile
+++ b/Makefile
@@ -106,7 +106,8 @@ endif
 # Other flags
 #CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
 	-Wpointer-arith -Wcast-qual -Winline -I.
-CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
+CFLAGS?=-O2 -W -Wall -Wstrict-prototypes -I.
+CFLAGS+=-I.
 DEPFLAGS=-MMD
 XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG)
 PICFLAG=-fPIC
