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

all:	mcqmc06 mcqmc06_omp

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

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

timing:		timing.cpp Makefile ../mlmc_rng.cpp
		g++ -std=c++11 timing.cpp -o timing $(INC) $(LIB)

timing_omp:	timing_omp.cpp Makefile ../mlmc_rng.cpp
		icpc -O2 -no-prec-div -xHost -qopenmp -qopt-report \
		-mkl timing_omp.cpp -o timing_omp $(INC) $(LIB) -static-intel

clean:
	rm -f mcqmc06 mcqmc06_omp timing timing_omp
