INC	:= -I. -I.. -I/usr/include/x86_64-linux-gnu/c++/9/
LIB	:= -lm

all:	fk1 fk1_omp

fk1:	fk1.cpp Makefile \
		../mlmc_test.cpp ../mlmc_test_100.cpp ../mlmc.cpp
		g++ -std=c++11 fk1.cpp -o fk1 $(INC) $(LIB)

fk1_omp:	fk1.cpp Makefile \
		../mlmc_test.cpp ../mlmc_test_100.cpp ../mlmc.cpp
		icpc -O2 -no-prec-div -xHost -qopenmp -qopt-report \
		-mkl fk1.cpp -o fk1_omp $(INC) $(LIB) -static-intel

clean:
	rm -f fk1 fk1_omp
