diff options
author | Roland Stigge <stigge@antcom.de> | 2019-02-17 22:10:33 +0100 |
---|---|---|
committer | Roland Stigge <stigge@antcom.de> | 2019-02-17 22:10:33 +0100 |
commit | eac187fcbafcc518185d1074395c5fbe6a7e5aec (patch) | |
tree | b3585f50f9db0a04fd3e5c781eb9f952e39e4a53 /Makefile | |
parent | 308a53c389cdc2631860f434989cd57efbf91145 (diff) |
Added portaudio support
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,8 @@ +PORTAUDIOCFLAGS=$(shell pkg-config --cflags portaudiocpp) +PORTAUDIOLIBS=$(shell pkg-config --libs portaudiocpp) + CXX=clang++-7 -CXXFLAGS=-stdlib=libc++ -Wall -O2 -std=c++17 +CXXFLAGS=-stdlib=libc++ -Wall -O2 -std=c++17 -fexceptions #-march=native -mtune=native # is not better for llvm # libstdc++-8 doesn't have transform_reduce @@ -12,8 +15,8 @@ PREFIX=/usr/local/bin all: tunerdemo testsuite -tunerdemo: util.o fft.o autocorrelation.o tuner.o tunerdemo.o - $(CXX) $(CXXFLAGS) -o $@ $^ +tunerdemo: audioio.o util.o fft.o autocorrelation.o tuner.o tunerdemo.o + $(CXX) $(CXXFLAGS) $(PORTAUDIOLIBS) -o $@ $^ testsuite: util.o fft.o autocorrelation.o tuner.o testsuite.o $(CXX) $(CXXFLAGS) -o $@ $^ @@ -30,6 +33,9 @@ tuner.o: tuner.cpp tuner.h util.o: util.cpp util.h $(CXX) $(CXXFLAGS) -c -o $@ $< +audioio.o: audioio.cpp audioio.h + $(CXX) $(CXXFLAGS) $(PORTAUDIOCFLAGS) -c -o $@ $< + testsuite.o: testsuite.cpp fft.h autocorrelation.h tuner.h $(CXX) $(CXXFLAGS) -c -o $@ $< |