blob: 9c7b58a32d770c132e7e360c59209812d50e2217 [file] [log] [blame]
avm9996345a8a462022-06-04 12:41:03 +02001.PHONY: all make_out_folder
2FC=gfortran
3FC_FLAGS=-O3 -Wall #-g -fbacktrace -fcheck=all
4
Adrià Vilanova Martínez24d87012022-06-16 00:29:59 +02005all: MC-2.o out/cv_via_derivative
avm9996345a8a462022-06-04 12:41:03 +02006make_out_folder:
7 mkdir -p out data_out
Adrià Vilanova Martínez24d87012022-06-16 00:29:59 +02008out/cv_via_derivative: cv_via_derivative.cc
9 g++ cv_via_derivative.cc -Wall -o out/cv_via_derivative
Adrià Vilanova Martínez1ee4edb2022-06-13 22:37:08 +020010MC-2.o: make_out_folder mt19937ar.o generateSpinMatrix.o magne.o energ.o pbc.o writeconfig.o MC-2.f90
avm9996345a8a462022-06-04 12:41:03 +020011 $(FC) $(FC_FLAGS) -c MC-2.f90
Adrià Vilanova Martínez1ee4edb2022-06-13 22:37:08 +020012 $(FC) $(FC_FLAGS) MC-2.o generateSpinMatrix.o mt19937ar.o magne.o energ.o pbc.o writeconfig.o -o out/mc2
avm9996345a8a462022-06-04 12:41:03 +020013mt19937ar.o: mt19937ar.f
14 $(FC) $(FC_FLAGS) -c mt19937ar.f
Adrià Vilanova Martínezebb87792022-06-04 20:07:20 +020015generateSpinMatrix.o: generateSpinMatrix.f90
16 $(FC) $(FC_FLAGS) -c generateSpinMatrix.f90
avm9996345a8a462022-06-04 12:41:03 +020017magne.o: magne.f90
18 $(FC) $(FC_FLAGS) -c magne.f90
19energ.o: energ.f90
20 $(FC) $(FC_FLAGS) -c energ.f90
avm9996345a8a462022-06-04 12:41:03 +020021pbc.o: pbc.f90
22 $(FC) $(FC_FLAGS) -c pbc.f90
Adrià Vilanova Martínez1ee4edb2022-06-13 22:37:08 +020023writeconfig.o: writeconfig.f90
24 $(FC) $(FC_FLAGS) -c writeconfig.f90
avm9996345a8a462022-06-04 12:41:03 +020025
26clean:
Adrià Vilanova Martínezc102e962022-06-04 23:53:44 +020027 rm -rf out *.o