use -O2 for release, -g for debug (so we can get symbols for gdb)
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 10 Jan 2011 14:54:30 +0000 (14:54 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 10 Jan 2011 14:54:30 +0000 (14:54 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@681 2bbb7eff-a529-9590-31e7-b0007b416f81

Makefile

index 4afa0df..b1a18a1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ CC := gcc
 GPP := g++
 C_INCLUDES := -Iinclude/config -Iinclude/core -Iinclude/effects -Iinclude/images -Iinclude/gpu -Iinclude/utils -Igpu/include
 
-CFLAGS := -Wall -O2 -fstrict-aliasing
+CFLAGS := -Wall -fstrict-aliasing
 CFLAGS_SSE2 = $(CFLAGS) -msse2
 LINKER_OPTS := -lpthread -lz
 DEFINES := -DSK_CAN_USE_FLOAT
@@ -19,7 +19,9 @@ endif
 
 ifeq ($(SKIA_DEBUG),true)
        DEFINES += -DSK_DEBUG -DSK_SUPPORT_UNIT -DGR_DEBUG=1
+       CFLAGS := -g
 else
+       CFLAGS := -O2
        DEFINES += -DSK_RELEASE -DGR_DEBUG=0
 endif