annotate tests/Makefile @ 348:50fae18236ee

Some (but not all) MathUtilities unit tests, and accompanying fixes
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 04 Oct 2013 18:34:30 +0100
parents 5eb9c2387108
children 6ec45e85ed81
rev   line source
c@335 1
c@335 2 CFLAGS := -I.. $(CFLAGS)
c@341 3 CXXFLAGS := -I.. -Wall -g $(CXXFLAGS)
c@335 4
c@335 5 LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework
c@335 6 LIBS := ../libqm-dsp.a
c@335 7
c@348 8 TESTS := test-mathutilities test-window test-fft test-pvoc
c@335 9
c@335 10 all: $(TESTS)
c@348 11 for t in $(TESTS); do echo "Running $$t"; ./"$$t" || exit 1; done
c@348 12
c@348 13 test-mathutilities: TestMathUtilities.o $(LIBS)
c@348 14 $(CXX) -o $@ $^ $(LDFLAGS)
c@335 15
c@335 16 test-window: TestWindow.o $(LIBS)
c@335 17 $(CXX) -o $@ $^ $(LDFLAGS)
c@335 18
c@335 19 test-fft: TestFFT.o $(LIBS)
c@335 20 $(CXX) -o $@ $^ $(LDFLAGS)
c@335 21
c@337 22 test-pvoc: TestPhaseVocoder.o $(LIBS)
c@337 23 $(CXX) -o $@ $^ $(LDFLAGS)
c@337 24
c@348 25 TestMathUtilities.o: $(LIBS)
c@341 26 TestWindow.o: $(LIBS)
c@341 27 TestFFT.o: $(LIBS)
c@341 28 TestPhaseVocoder.o: $(LIBS)
c@341 29
c@335 30 clean:
c@341 31 rm -f *.o $(TESTS)
c@335 32