change -O option depending on make rule

This commit is contained in:
Yuichi Nishiwaki 2013-11-17 14:39:08 +09:00
parent 6d825666e2
commit d470997f03
1 changed files with 3 additions and 3 deletions

View File

@ -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