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