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 | |
| 5 | all: MC-2.o |
| 6 | make_out_folder: |
| 7 | mkdir -p out data_out |
Adrià Vilanova Martínez | ebb8779 | 2022-06-04 20:07:20 +0200 | [diff] [blame^] | 8 | MC-2.o: make_out_folder mt19937ar.o generateSpinMatrix.o magne.o energ.o pbc.o MC-2.f90 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 9 | $(FC) $(FC_FLAGS) -c MC-2.f90 |
Adrià Vilanova Martínez | ebb8779 | 2022-06-04 20:07:20 +0200 | [diff] [blame^] | 10 | $(FC) $(FC_FLAGS) MC-2.o generateSpinMatrix.o mt19937ar.o magne.o energ.o pbc.o -o out/mc2 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 11 | mt19937ar.o: mt19937ar.f |
| 12 | $(FC) $(FC_FLAGS) -c mt19937ar.f |
Adrià Vilanova Martínez | ebb8779 | 2022-06-04 20:07:20 +0200 | [diff] [blame^] | 13 | generateSpinMatrix.o: generateSpinMatrix.f90 |
| 14 | $(FC) $(FC_FLAGS) -c generateSpinMatrix.f90 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 15 | magne.o: magne.f90 |
| 16 | $(FC) $(FC_FLAGS) -c magne.f90 |
| 17 | energ.o: energ.f90 |
| 18 | $(FC) $(FC_FLAGS) -c energ.f90 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 19 | pbc.o: pbc.f90 |
| 20 | $(FC) $(FC_FLAGS) -c pbc.f90 |
| 21 | |
| 22 | clean: |
| 23 | rm -rf out data_out *.o |