blob: 21e5cbfbf09bdc3d2b292329093d11debe989154 [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
5all: MC-2.o
6make_out_folder:
7 mkdir -p out data_out
Adrià Vilanova Martínez1ee4edb2022-06-13 22:37:08 +02008MC-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 +02009 $(FC) $(FC_FLAGS) -c MC-2.f90
Adrià Vilanova Martínez1ee4edb2022-06-13 22:37:08 +020010 $(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 +020011mt19937ar.o: mt19937ar.f
12 $(FC) $(FC_FLAGS) -c mt19937ar.f
Adrià Vilanova Martínezebb87792022-06-04 20:07:20 +020013generateSpinMatrix.o: generateSpinMatrix.f90
14 $(FC) $(FC_FLAGS) -c generateSpinMatrix.f90
avm9996345a8a462022-06-04 12:41:03 +020015magne.o: magne.f90
16 $(FC) $(FC_FLAGS) -c magne.f90
17energ.o: energ.f90
18 $(FC) $(FC_FLAGS) -c energ.f90
avm9996345a8a462022-06-04 12:41:03 +020019pbc.o: pbc.f90
20 $(FC) $(FC_FLAGS) -c pbc.f90
Adrià Vilanova Martínez1ee4edb2022-06-13 22:37:08 +020021writeconfig.o: writeconfig.f90
22 $(FC) $(FC_FLAGS) -c writeconfig.f90
avm9996345a8a462022-06-04 12:41:03 +020023
24clean:
Adrià Vilanova Martínezc102e962022-06-04 23:53:44 +020025 rm -rf out *.o