2021-02-02 12:29:56 +00:00
|
|
|
tests = fft_fr_test fft_util_test
|
2021-02-01 20:15:45 +00:00
|
|
|
|
2021-02-02 11:18:43 +00:00
|
|
|
.PRECIOUS: %.o
|
2021-02-01 20:15:45 +00:00
|
|
|
|
2021-02-02 11:18:43 +00:00
|
|
|
%.o: %.c %.h c-kzg.h
|
|
|
|
clang -Wall -c $*.c
|
|
|
|
|
2021-02-02 12:29:56 +00:00
|
|
|
fft_fr_test: fft_fr.o fft_fr_test.c test_util.o fft_util.o
|
|
|
|
clang -Wall -o $@ $@.c test_util.o fft_fr.o fft_util.o -L../lib -lblst
|
|
|
|
./$@
|
|
|
|
|
2021-02-02 11:18:43 +00:00
|
|
|
%_test: %.o %_test.c test_util.o
|
2021-02-02 11:42:56 +00:00
|
|
|
clang -Wall -o $@ $@.c test_util.o $*.o -L../lib -lblst
|
2021-02-02 11:18:43 +00:00
|
|
|
./$@
|
2021-02-01 20:15:45 +00:00
|
|
|
|
|
|
|
test: $(tests)
|
2021-02-02 11:18:43 +00:00
|
|
|
rm -f $(tests)
|
2021-02-01 20:15:45 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f $(tests)
|
|
|
|
rm -f a.out
|