|
@ -10,15 +10,11 @@ TARGET=libpEpDatatypes.a |
|
|
# Defaults
|
|
|
# Defaults
|
|
|
DEBUG=1 |
|
|
DEBUG=1 |
|
|
PREFIX?=$(HOME) |
|
|
PREFIX?=$(HOME) |
|
|
ENGINE_LIB_PATH=$(PREFIX)/lib |
|
|
PREFIX_GTEST=/opt/local/ |
|
|
ENGINE_INC_PATH=$(PREFIX)/include |
|
|
|
|
|
LANG_VERSION=c++17 |
|
|
LANG_VERSION=c++17 |
|
|
|
|
|
|
|
|
CXXFLAGS+=-fPIC |
|
|
CXXFLAGS+=-fPIC |
|
|
|
|
|
|
|
|
# Build target
|
|
|
|
|
|
BUILD_FOR:=$(shell uname) |
|
|
|
|
|
|
|
|
|
|
|
ifneq (,$(findstring g++,$(CXX))) |
|
|
ifneq (,$(findstring g++,$(CXX))) |
|
|
CXXFLAGS+=-fdiagnostics-color=always |
|
|
CXXFLAGS+=-fdiagnostics-color=always |
|
|
else ifneq (,$(findstring clang,$(CXX))) |
|
|
else ifneq (,$(findstring clang,$(CXX))) |
|
@ -37,13 +33,4 @@ else |
|
|
CXXFLAGS+=-DNDEBUG=1 -O3 |
|
|
CXXFLAGS+=-DNDEBUG=1 -O3 |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
# Add -L Prefixes to LIB/INC paths,
|
|
|
CXXFLAGS+=-I$(PREFIX)/include |
|
|
# if not already explicitly set in local.conf
|
|
|
|
|
|
ifndef ENGINE_LIB |
|
|
|
|
|
ENGINE_LIB=-L$(ENGINE_LIB_PATH) |
|
|
|
|
|
endif |
|
|
|
|
|
ifndef ENGINE_INC |
|
|
|
|
|
ENGINE_INC=-I$(ENGINE_INC_PATH) |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
CXXFLAGS += $(ENGINE_INC) |
|
|
|
|
|