blob: e0159680eedb1dbf961c0ff83b194edae6c81428 [file] [log] [blame]
avm9996335418732022-04-29 16:46:26 +02001.PHONY: all make_out_folder
2
avm999639622dc72022-04-29 15:44:05 +02003all: P2-exercici-1.o MC-1.o
avm9996335418732022-04-29 16:46:26 +02004make_out_folder:
5 mkdir -p out
6P2-exercici-1.o: make_out_folder mt19937ar.o writeconfig.o magne.o energ.o P2-exercici-1.f90
avm999639622dc72022-04-29 15:44:05 +02007 gfortran -c P2-exercici-1.f90
avm9996335418732022-04-29 16:46:26 +02008 gfortran P2-exercici-1.o writeconfig.o mt19937ar.o magne.o energ.o -o out/e1
9MC-1.o: make_out_folder mt19937ar.o writeconfig.o magne.o energ.o MC-1.f90
avm999639622dc72022-04-29 15:44:05 +020010 gfortran -c MC-1.f90
avm9996335418732022-04-29 16:46:26 +020011 gfortran MC-1.o writeconfig.o mt19937ar.o magne.o energ.o -o out/mc1
avm999639622dc72022-04-29 15:44:05 +020012mt19937ar.o: mt19937ar.f
13 f77 -c mt19937ar.f
14writeconfig.o: writeconfig.f90
15 gfortran -c writeconfig.f90
16magne.o: magne.f90
17 gfortran -c magne.f90
18energ.o: energ.f90
19 gfortran -c energ.f90
20
21clean:
avm9996335418732022-04-29 16:46:26 +020022 rm -rf out *.o