RetroArch/audio/test/Makefile

36 lines
699 B
Makefile
Raw Normal View History

2012-07-06 16:04:54 +00:00
TESTS := test-hermite test-sinc test-sinc-fixed test-snr-sinc test-snr-hermite
2012-02-25 00:47:23 +00:00
2012-07-06 16:04:54 +00:00
CFLAGS += -O3 -g -Wall -pedantic -std=gnu99 -DRESAMPLER_TEST
2012-02-25 00:47:23 +00:00
LDFLAGS += -lm
all: $(TESTS)
test-hermite: ../hermite.o ../utils.o main.o
$(CC) -o $@ $^ $(LDFLAGS)
test-sinc: ../sinc.o ../utils.o main.o
$(CC) -o $@ $^ $(LDFLAGS)
2012-07-06 16:04:54 +00:00
test-sinc-fixed: ../sinc-fixed.o main-fixed.o
$(CC) -o $@ $^ $(LDFLAGS)
2012-02-25 00:47:23 +00:00
test-snr-sinc: ../sinc.o ../utils.o snr.o
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-hermite: ../hermite.o ../utils.o snr.o
$(CC) -o $@ $^ $(LDFLAGS)
2012-07-06 16:04:54 +00:00
%-fixed.o: %.c
$(CC) -c -o $@ $< $(CFLAGS) -DHAVE_FIXED_POINT
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