Add Makefile as a dependency for tests

This commit is contained in:
Ben Edgington 2021-02-03 00:06:51 +00:00
parent ae43c79f3f
commit 3eb1096bfb
1 changed files with 3 additions and 3 deletions

View File

@ -5,15 +5,15 @@ tests = fft_util_test fft_fr_test fft_g1_test
%.o: %.c %.h c-kzg.h
clang -Wall -c $*.c
fft_fr_test: fft_fr.o fft_fr_test.c test_util.o fft_util.o
fft_fr_test: fft_fr.o fft_fr_test.c test_util.o fft_util.o Makefile
clang -Wall -o $@ $@.c test_util.o fft_fr.o fft_util.o -L../lib -lblst
./$@
fft_g1_test: fft_g1.o fft_g1_test.c test_util.o fft_util.o
fft_g1_test: fft_g1.o fft_g1_test.c test_util.o fft_util.o Makefile
clang -Wall -o $@ $@.c test_util.o fft_g1.o fft_util.o -L../lib -lblst
./$@
%_test: %.o %_test.c test_util.o
%_test: %.o %_test.c test_util.o Makefile
clang -Wall -o $@ $@.c test_util.o $*.o -L../lib -lblst
./$@