change -O option depending on make rule
This commit is contained in:
parent
6d825666e2
commit
d470997f03
6
Makefile
6
Makefile
|
@ -1,5 +1,5 @@
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -O3
|
CFLAGS=-Wall
|
||||||
PICRIN_LIB=libpicrin.so
|
PICRIN_LIB=libpicrin.so
|
||||||
|
|
||||||
ifeq ($(findstring CYGWIN,$(shell uname -s)), CYGWIN)
|
ifeq ($(findstring CYGWIN,$(shell uname -s)), CYGWIN)
|
||||||
|
@ -8,10 +8,10 @@ endif
|
||||||
|
|
||||||
all: debug-build run
|
all: debug-build run
|
||||||
|
|
||||||
release: CFLAGS += -DDEBUG=0
|
release: CFLAGS += -DDEBUG=0 -O3
|
||||||
release: build
|
release: build
|
||||||
|
|
||||||
debug-build: CFLAGS += -g -DDEBUG=1
|
debug-build: CFLAGS += -g -DDEBUG=1 -O0
|
||||||
debug-build: build
|
debug-build: build
|
||||||
|
|
||||||
build: build-lib build-main
|
build: build-lib build-main
|
||||||
|
|
Loading…
Reference in New Issue