blob: 761b3f7bf964ff081eb5b999a3e60dbb8c3aadb7 [file] [log] [blame]
.PHONY: all make_out_folder
FC=gfortran
FC_FLAGS=-O3 -Wall #-g -fbacktrace -fcheck=all
all: MC-2.o
make_out_folder:
mkdir -p out data_out
MC-2.o: make_out_folder mt19937ar.o writeconfigseed.o magne.o energ.o str.o pbc.o MC-2.f90
$(FC) $(FC_FLAGS) -c MC-2.f90
$(FC) $(FC_FLAGS) MC-2.o writeconfigseed.o mt19937ar.o magne.o energ.o str.o pbc.o -o out/mc2
mt19937ar.o: mt19937ar.f
$(FC) $(FC_FLAGS) -c mt19937ar.f
writeconfig.o: writeconfig.f90
$(FC) $(FC_FLAGS) -c writeconfig.f90
writeconfigseed.o: writeconfigseed.f90
$(FC) $(FC_FLAGS) -c writeconfigseed.f90
magne.o: magne.f90
$(FC) $(FC_FLAGS) -c magne.f90
energ.o: energ.f90
$(FC) $(FC_FLAGS) -c energ.f90
str.o: str.f90
$(FC) $(FC_FLAGS) -c str.f90
pbc.o: pbc.f90
$(FC) $(FC_FLAGS) -c pbc.f90
clean:
rm -rf out data_out *.o