summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7c5b04d..8325934 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,9 @@
PORTAUDIOCFLAGS=$(shell pkg-config --cflags portaudiocpp)
PORTAUDIOLIBS=$(shell pkg-config --libs portaudiocpp)
-CXX=clang++-7
+CXX=clang++-11
CXXFLAGS=-stdlib=libc++ -Wall -O2 -std=c++17 -fexceptions -Iexternal
#-march=native -mtune=native # is not better for llvm
-CXXTESTFLAGS=-I/usr/src/googletest/googletest/include -I/usr/src/googletest/googlemock/include
CC=clang
CFLAGS=-Wall -O2 -Iexternal
@@ -14,7 +13,7 @@ CFLAGS=-Wall -O2 -Iexternal
# -march=native -mtune=native # doesn't help for gcc
DESTDIR=/
-PREFIX=/usr/local/bin
+PREFIX=/usr/bin
all: tunerdemo testsuite
@@ -52,7 +51,10 @@ test: testsuite
./testsuite
install:
+ mkdir -p $(DESTDIR)/$(PREFIX)
install tunerdemo $(DESTDIR)/$(PREFIX)/tunerdemo
+ mkdir -p $(DESTDIR)/usr/include
+ install fft.h $(DESTDIR)/usr/include/fft.h
clean:
rm -f tunerdemo testsuite *.o external/*.o