aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/makefile b/makefile
index a285842..d176ee3 100644
--- a/makefile
+++ b/makefile
@@ -1,8 +1,7 @@
1#### PROJECT SETTINGS #### 1#### PROJECT SETTINGS ####
2# The name of the executable to be created 2# The name of the executable to be created
3BIN_NAME := moonp 3BIN_NAME := moonp
4# Compiler used 4
5CXX ?= g++
6# Extension of source files used in the project 5# Extension of source files used in the project
7SRC_EXT = cpp 6SRC_EXT = cpp
8# Path to the source directory, relative to the makefile 7# Path to the source directory, relative to the makefile
@@ -41,6 +40,14 @@ TEST_OUTPUT = ./spec/outputs
41# Obtains the OS type, either 'Darwin' (OS X) or 'Linux' 40# Obtains the OS type, either 'Darwin' (OS X) or 'Linux'
42UNAME_S:=$(shell uname -s) 41UNAME_S:=$(shell uname -s)
43 42
43# Select compiler, add platform related linker flag
44ifeq ($(UNAME_S),Darwin)
45 CXX ?= clang
46else
47 LINK_FLAGS += -lstdc++fs
48 CXX ?= g++-8
49endif
50
44# Function used to check variables. Use on the command line: 51# Function used to check variables. Use on the command line:
45# make print-VARNAME 52# make print-VARNAME
46# Useful for debugging and adding features 53# Useful for debugging and adding features