From c85080d345eae0d76b0373d767e0e0d627faabb2 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 28 Apr 2022 07:38:01 -0700 Subject: build: separate needed flags from CFLAGS. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 109a35f..83418b7 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ -CFLAGS ?= -g -O2 -W -Wall -std=c99 -D_POSIX_C_SOURCE=2 +NEEDED_CFLAGS := -std=c99 -D_POSIX_C_SOURCE=2 +CFLAGS ?= -g -O2 -W -Wall +override CFLAGS += $(NEEDED_CFLAGS) DESTDIR ?= /usr/local pw: clean: ; rm -f pw -- cgit v1.2.3