PREFIX=${HOME}/matmul-bench/usr

matmul_bench_others: main.cpp bench_flint.cpp bench_ntl.cpp bench_linbox.cpp matmul_bench.hpp
	g++ $^ \
		$(shell pkg-config --with-path="${PREFIX}/lib/pkgconfig" --cflags --libs linbox) \
		$(shell pkg-config --with-path="${PREFIX}/lib/pkgconfig" --cflags --libs flint) \
		-lntl -ljil -o $@ \
		-fpermissive

run: matmul_bench_others
	LD_LIBRARY_PATH="${PREFIX}/lib" ./matmul_bench_others --latex

.PHONY: run
