File: Makefile

package info (click to toggle)
qm-dsp 1.7.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,016 kB
  • sloc: cpp: 59,844; ansic: 8,605; python: 508; makefile: 212; sh: 5
file content (42 lines) | stat: -rw-r--r-- 948 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

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

LDFLAGS := $(LDFLAGS) -lqm-dsp -lboost_unit_test_framework -lpthread
#LIBS := ../libqm-dsp.a

TESTS	:= test-mathutilities test-window test-fft test-pvoc test-resampler test-medianfilter

VG	:= valgrind -q

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)

test-window: TestWindow.o $(LIBS)
	$(CXX) -o $@ $^ $(LDFLAGS)

test-fft: TestFFT.o $(LIBS)
	$(CXX) -o $@ $^ $(LDFLAGS)

test-pvoc: TestPhaseVocoder.o $(LIBS)
	$(CXX) -o $@ $^ $(LDFLAGS)

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

TestMathUtilities.o: $(LIBS)
TestMedianFilter.o: $(LIBS)
TestWindow.o: $(LIBS)
TestFFT.o: $(LIBS)
TestPhaseVocoder.o: $(LIBS)
TestResampler.o: $(LIBS)

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