From 3c8069fa1423c13ccebf86210d671b3e1db2e943 Mon Sep 17 00:00:00 2001 From: heck Date: Fri, 1 Oct 2021 14:44:44 +0200 Subject: [PATCH 1/2] concept. --- Makefile.conf | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile.conf b/Makefile.conf index 6c8e93d..68f6663 100644 --- a/Makefile.conf +++ b/Makefile.conf @@ -12,6 +12,7 @@ DEBUG=1 PREFIX?=$(HOME) ENGINE_LIB_PATH=$(PREFIX)/lib ENGINE_INC_PATH=$(PREFIX)/include +LANG_VERSION=c++14 CXXFLAGS+=-fPIC @@ -28,19 +29,14 @@ endif ######### Overrides ######### -include $(HERE)local.conf +CXXFLAGS+=-std=$(LANG_VERSION) + ifeq ($(DEBUG),1) CXXFLAGS+=-g -O0 else CXXFLAGS+=-DNDEBUG=1 -O3 endif -ifdef $(LANG_VERSION) -CXXFLAGS+=-std=$(LANG_VERSION) -else -CXXFLAGS+=-std=c++14 -endif - - # Add -L Prefixes to LIB/INC paths, # if not already explicitly set in local.conf ifndef ENGINE_LIB From f677af8732bb24566387484b7cf3eef828f4021a Mon Sep 17 00:00:00 2001 From: heck Date: Fri, 1 Oct 2021 14:44:49 +0200 Subject: [PATCH 2/2] doc. --- local.conf.example | 1 + 1 file changed, 1 insertion(+) diff --git a/local.conf.example b/local.conf.example index 4fdb937..1e38464 100644 --- a/local.conf.example +++ b/local.conf.example @@ -6,6 +6,7 @@ ######### C++ Compiler ######### # Should work with clang and g++ # CXX=g++ +# LANG_VERSION=c++14 # DEBUG=1 # DEBUG Build (Default) # DEBUG=0 # RELEASE Build