Mercurial > hg > qm-dsp
comparison tests/Makefile @ 150:23558405a7d1
Integrate resampler and tests into build system etc
| author | Chris Cannam |
|---|---|
| date | Mon, 21 Oct 2013 09:40:22 +0100 |
| parents | 6ec45e85ed81 |
| children | 36bcde3c13d8 |
comparison
equal
deleted
inserted
replaced
| 149:734e5fa6f731 | 150:23558405a7d1 |
|---|---|
| 3 CXXFLAGS := -I.. -Wall -g $(CXXFLAGS) | 3 CXXFLAGS := -I.. -Wall -g $(CXXFLAGS) |
| 4 | 4 |
| 5 LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework | 5 LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework |
| 6 LIBS := ../libqm-dsp.a | 6 LIBS := ../libqm-dsp.a |
| 7 | 7 |
| 8 TESTS := test-mathutilities test-window test-fft test-pvoc | 8 TESTS := test-mathutilities test-window test-fft test-pvoc test-resampler |
| 9 | 9 |
| 10 #VG := valgrind | 10 #VG := valgrind |
| 11 | 11 |
| 12 all: $(TESTS) | 12 all: $(TESTS) |
| 13 for t in $(TESTS); do echo "Running $$t"; $(VG) ./"$$t" || exit 1; done | 13 for t in $(TESTS); do echo "Running $$t"; $(VG) ./"$$t" || exit 1; done |
| 22 $(CXX) -o $@ $^ $(LDFLAGS) | 22 $(CXX) -o $@ $^ $(LDFLAGS) |
| 23 | 23 |
| 24 test-pvoc: TestPhaseVocoder.o $(LIBS) | 24 test-pvoc: TestPhaseVocoder.o $(LIBS) |
| 25 $(CXX) -o $@ $^ $(LDFLAGS) | 25 $(CXX) -o $@ $^ $(LDFLAGS) |
| 26 | 26 |
| 27 test-resampler: TestResampler.o $(LIBS) | |
| 28 $(CXX) -o $@ $^ $(LDFLAGS) | |
| 29 | |
| 27 TestMathUtilities.o: $(LIBS) | 30 TestMathUtilities.o: $(LIBS) |
| 28 TestWindow.o: $(LIBS) | 31 TestWindow.o: $(LIBS) |
| 29 TestFFT.o: $(LIBS) | 32 TestFFT.o: $(LIBS) |
| 30 TestPhaseVocoder.o: $(LIBS) | 33 TestPhaseVocoder.o: $(LIBS) |
| 34 TestResampler.o: $(LIBS) | |
| 31 | 35 |
| 32 clean: | 36 clean: |
| 33 rm -f *.o $(TESTS) | 37 rm -f *.o $(TESTS) |
| 34 | 38 |
