Mercurial > hg > qm-dsp
annotate tests/Makefile @ 409:1f1999b0f577
Bring in kissfft into this repo (formerly a subrepo, but the remote is not responding)
| author | Chris Cannam <c.cannam@qmul.ac.uk> |
|---|---|
| date | Tue, 21 Jul 2015 07:34:15 +0100 |
| parents | a0829908bb74 |
| children | e4a57215ddee |
| rev | line source |
|---|---|
| c@335 | 1 |
| c@335 | 2 CFLAGS := -I.. $(CFLAGS) |
| c@341 | 3 CXXFLAGS := -I.. -Wall -g $(CXXFLAGS) |
| c@335 | 4 |
| c@391 | 5 LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework -lpthread |
| c@335 | 6 LIBS := ../libqm-dsp.a |
| c@335 | 7 |
| c@391 | 8 TESTS := test-mathutilities test-window test-fft test-pvoc test-resampler test-medianfilter |
| c@335 | 9 |
| c@395 | 10 VG := valgrind -q |
| c@355 | 11 |
| c@335 | 12 all: $(TESTS) |
| c@355 | 13 for t in $(TESTS); do echo "Running $$t"; $(VG) ./"$$t" || exit 1; done |
| c@348 | 14 |
| c@391 | 15 test-medianfilter: TestMedianFilter.o $(LIBS) |
| c@391 | 16 $(CXX) -o $@ $^ $(LDFLAGS) |
| c@391 | 17 |
| c@348 | 18 test-mathutilities: TestMathUtilities.o $(LIBS) |
| c@348 | 19 $(CXX) -o $@ $^ $(LDFLAGS) |
| c@335 | 20 |
| c@335 | 21 test-window: TestWindow.o $(LIBS) |
| c@335 | 22 $(CXX) -o $@ $^ $(LDFLAGS) |
| c@335 | 23 |
| c@335 | 24 test-fft: TestFFT.o $(LIBS) |
| c@335 | 25 $(CXX) -o $@ $^ $(LDFLAGS) |
| c@335 | 26 |
| c@337 | 27 test-pvoc: TestPhaseVocoder.o $(LIBS) |
| c@337 | 28 $(CXX) -o $@ $^ $(LDFLAGS) |
| c@337 | 29 |
| c@375 | 30 test-resampler: TestResampler.o $(LIBS) |
| c@375 | 31 $(CXX) -o $@ $^ $(LDFLAGS) |
| c@375 | 32 |
| c@348 | 33 TestMathUtilities.o: $(LIBS) |
| c@391 | 34 TestMedianFilter.o: $(LIBS) |
| c@341 | 35 TestWindow.o: $(LIBS) |
| c@341 | 36 TestFFT.o: $(LIBS) |
| c@341 | 37 TestPhaseVocoder.o: $(LIBS) |
| c@375 | 38 TestResampler.o: $(LIBS) |
| c@341 | 39 |
| c@335 | 40 clean: |
| c@341 | 41 rm -f *.o $(TESTS) |
| c@335 | 42 |
