RetroArch/audio/test/Makefile

100 lines
2.6 KiB
Makefile
Raw Normal View History

TESTS := 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 \
2014-03-23 14:27:31 +01:00
test-snr-sinc-highest \
test-cc \
test-snr-cc
2012-02-25 01:47:23 +01:00
2014-09-17 19:07:40 +01:00
CFLAGS += -O3 -ffast-math -g -Wall -pedantic -march=native -std=gnu99
CFLAGS += -DRESAMPLER_TEST -DRARCH_DUMMY_LOG
2012-02-25 01:47:23 +01:00
LDFLAGS += -lm
all: $(TESTS)
2014-09-17 19:07:40 +01:00
resampler-sinc.o: ../resamplers/resampler.c
2013-02-13 12:15:09 +01:00
$(CC) -c -o $@ $< $(CFLAGS)
2014-09-17 19:07:40 +01:00
resampler-cc.o: ../resamplers/resampler.c
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_CC_RESAMPLER -DRESAMPLER_IDENT='"CC"'
main-cc.o: main.c
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_CC_RESAMPLER -DRESAMPLER_IDENT='"CC"'
snr-cc.o: snr.c
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_CC_RESAMPLER -DRESAMPLER_IDENT='"CC"'
2014-03-23 14:27:31 +01:00
2014-09-17 19:07:40 +01:00
cc-resampler.o: ../resamplers/cc_resampler.c
2014-03-23 14:27:31 +01:00
$(CC) -c -o $@ $< $(CFLAGS)
2014-09-17 19:07:40 +01:00
sinc-lowest.o: ../resamplers/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_LOWEST_QUALITY
2014-09-17 19:07:40 +01:00
sinc-lower.o: ../resamplers/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_LOWER_QUALITY
2014-09-17 19:07:40 +01:00
sinc.o: ../resamplers/sinc.c
$(CC) -c -o $@ $< $(CFLAGS)
nearest.o: ../resamplers/nearest.c
$(CC) -c -o $@ $< $(CFLAGS)
2014-09-17 19:07:40 +01:00
sinc-higher.o: ../resamplers/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_HIGHER_QUALITY
2014-09-17 19:07:40 +01:00
sinc-highest.o: ../resamplers/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_HIGHEST_QUALITY
2014-09-17 19:07:40 +01:00
test-sinc-lowest: sinc-lowest.o ../utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-snr-sinc-lowest: sinc-lowest.o ../utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-sinc-lower: sinc-lower.o ../utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-snr-sinc-lower: sinc-lower.o ../utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-sinc: sinc.o ../utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-snr-sinc: sinc.o ../utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-sinc-higher: sinc-higher.o ../utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-snr-sinc-higher: sinc-higher.o ../utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-sinc-highest: sinc-highest.o ../utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-snr-sinc-highest: sinc-highest.o ../utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-cc: cc-resampler.o ../utils.o main-cc.o resampler-cc.o sinc.o nearest.o
2014-03-23 14:27:31 +01:00
$(CC) -o $@ $^ $(LDFLAGS)
2014-09-17 19:07:40 +01:00
test-snr-cc: cc-resampler.o ../utils.o snr-cc.o resampler-cc.o sinc.o nearest.o
2014-03-23 14:27:31 +01:00
$(CC) -o $@ $^ $(LDFLAGS)
2012-02-25 01:47:23 +01:00
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
clean:
rm -f $(TESTS)
rm -f *.o
rm -f ../*.o
.PHONY: clean