diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,7 +1,8 @@ | |||
1 | #### PROJECT SETTINGS #### | 1 | #### PROJECT SETTINGS #### |
2 | # The name of the executable to be created | 2 | # The name of the executable to be created |
3 | BIN_NAME := moonp | 3 | BIN_NAME := moonp |
4 | 4 | # Compiler used | |
5 | CXX ?= g++ | ||
5 | # Extension of source files used in the project | 6 | # Extension of source files used in the project |
6 | SRC_EXT = cpp | 7 | SRC_EXT = cpp |
7 | # Path to the source directory, relative to the makefile | 8 | # Path to the source directory, relative to the makefile |
@@ -40,12 +41,9 @@ TEST_OUTPUT = ./spec/outputs | |||
40 | # Obtains the OS type, either 'Darwin' (OS X) or 'Linux' | 41 | # Obtains the OS type, either 'Darwin' (OS X) or 'Linux' |
41 | UNAME_S:=$(shell uname -s) | 42 | UNAME_S:=$(shell uname -s) |
42 | 43 | ||
43 | # Select compiler, add platform related linker flag | 44 | # Add platform related linker flag |
44 | ifeq ($(UNAME_S),Darwin) | 45 | ifneq ($(UNAME_S),Darwin) |
45 | CXX ?= clang | ||
46 | else | ||
47 | LINK_FLAGS += -lstdc++fs | 46 | LINK_FLAGS += -lstdc++fs |
48 | CXX ?= clang-9 | ||
49 | endif | 47 | endif |
50 | 48 | ||
51 | # Function used to check variables. Use on the command line: | 49 | # Function used to check variables. Use on the command line: |