blob: b02418abd489340666130ebf8a73d217f6774e9f [file] [log] [blame]
avm9996335418732022-04-29 16:46:26 +02001.PHONY: all make_out_folder
2
avm999639622dc72022-04-29 15:44:05 +02003all: P1-exercici-1.o P1-exercici-2.o P1-exercici-3.o
avm9996335418732022-04-29 16:46:26 +02004make_out_folder:
5 mkdir -p out
6P1-exercici-1.o: make_out_folder mt19937ar.o P1-exercici-1.f90
avm999639622dc72022-04-29 15:44:05 +02007 gfortran -c P1-exercici-1.f90
avm9996335418732022-04-29 16:46:26 +02008 gfortran P1-exercici-1.o mt19937ar.o -o out/P1-exercici-1
9P1-exercici-2.o: make_out_folder mt19937ar.o writeconfig.o P1-exercici-2.f90
avm999639622dc72022-04-29 15:44:05 +020010 gfortran -c P1-exercici-2.f90
avm9996335418732022-04-29 16:46:26 +020011 gfortran P1-exercici-2.o writeconfig.o mt19937ar.o -o out/P1-exercici-2
12P1-exercici-3.o: make_out_folder mt19937ar.o writeconfig.o magne.o P1-exercici-3.f90
avm999639622dc72022-04-29 15:44:05 +020013 gfortran -c P1-exercici-3.f90
avm9996335418732022-04-29 16:46:26 +020014 gfortran P1-exercici-3.o writeconfig.o mt19937ar.o magne.o -o out/P1-exercici-3
avm999639622dc72022-04-29 15:44:05 +020015mt19937ar.o: mt19937ar.f
16 f77 -c mt19937ar.f
17writeconfig.o: writeconfig.f90
18 gfortran -c writeconfig.f90
19magne.o: magne.f90
20 gfortran -c magne.f90
21
22clean:
avm9996335418732022-04-29 16:46:26 +020023 rm -rf configuration.eps configuration.tex configuration.svg *.o out