RetroArch/audio/test/Makefile

36 lines
786 B
Makefile
Raw Normal View History

2012-10-30 23:54:30 +01:00
TESTS := test-hermite test-sinc test-snr-sinc test-snr-hermite
2012-02-25 01:47:23 +01:00
2012-07-06 17:04:54 +01:00
CFLAGS += -O3 -g -Wall -pedantic -std=gnu99 -DRESAMPLER_TEST
2012-02-25 01:47:23 +01:00
LDFLAGS += -lm
all: $(TESTS)
2013-02-08 15:37:40 +01:00
test-hermite: ../hermite.o ../utils.o main.o resampler-hermite.o
2012-02-25 01:47:23 +01:00
$(CC) -o $@ $^ $(LDFLAGS)
2013-02-08 15:37:40 +01:00
test-sinc: ../sinc.o ../utils.o main.o ../hermite.o resampler-sinc.o
2012-02-25 01:47:23 +01:00
$(CC) -o $@ $^ $(LDFLAGS)
2013-02-08 15:37:40 +01:00
test-snr-sinc: ../sinc.o ../utils.o snr.o ../hermite.o resampler-sinc.o
2012-02-25 01:47:23 +01:00
$(CC) -o $@ $^ $(LDFLAGS)
2013-02-08 15:37:40 +01:00
test-snr-hermite: ../hermite.o ../utils.o snr.o resampler-hermite.o
2012-02-25 01:47:23 +01:00
$(CC) -o $@ $^ $(LDFLAGS)
2013-02-08 15:37:40 +01:00
resampler-sinc.o: ../resampler.c
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_SINC
resampler-hermite.o: ../resampler.c
$(CC) -c -o $@ $< $(CFLAGS)
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