From: Clifford Wolf Date: Mon, 25 Aug 2014 10:48:20 +0000 (+0200) Subject: Checking for valid CONFIG value in Makefile X-Git-Tag: yosys-0.4~206 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=672b2c6db1feb252e3fe907f1e24ae273156638a;p=yosys.git Checking for valid CONFIG value in Makefile --- 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)