summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-02-17 20:24:17 +0000
committerbjarni <bjarni@openttd.org>2006-02-17 20:24:17 +0000
commit3161c5973e49504dd078298a0da6097ae3cc9584 (patch)
tree451c00958c3343f6fa940b1e3c2f3c701bc84c22 /Makefile
parent06b6ad92174c8a80db1b911267ea209f09ab5bc5 (diff)
downloadopenttd-3161c5973e49504dd078298a0da6097ae3cc9584.tar.xz
(svn r3611) -Feature: [OSX profiling] Shark (Xcode's profiling tool) can now relate CPU usage to lines in the source files
Now OSX users can tell what lines in the C code that keeps the CPU busy instead of just ASM code Note: PROFILE needs to be enabled in Makefile.config for this to work
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 139c5e211..852a8b6c1 100644
--- a/Makefile
+++ b/Makefile
@@ -325,6 +325,10 @@ endif
ifdef PROFILE
CFLAGS += -pg
LDFLAGS += -pg
+ ifdef OSX
+ # Shark (Xcode's profiling tool) needs -g to relate CPU usage to line numbers in the source code
+ BASECFLAGS += -g
+ endif
endif
CDEFS=-DWITH_REV