From d470997f03c84a59d47419556fb1b01f225bc87a Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sun, 17 Nov 2013 14:39:08 +0900 Subject: [PATCH] change -O option depending on make rule --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3618ee56..7ce1f8e0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -O3 +CFLAGS=-Wall PICRIN_LIB=libpicrin.so ifeq ($(findstring CYGWIN,$(shell uname -s)), CYGWIN) @@ -8,10 +8,10 @@ endif all: debug-build run -release: CFLAGS += -DDEBUG=0 +release: CFLAGS += -DDEBUG=0 -O3 release: build -debug-build: CFLAGS += -g -DDEBUG=1 +debug-build: CFLAGS += -g -DDEBUG=1 -O0 debug-build: build build: build-lib build-main