Makefile: get target platform from compiler

This commit is contained in:
yangfl 2018-01-05 18:37:32 +08:00
parent 34c98e03c1
commit 9cc4e8d03a
3 changed files with 11 additions and 9 deletions

View file

@ -1,5 +1,5 @@
CXX = clang++
CXXFLAGS = -O2
CXXFLAGS ?= -g -Wall -Wextra -Wno-unused-parameter -pedantic -Wno-misleading-indentation
## NOTE: NEEDED_CXXFLAGS is here so that custom CXXFLAGS can be specified at build time
## **without** overwriting the CXXFLAGS which we need in order to build.
## For example, when adding 'hardening flags' to the build