diff tests/Makefile @ 166:36bcde3c13d8

Median filter test
author Chris Cannam
date Mon, 07 Apr 2014 13:43:48 +0100
parents 23558405a7d1
children 8c86761a5533
line wrap: on
line diff
--- a/tests/Makefile	Fri Apr 04 13:49:59 2014 +0100
+++ b/tests/Makefile	Mon Apr 07 13:43:48 2014 +0100
@@ -2,16 +2,19 @@
 CFLAGS := -I.. $(CFLAGS)
 CXXFLAGS := -I.. -Wall -g $(CXXFLAGS)
 
-LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework
+LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework -lpthread
 LIBS := ../libqm-dsp.a
 
-TESTS	:= test-mathutilities test-window test-fft test-pvoc test-resampler
+TESTS	:= test-mathutilities test-window test-fft test-pvoc test-resampler test-medianfilter
 
 #VG	:= valgrind
 
 all: $(TESTS)
 	for t in $(TESTS); do echo "Running $$t"; $(VG) ./"$$t" || exit 1; done
 
+test-medianfilter: TestMedianFilter.o $(LIBS)
+	$(CXX) -o $@ $^ $(LDFLAGS)
+
 test-mathutilities: TestMathUtilities.o $(LIBS)
 	$(CXX) -o $@ $^ $(LDFLAGS)
 
@@ -28,6 +31,7 @@
 	$(CXX) -o $@ $^ $(LDFLAGS)
 
 TestMathUtilities.o: $(LIBS)
+TestMedianFilter.o: $(LIBS)
 TestWindow.o: $(LIBS)
 TestFFT.o: $(LIBS)
 TestPhaseVocoder.o: $(LIBS)