Added "make config-gcc-4.7"

This commit is contained in:
Clifford Wolf 2014-07-24 02:12:24 +02:00
parent fa71ae89ac
commit 2267db5834
1 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,7 @@
CONFIG := clang-debug CONFIG := clang-debug
# CONFIG := gcc-debug # CONFIG := gcc-debug
# CONFIG := gcc-4.7
# CONFIG := release # CONFIG := release
# features (the more the better) # features (the more the better)
@ -64,6 +65,11 @@ CXX = gcc
CXXFLAGS += -std=gnu++0x -Os CXXFLAGS += -std=gnu++0x -Os
endif endif
ifeq ($(CONFIG),gcc-4.7)
CXX = gcc-4.7
CXXFLAGS += -std=gnu++0x -march=native -O3
endif
ifeq ($(CONFIG),release) ifeq ($(CONFIG),release)
CXX = gcc CXX = gcc
CXXFLAGS += -std=gnu++0x -march=native -O3 -DNDEBUG CXXFLAGS += -std=gnu++0x -march=native -O3 -DNDEBUG
@ -208,6 +214,9 @@ config-clang-debug: clean
config-gcc-debug: clean config-gcc-debug: clean
echo 'CONFIG := gcc-debug' > Makefile.conf echo 'CONFIG := gcc-debug' > Makefile.conf
config-gcc-4.7: clean
echo 'CONFIG := gcc-4.7' > Makefile.conf
config-release: clean config-release: clean
echo 'CONFIG := release' > Makefile.conf echo 'CONFIG := release' > Makefile.conf