Makefile: Separate out CFLAGS
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 11 Jun 2016 02:14:04 +0000 (12:14 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 11 Jun 2016 02:16:08 +0000 (12:16 +1000)
Makefile

index e06e24c1a209951f8f8f3346860a2f0b3dae8e05..4df126778fc207598817bf84632c52919b324e3d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,15 @@
 #
 CC = gcc
 
+# Enable compiler warnings. This is an absolute minimum.
+CFLAGS += -Wall -Wextra
+
 # Define your optimization flags.
 #
 # These are good for regular use.
 #OPTS = -O2 -fomit-frame-pointer -falign-functions=2 -falign-loops=2 -falign-jumps=2
 # These are handy for debugging.
-OPTS = -g -Wall -Wextra
+OPTS = $(CFLAGS) -g
 
 # Define where you want Frotz installed (typically /usr/local).
 #