blob: b02418abd489340666130ebf8a73d217f6774e9f [file] [log] [blame]
.PHONY: all make_out_folder
all: P1-exercici-1.o P1-exercici-2.o P1-exercici-3.o
make_out_folder:
mkdir -p out
P1-exercici-1.o: make_out_folder mt19937ar.o P1-exercici-1.f90
gfortran -c P1-exercici-1.f90
gfortran P1-exercici-1.o mt19937ar.o -o out/P1-exercici-1
P1-exercici-2.o: make_out_folder mt19937ar.o writeconfig.o P1-exercici-2.f90
gfortran -c P1-exercici-2.f90
gfortran P1-exercici-2.o writeconfig.o mt19937ar.o -o out/P1-exercici-2
P1-exercici-3.o: make_out_folder mt19937ar.o writeconfig.o magne.o P1-exercici-3.f90
gfortran -c P1-exercici-3.f90
gfortran P1-exercici-3.o writeconfig.o mt19937ar.o magne.o -o out/P1-exercici-3
mt19937ar.o: mt19937ar.f
f77 -c mt19937ar.f
writeconfig.o: writeconfig.f90
gfortran -c writeconfig.f90
magne.o: magne.f90
gfortran -c magne.f90
clean:
rm -rf configuration.eps configuration.tex configuration.svg *.o out