|
|
@ -3,18 +3,16 @@ |
|
|
|
# This file may be used under the terms of the GNU General Public License version 3
|
|
|
|
# see LICENSE.txt
|
|
|
|
|
|
|
|
HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
|
|
|
BUILD_CONF?=./build.conf |
|
|
|
-include $(BUILD_CONF) |
|
|
|
|
|
|
|
TARGET=libpEpAdapter.a |
|
|
|
|
|
|
|
# Build config
|
|
|
|
# Defaults
|
|
|
|
DEBUG=1 |
|
|
|
DEBUG?=debug |
|
|
|
PREFIX?=$(HOME) |
|
|
|
|
|
|
|
# Overrides
|
|
|
|
-include $(HERE)local.conf |
|
|
|
|
|
|
|
# Constants
|
|
|
|
CXXFLAGS+=-std=c++11 -fPIC |
|
|
|
CXXFLAGS+=-Wall -pedantic-errors -Wno-unused-parameter -Wno-reorder-ctor |
|
|
@ -30,10 +28,10 @@ else ifneq (,$(findstring clang,$(CXX))) |
|
|
|
CFLAGS+=-fcolor-diagnostics |
|
|
|
endif |
|
|
|
|
|
|
|
ifeq ($(DEBUG),1) |
|
|
|
CXXFLAGS+=-g -O0 |
|
|
|
CFLAGS+=-g -O0 |
|
|
|
else |
|
|
|
ifeq ($(DEBUG),release) |
|
|
|
CXXFLAGS+=-DNDEBUG=1 -O3 |
|
|
|
CFLAGS+=-DNDEBUG=1 -O3 |
|
|
|
else |
|
|
|
CXXFLAGS+=-g -O0 |
|
|
|
CFLAGS+=-g -O0 |
|
|
|
endif |
|
|
|