From 903a6a88f08282643f6189333d42fecc6b7a8f7f Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 19 Mar 2022 14:07:15 +0000 Subject: [PATCH] Makefile: Factor out the `CFLAGS'. Makes overriding from the command line less awful. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 836a7f4..f68c312 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,10 @@ v-tag = $(call v-tag_$V,$1) v-tag_0 = @printf " %-8s %s\n" "$1" "$@"; CC = gcc -CFLAGS = -O2 -g -pedantic -Wall -Werror +OPTIMIZE = -O2 +DEBUG = -g +WARN = -pedantic -Wall -Werror +CFLAGS = $(OPTIMIZE) $(DEBUG) $(WARN) LD = gcc LDFLAGS = -- 2.11.0