# HG changeset patch # User Tero Marttila # Date 1264443061 -7200 # Node ID af7d0de9a35c9321e04e313c772bd2386d4a97c7 # Parent a5e431cfcc4bd6a496c91e534086fe27da0dfbe2 compile with profiling? diff -r a5e431cfcc4b -r af7d0de9a35c 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/