diff options
author | Ryan Schmidt <git@ryandesign.com> | 2021-08-01 04:32:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 04:32:55 +0300 |
commit | 6a66195d348e42097d06688a1b60cd61972d0a1f (patch) | |
tree | 11a2e14eac2134800a79ce497a8caeeb7b0ecf6c | |
parent | 69190453741f8f92cb4cd35ef65e6916cdb272e6 (diff) |
Allow user to set CXXFLAGS without losing -std
Allow the user to set the CXXFLAGS environment variable (for example to
specify different optimization flags) while not losing flags necessary
to build (-std=c++11).
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ DESTDIR= PREFIX=/usr/local -CXXFLAGS=-O2 -std=c++11 +CXXFLAGS?=-O2 +CXXFLAGS+=-std=c++11 CPP_FILES=$(wildcard src/*.cpp) OBJ_FILES=$(notdir $(CPP_FILES:.cpp=.o)) |