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

all:	heat heat_omp heat2 heat2_omp

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

heat_omp:	heat.cpp Makefile \
		../mlmc_test.cpp ../mlmc_test_100.cpp ../mlmc.cpp
		icpx -O3 -xHost -qopenmp -qopt-report -qmkl \
                heat.cpp -o heat_omp $(INC) $(LIB)

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

heat2_omp:	heat2.cpp Makefile \
		../mlmc_test.cpp ../mlmc_test_100.cpp ../mlmc.cpp
		icpx -O3 -xHost -qopenmp -qopt-report -qmkl \
                heat2.cpp -o heat2_omp $(INC) $(LIB)

clean:
	rm -f heat heat_omp heat2 heat2_omp
