avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 1 | .PHONY: all make_out_folder |
| 2 | FC=gfortran |
| 3 | FC_FLAGS=-O3 -Wall #-g -fbacktrace -fcheck=all |
| 4 | |
Adrià Vilanova Martínez | 24d8701 | 2022-06-16 00:29:59 +0200 | [diff] [blame] | 5 | all: MC-2.o out/cv_via_derivative |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 6 | make_out_folder: |
| 7 | mkdir -p out data_out |
Adrià Vilanova Martínez | 24d8701 | 2022-06-16 00:29:59 +0200 | [diff] [blame] | 8 | out/cv_via_derivative: cv_via_derivative.cc |
| 9 | g++ cv_via_derivative.cc -Wall -o out/cv_via_derivative |
Adrià Vilanova Martínez | 1ee4edb | 2022-06-13 22:37:08 +0200 | [diff] [blame] | 10 | MC-2.o: make_out_folder mt19937ar.o generateSpinMatrix.o magne.o energ.o pbc.o writeconfig.o MC-2.f90 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 11 | $(FC) $(FC_FLAGS) -c MC-2.f90 |
Adrià Vilanova Martínez | 1ee4edb | 2022-06-13 22:37:08 +0200 | [diff] [blame] | 12 | $(FC) $(FC_FLAGS) MC-2.o generateSpinMatrix.o mt19937ar.o magne.o energ.o pbc.o writeconfig.o -o out/mc2 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 13 | mt19937ar.o: mt19937ar.f |
| 14 | $(FC) $(FC_FLAGS) -c mt19937ar.f |
Adrià Vilanova Martínez | ebb8779 | 2022-06-04 20:07:20 +0200 | [diff] [blame] | 15 | generateSpinMatrix.o: generateSpinMatrix.f90 |
| 16 | $(FC) $(FC_FLAGS) -c generateSpinMatrix.f90 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 17 | magne.o: magne.f90 |
| 18 | $(FC) $(FC_FLAGS) -c magne.f90 |
| 19 | energ.o: energ.f90 |
| 20 | $(FC) $(FC_FLAGS) -c energ.f90 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 21 | pbc.o: pbc.f90 |
| 22 | $(FC) $(FC_FLAGS) -c pbc.f90 |
Adrià Vilanova Martínez | 1ee4edb | 2022-06-13 22:37:08 +0200 | [diff] [blame] | 23 | writeconfig.o: writeconfig.f90 |
| 24 | $(FC) $(FC_FLAGS) -c writeconfig.f90 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 25 | |
| 26 | clean: |
Adrià Vilanova Martínez | c102e96 | 2022-06-04 23:53:44 +0200 | [diff] [blame] | 27 | rm -rf out *.o |