ext/congruence_solver/Makefile in congruence_solver-0.4.0 vs ext/congruence_solver/Makefile in congruence_solver-0.5.0
- old
+ new
@@ -1,13 +1,14 @@
+CC = gcc-6 -fopenmp -std=c99
congruences_test: congruences.c test/congruences_test.c test/congruences_test.h arith_utils.c prime_gen.c
- gcc -g prime_gen.c arith_utils.c congruences.c test/congruences_test.c -o congruences_test
+ $(CC) -g prime_gen.c arith_utils.c congruences.c test/congruences_test.c -o congruences_test
arith_utils_test: arith_utils.c test/arith_utils_test.c test/arith_utils_test.h prime_gen.c
- gcc -g prime_gen.c arith_utils.c test/arith_utils_test.c -o arith_utils_test
+ $(CC) -g prime_gen.c arith_utils.c test/arith_utils_test.c -o arith_utils_test
prime_gen_test: prime_gen.c test/prime_gen_test.c test/prime_gen_test.h
- gcc -g prime_gen.c test/prime_gen_test.c -o prime_gen_test
+ $(CC) -g prime_gen.c test/prime_gen_test.c -o prime_gen_test
test: prime_gen_test arith_utils_test congruences_test
./prime_gen_test
./arith_utils_test
./congruences_test