C++11 library providing functionality common to all adapters.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
763 B

4 years ago
  1. # Copyright 2018, pEp Foundation
  2. # This file is part of libpEpAdapter
  3. # This file may be used under the terms of the GNU General Public License version 3
  4. # see LICENSE.txt
  5. HERE:=$(dir $(lastword $(MAKEFILE_LIST)))
  6. TARGET=libpEpAdapter.a
  7. # Build config
  8. # Defaults
  9. DEBUG=1
  10. PREFIX?=$(HOME)
  11. CXXFLAGS+=-std=c++11 -fPIC
  12. # Overrides
  13. -include $(HERE)local.conf
  14. # Constants
  15. CXXFLAGS+=-std=c++11 -fPIC
  16. CXXFLAGS+=-I$(PREFIX)/include
  17. LDFLAGS+=-L$(PREFIX)/lib
  18. ifneq (,$(findstring g++,$(CXX)))
  19. CXXFLAGS+=-fdiagnostics-color=always
  20. else ifneq (,$(findstring clang,$(CXX)))
  21. CXXFLAGS+=-fcolor-diagnostics
  22. endif
  23. ifeq ($(DEBUG),1)
  24. CXXFLAGS+=-g -O0
  25. else
  26. CXXFLAGS+=-DNDEBUG=1 -O3
  27. endif
  28. ifndef ENGINE_TEST
  29. ENGINE_TEST = \"$(HOME)/dev/pEpEngine/test\"
  30. endif