view garage-resampler/Makefile @ 6:f55097c5d69f

Some fixes, and start on spectrum test
author Chris Cannam
date Tue, 15 Oct 2013 18:27:19 +0100
parents 1c3ab56ee9b5
children dfec65a1ca6b
line wrap: on
line source

CFLAGS := -I../.. $(CFLAGS)
CXXFLAGS := -I../.. -Wall -g $(CXXFLAGS)
#CXXFLAGS := -I../.. -Wall -O3  $(CXXFLAGS)

LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework
LIBS := ../../qm-dsp/libqm-dsp.a

TESTS	:= test-resampler

VG	:= valgrind

all: $(TESTS)
	@for t in $(TESTS); do echo "Running $$t"; $(VG) ./"$$t" || exit 1; done

test-resampler: TestResampler.o Resampler.o $(LIBS)
	$(CXX) -o $@ $^ $(LDFLAGS)

TestResampler.o: Resampler.h Resampler.cpp $(LIBS)

clean: 
	rm -f *.o $(TESTS)