blob: e0159680eedb1dbf961c0ff83b194edae6c81428 [file] [log] [blame]
.PHONY: all make_out_folder
all: P2-exercici-1.o MC-1.o
make_out_folder:
mkdir -p out
P2-exercici-1.o: make_out_folder mt19937ar.o writeconfig.o magne.o energ.o P2-exercici-1.f90
gfortran -c P2-exercici-1.f90
gfortran P2-exercici-1.o writeconfig.o mt19937ar.o magne.o energ.o -o out/e1
MC-1.o: make_out_folder mt19937ar.o writeconfig.o magne.o energ.o MC-1.f90
gfortran -c MC-1.f90
gfortran MC-1.o writeconfig.o mt19937ar.o magne.o energ.o -o out/mc1
mt19937ar.o: mt19937ar.f
f77 -c mt19937ar.f
writeconfig.o: writeconfig.f90
gfortran -c writeconfig.f90
magne.o: magne.f90
gfortran -c magne.f90
energ.o: energ.f90
gfortran -c energ.f90
clean:
rm -rf out *.o