2013-02-12 17:18:05 +00:00
|
|
|
TESTS := test-hermite \
|
|
|
|
test-snr-hermite \
|
|
|
|
test-sinc-lowest \
|
|
|
|
test-snr-sinc-lowest \
|
|
|
|
test-sinc-lower \
|
|
|
|
test-snr-sinc-lower \
|
|
|
|
test-sinc \
|
|
|
|
test-snr-sinc \
|
|
|
|
test-sinc-higher \
|
|
|
|
test-snr-sinc-higher \
|
|
|
|
test-sinc-highest \
|
|
|
|
test-snr-sinc-highest
|
2012-02-25 00:47:23 +00:00
|
|
|
|
2013-02-14 10:56:35 +00:00
|
|
|
CFLAGS += -O3 -ffast-math -g -Wall -pedantic -march=native -std=gnu99 -DRESAMPLER_TEST
|
2012-02-25 00:47:23 +00:00
|
|
|
LDFLAGS += -lm
|
|
|
|
|
|
|
|
all: $(TESTS)
|
|
|
|
|
2013-02-13 11:15:09 +00:00
|
|
|
test-hermite: hermite.o ../utils.o main.o resampler-hermite.o
|
2012-02-25 00:47:23 +00:00
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
2013-02-13 11:15:09 +00:00
|
|
|
test-snr-hermite: hermite.o ../utils.o snr.o resampler-hermite.o
|
2012-02-25 00:47:23 +00:00
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
2013-02-08 14:37:40 +00:00
|
|
|
resampler-sinc.o: ../resampler.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_SINC
|
|
|
|
|
|
|
|
resampler-hermite.o: ../resampler.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
2013-02-13 11:15:09 +00:00
|
|
|
hermite.o: ../hermite.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
2013-02-12 17:18:05 +00:00
|
|
|
sinc-lowest.o: ../sinc.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_SINC -DSINC_LOWEST_QUALITY
|
|
|
|
|
|
|
|
sinc-lower.o: ../sinc.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_SINC -DSINC_LOWER_QUALITY
|
|
|
|
|
|
|
|
sinc.o: ../sinc.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_SINC
|
|
|
|
|
|
|
|
sinc-higher.o: ../sinc.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_SINC -DSINC_HIGHER_QUALITY
|
|
|
|
|
|
|
|
sinc-highest.o: ../sinc.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_SINC -DSINC_HIGHEST_QUALITY
|
|
|
|
|
|
|
|
test-sinc-lowest: sinc-lowest.o ../utils.o main.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
test-snr-sinc-lowest: sinc-lowest.o ../utils.o snr.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
test-sinc-lower: sinc-lower.o ../utils.o main.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
test-snr-sinc-lower: sinc-lower.o ../utils.o snr.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
test-sinc: sinc.o ../utils.o main.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
test-snr-sinc: sinc.o ../utils.o snr.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
test-sinc-higher: sinc-higher.o ../utils.o main.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
test-snr-sinc-higher: sinc-higher.o ../utils.o snr.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
test-sinc-highest: sinc-highest.o ../utils.o main.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
test-snr-sinc-highest: sinc-highest.o ../utils.o snr.o ../hermite.o resampler-sinc.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
2012-02-25 00:47:23 +00:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TESTS)
|
|
|
|
rm -f *.o
|
|
|
|
rm -f ../*.o
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|