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

all:	nested nested_omp

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

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

clean:
	rm -f nested nested_omp
