chiark
/
gitweb
/
~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50c7265
)
Makefile: Factor out the `CFLAGS'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 19 Mar 2022 14:07:15 +0000
(14:07 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 19 Mar 2022 14:07:15 +0000
(14:07 +0000)
Makes overriding from the command line less awful.
Makefile
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/Makefile
index 836a7f4206f5188678aabf45b98c086b49e6c65b..f68c3128585c0043ca9fc7456dfda231475e1b33 100644
(file)
--- 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 =