diff options
author | Roland Stigge <stigge@antcom.de> | 2019-02-17 12:55:13 +0100 |
---|---|---|
committer | Roland Stigge <stigge@antcom.de> | 2019-02-17 12:55:13 +0100 |
commit | fef594c82518a8fe4c96794852c1fc849c0ed3b3 (patch) | |
tree | 2efbedc8b126a77d91633ce8b9201dc4a7db764c /Makefile | |
parent | 1a219839034e9b11a4771fb84c90d4a2667365ce (diff) |
Added tunerdemo
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 24 insertions, 5 deletions
@@ -7,20 +7,39 @@ CXXFLAGS=-stdlib=libc++ -Wall -O2 -std=c++17 #CXXFLAGS=-Wall -O2 -std=c++17 -nostdinc++ -I/usr/lib/llvm-7/include/c++/v1 -nodefaultlibs -lc++ -lc++abi -lm -lc -lgcc_s -lgcc # -march=native -mtune=native # doesn't help for gcc -all: fft +DESTDIR=/ +PREFIX=/usr/local/bin -fft: fft.o main.o +all: tunerdemo testsuite + +tunerdemo: fft.o autocorrelation.o tuner.o tunerdemo.o + $(CXX) $(CXXFLAGS) -o $@ $^ + +testsuite: fft.o autocorrelation.o tuner.o testsuite.o $(CXX) $(CXXFLAGS) -o $@ $^ fft.o: fft.cpp fft.h $(CXX) $(CXXFLAGS) -c -o $@ $< -main.o: main.cpp fft.h +autocorrelation.o: autocorrelation.cpp autocorrelation.h + $(CXX) $(CXXFLAGS) -c -o $@ $< + +tuner.o: tuner.cpp tuner.h $(CXX) $(CXXFLAGS) -c -o $@ $< +testsuite.o: testsuite.cpp fft.h autocorrelation.h tuner.h + $(CXX) $(CXXFLAGS) -c -o $@ $< + +tunerdemo.o: tunerdemo.cpp fft.h autocorrelation.h tuner.h + $(CXX) $(CXXFLAGS) -c -o $@ $< + +test: testsuite + ./testsuite + install: + install tunerdemo $(DESTDIR)/$(PREFIX)/tunerdemo clean: - rm -f fft *.o + rm -f tunerdemo *.o -.PHONY: clean +.PHONY: clean install all test |