RetroArch/audio/test/Makefile

101 lines
2.7 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 13:27:31 +00:00
test-snr-sinc-highest \
test-cc \
test-snr-cc
2012-02-25 00:47:23 +00:00
2014-09-17 18:07:40 +00:00
CFLAGS += -O3 -ffast-math -g -Wall -pedantic -march=native -std=gnu99
CFLAGS += -DRESAMPLER_TEST -DRARCH_DUMMY_LOG
CFLAGS += -I../../libretro-common/include -I../../
2014-09-17 18:07:40 +00:00
2012-02-25 00:47:23 +00:00
LDFLAGS += -lm
all: $(TESTS)
2015-02-11 01:40:18 +00:00
resampler-sinc.o: ../audio_resampler_driver.c
2013-02-13 11:15:09 +00:00
$(CC) -c -o $@ $< $(CFLAGS)
2015-02-11 01:40:18 +00:00
resampler-cc.o: ../audio_resampler_driver.c
2014-09-24 07:39:41 +00:00
$(CC) -c -o $@ $< $(CFLAGS) -DRESAMPLER_IDENT='"CC"'
2014-09-17 18:07:40 +00:00
main-cc.o: main.c
2014-09-24 07:39:41 +00:00
$(CC) -c -o $@ $< $(CFLAGS) -DRESAMPLER_IDENT='"CC"'
2014-09-17 18:07:40 +00:00
snr-cc.o: snr.c
2014-09-24 07:39:41 +00:00
$(CC) -c -o $@ $< $(CFLAGS) -DRESAMPLER_IDENT='"CC"'
2014-03-23 13:27:31 +00:00
2014-09-17 18:07:40 +00:00
cc-resampler.o: ../resamplers/cc_resampler.c
2014-03-23 13:27:31 +00:00
$(CC) -c -o $@ $< $(CFLAGS)
2015-02-11 01:40:18 +00:00
sinc-lowest.o: ../drivers_resampler/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_LOWEST_QUALITY
2015-02-11 01:40:18 +00:00
sinc-lower.o: ../drivers_resampler/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_LOWER_QUALITY
2015-02-11 01:40:18 +00:00
sinc.o: ../drivers_resampler/sinc.c
2014-09-17 18:07:40 +00:00
$(CC) -c -o $@ $< $(CFLAGS)
2015-02-11 01:40:18 +00:00
nearest.o: ../drivers_resampler/nearest.c
$(CC) -c -o $@ $< $(CFLAGS)
2015-02-11 01:40:18 +00:00
sinc-higher.o: ../drivers_resampler/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_HIGHER_QUALITY
2015-02-11 01:40:18 +00:00
sinc-highest.o: ../drivers_resampler/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_HIGHEST_QUALITY
2015-02-11 01:40:18 +00:00
test-sinc-lowest: sinc-lowest.o ../audio_utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-snr-sinc-lowest: sinc-lowest.o ../audio_utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-sinc-lower: sinc-lower.o ../audio_utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-snr-sinc-lower: sinc-lower.o ../audio_utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-sinc: sinc.o ../audio_utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-snr-sinc: sinc.o ../audio_utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-sinc-higher: sinc-higher.o ../audio_utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-snr-sinc-higher: sinc-higher.o ../audio_utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-sinc-highest: sinc-highest.o ../audio_utils.o main.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-snr-sinc-highest: sinc-highest.o ../audio_utils.o snr.o resampler-sinc.o nearest.o
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-cc: cc-resampler.o ../audio_utils.o main-cc.o resampler-cc.o sinc.o nearest.o
2014-03-23 13:27:31 +00:00
$(CC) -o $@ $^ $(LDFLAGS)
2015-02-11 01:40:18 +00:00
test-snr-cc: cc-resampler.o ../audio_utils.o snr-cc.o resampler-cc.o sinc.o nearest.o
2014-03-23 13:27:31 +00:00
$(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