compile with profiling?
authorTero Marttila <terom@fixme.fi>
Mon, 25 Jan 2010 20:11:01 +0200
changeset 95 af7d0de9a35c
parent 94 a5e431cfcc4b
child 96 b7f6473c4adf
compile with profiling?
Makefile
--- a/Makefile	Mon Jan 25 19:46:25 2010 +0200
+++ b/Makefile	Mon Jan 25 20:11:01 2010 +0200
@@ -1,12 +1,17 @@
 # :set noexpandtab
 CFLAGS_ALL = -Wall -std=gnu99
+LDFLAGS_ALL =
 CFLAGS_DBG = -g
 CFLAGS_REL = -O2
+CFLAGS_PRF = -g -pg
+LDFLAGS_PRF = -g -pg
 
-CFLAGS_SEL = ${CFLAGS_REL}
+CFLAGS_SEL = ${CFLAGS_PRF}
+LDFLAGS_SEL = ${LDFLAGS_PRF}
 
 # warnings, and use C99 with GNU extensions
 CFLAGS = ${CFLAGS_ALL} ${CFLAGS_SEL}
+LDFLAGS = ${LDFLAGS_ALL} ${LDFLAGS_SEL}
 
 # preprocessor flags
 CPPFLAGS = -Iinclude -Isrc/