compile with -O2 sometimes?
authorTero Marttila <terom@fixme.fi>
Wed, 06 Jan 2010 16:26:22 +0200
changeset 35 314aa047a910
parent 34 a387bc77ad52
child 36 caabf287c75e
compile with -O2 sometimes?
Makefile
--- a/Makefile	Wed Jan 06 16:23:35 2010 +0200
+++ b/Makefile	Wed Jan 06 16:26:22 2010 +0200
@@ -1,7 +1,12 @@
 # :set noexpandtab
+CFLAGS_ALL = -Wall -std=gnu99
+CFLAGS_DBG = -g
+CFLAGS_REL = -O2
+
+CFLAGS_SEL = ${CFLAGS_REL}
 
 # warnings, and use C99 with GNU extensions
-CFLAGS = -Wall -std=gnu99 -g
+CFLAGS = ${CFLAGS_ALL} ${CFLAGS_SEL}
 
 # preprocessor flags
 CPPFLAGS = -Iinclude -Isrc/