|
|
|
@ -22,22 +22,24 @@ MKDIR=mkdir -p |
|
|
|
|
RM=rm -rf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CFLAGS_OPT+=-fomit-frame-pointer -DNDEBUG
|
|
|
|
|
ifeq ($(CXX),clang++) |
|
|
|
|
CFLAGS_OPT+=-O3
|
|
|
|
|
else |
|
|
|
|
ifeq ($(shell expr $(GCC_VER) \> 4.6.0),1)
|
|
|
|
|
CFLAGS_OPT+=-Ofast
|
|
|
|
|
else
|
|
|
|
|
ifneq ($(DEBUG),1) |
|
|
|
|
CFLAGS_OPT+=-fomit-frame-pointer -DNDEBUG
|
|
|
|
|
ifeq ($(CXX),clang++)
|
|
|
|
|
CFLAGS_OPT+=-O3
|
|
|
|
|
else
|
|
|
|
|
ifeq ($(shell expr $(GCC_VER) \> 4.6.0),1)
|
|
|
|
|
CFLAGS_OPT+=-Ofast
|
|
|
|
|
else
|
|
|
|
|
CFLAGS_OPT+=-O3
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(MARCH),)
|
|
|
|
|
ifeq ($(shell expr $(GCC_VER) \> 4.2.1),1)
|
|
|
|
|
CFLAGS_OPT+=-march=native
|
|
|
|
|
endif
|
|
|
|
|
else
|
|
|
|
|
CFLAGS_OPT+=$(MARCH)
|
|
|
|
|
endif
|
|
|
|
|
endif |
|
|
|
|
ifeq ($(MARCH),) |
|
|
|
|
ifeq ($(shell expr $(GCC_VER) \> 4.2.1),1) |
|
|
|
|
CFLAGS_OPT+=-march=native
|
|
|
|
|
endif |
|
|
|
|
else |
|
|
|
|
CFLAGS_OPT+=$(MARCH)
|
|
|
|
|
endif |
|
|
|
|
CFLAGS_WARN=-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith
|
|
|
|
|
CFLAGS+= -g3
|
|
|
|
|