|
@ -7,19 +7,15 @@ HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PREFIX=$(HOME) |
|
|
PREFIX=$(HOME) |
|
|
CXXFLAGS=-std=c++11 |
|
|
CXXFLAGS=-std=c++11 -fPIC -O0 $(ENGINE_INC) |
|
|
|
|
|
|
|
|
# Build target
|
|
|
# Build target
|
|
|
BUILD_FOR:=$(shell uname) |
|
|
BUILD_FOR:=$(shell uname) |
|
|
|
|
|
|
|
|
ifeq ($(BUILD_FOR),Linux) |
|
|
ifneq (,$(findstring g++,$(CXX))) |
|
|
$(info Building for Linux) |
|
|
CXXFLAGS+=-fdiagnostics-color=always |
|
|
CXX=g++ |
|
|
else ifneq (,$(findstring clang,$(CXX))) |
|
|
CXXFLAGS+=-fdiagnostics-color=always -O0 $(ENGINE_INC) -fPIC |
|
|
CXXFLAGS+=-fcolor-diagnostics |
|
|
else ifeq ($(BUILD_FOR),Darwin) |
|
|
|
|
|
$(info Building for Darwin) |
|
|
|
|
|
CXX=clang |
|
|
|
|
|
CXXFLAGS+=-fcolor-diagnostics -O0 $(ENGINE_INC) |
|
|
|
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
# Debug or Release build
|
|
|
# Debug or Release build
|
|
|