view test/Makefile @ 39:822cf7b8e070

Start separating out PeakInterpolator & writing test for it
author Chris Cannam
date Thu, 19 Jul 2012 18:10:50 +0100
parents 944898c2e14e
children
line wrap: on
line source
CXX	?= g++
CC	?= gcc

CFLAGS		:= $(CFLAGS) 
CXXFLAGS	:= $(CXXFLAGS) -I..
LDFLAGS		:= $(LDFLAGS) -lvamp-sdk -lboost_unit_test_framework

SUPER_OBJECTS	:= ../NoteHypothesis.o ../PeakInterpolator.o

OBJECTS		:= TestNoteHypothesis.o TestPeakInterpolator.o

TESTS		:= test-notehypothesis test-peakinterpolator

all:	run-tests

test-notehypothesis:	TestNoteHypothesis.o
	$(CXX) -o $@ $^ $(SUPER_OBJECTS) $(LDFLAGS)

test-peakinterpolator:	TestPeakInterpolator.o
	$(CXX) -o $@ $^ $(SUPER_OBJECTS) $(LDFLAGS)

run-tests:	$(TESTS)
		for t in $(TESTS); do ./"$$t" || exit 1; done

clean:	
	rm -f $(OBJECTS)

distclean:	clean
	rm -f $(TESTS)