aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 327570631..09b2adbc3 100644
--- a/Makefile
+++ b/Makefile
@@ -63,22 +63,22 @@ ABCPULL = 1
ifeq ($(CONFIG),clang)
CXX = clang
CXXFLAGS += -std=c++11 -Os
-endif
-ifeq ($(CONFIG),gcc)
+else ifeq ($(CONFIG),gcc)
CXX = gcc
CXXFLAGS += -std=gnu++0x -Os
-endif
-ifeq ($(CONFIG),gcc-4.6)
+else ifeq ($(CONFIG),gcc-4.6)
CXX = gcc-4.6
CXXFLAGS += -std=gnu++0x -Os
-endif
-ifeq ($(CONFIG),emcc)
+else ifeq ($(CONFIG),emcc)
CXX = emcc
CXXFLAGS += -std=c++11 -Os -Wno-warn-absolute-paths
CXXFLAGS := $(filter-out -ggdb,$(CXXFLAGS))
+
+else ifneq ($(CONFIG),none)
+$(error Invalid CONFIG setting '$(CONFIG)'. Valid values: clang, gcc, gcc-4.6, emcc, none)
endif
ifeq ($(ENABLE_READLINE),1)