Mercurial > hg > qm-dsp
annotate tests/Makefile @ 337:df6ee7f3e3db
Add first phase vocoder unit test (failing)
| author | Chris Cannam <c.cannam@qmul.ac.uk> |
|---|---|
| date | Tue, 01 Oct 2013 15:35:55 +0100 |
| parents | 0a632ac70945 |
| children | fac40444b8c3 |
| rev | line source |
|---|---|
| c@335 | 1 |
| c@335 | 2 CFLAGS := -I.. $(CFLAGS) |
| c@335 | 3 CXXFLAGS := -I.. $(CXXFLAGS) |
| c@335 | 4 |
| c@335 | 5 LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework |
| c@335 | 6 LIBS := ../libqm-dsp.a |
| c@335 | 7 |
| c@337 | 8 TESTS := test-window test-fft test-pvoc |
| c@335 | 9 |
| c@335 | 10 all: $(TESTS) |
| c@335 | 11 for t in $(TESTS); do echo "Running $$t"; ./"$$t" || exit 1; done |
| c@335 | 12 |
| c@335 | 13 test-window: TestWindow.o $(LIBS) |
| c@335 | 14 $(CXX) -o $@ $^ $(LDFLAGS) |
| c@335 | 15 |
| c@335 | 16 test-fft: TestFFT.o $(LIBS) |
| c@335 | 17 $(CXX) -o $@ $^ $(LDFLAGS) |
| c@335 | 18 |
| c@337 | 19 test-pvoc: TestPhaseVocoder.o $(LIBS) |
| c@337 | 20 $(CXX) -o $@ $^ $(LDFLAGS) |
| c@337 | 21 |
| c@335 | 22 clean: |
| c@335 | 23 rm *.o $(TESTS) |
| c@335 | 24 |
