From: Mark Wooding Date: Sat, 19 Mar 2022 14:07:15 +0000 (+0000) Subject: Makefile: Factor out the `CFLAGS'. X-Git-Url: https://git.distorted.org.uk/~mdw/dvdrip/commitdiff_plain/903a6a88f08282643f6189333d42fecc6b7a8f7f Makefile: Factor out the `CFLAGS'. Makes overriding from the command line less awful. --- 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 =