blob: 761b3f7bf964ff081eb5b999a3e60dbb8c3aadb7 [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
8MC-2.o: make_out_folder mt19937ar.o writeconfigseed.o magne.o energ.o str.o pbc.o MC-2.f90
9 $(FC) $(FC_FLAGS) -c MC-2.f90
10 $(FC) $(FC_FLAGS) MC-2.o writeconfigseed.o mt19937ar.o magne.o energ.o str.o pbc.o -o out/mc2
11mt19937ar.o: mt19937ar.f
12 $(FC) $(FC_FLAGS) -c mt19937ar.f
13writeconfig.o: writeconfig.f90
14 $(FC) $(FC_FLAGS) -c writeconfig.f90
15writeconfigseed.o: writeconfigseed.f90
16 $(FC) $(FC_FLAGS) -c writeconfigseed.f90
17magne.o: magne.f90
18 $(FC) $(FC_FLAGS) -c magne.f90
19energ.o: energ.f90
20 $(FC) $(FC_FLAGS) -c energ.f90
21str.o: str.f90
22 $(FC) $(FC_FLAGS) -c str.f90
23pbc.o: pbc.f90
24 $(FC) $(FC_FLAGS) -c pbc.f90
25
26clean:
27 rm -rf out data_out *.o