summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-02-21 11:16:02 +0100
committerRoland Reichwein <mail@reichwein.it>2021-02-21 11:16:02 +0100
commit5b951a8fd1b380daab4f9e470425236f70ac0c8f (patch)
tree23a869f6a8aade01247c0604fdb9f991b3c446d5 /Makefile
parent3b758009c7b1e945444ca3be746d05074bac0dab (diff)
Use boost test
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8325934..bba1d16 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,14 @@ PORTAUDIOCFLAGS=$(shell pkg-config --cflags portaudiocpp)
PORTAUDIOLIBS=$(shell pkg-config --libs portaudiocpp)
CXX=clang++-11
-CXXFLAGS=-stdlib=libc++ -Wall -O2 -std=c++17 -fexceptions -Iexternal
+
+ifeq ($(CXXFLAGS),)
+#CXXFLAGS=-O0 -g -D_DEBUG
+CXXFLAGS=-O2 -DNDEBUG
+endif
+CXXFLAGS+=-stdlib=libc++
+CXXFLAGS+=-Wall
+CXXFLAGS+=-std=c++17 -fexceptions -Iexternal
#-march=native -mtune=native # is not better for llvm
CC=clang
CFLAGS=-Wall -O2 -Iexternal