avm99963 | 3541873 | 2022-04-29 16:46:26 +0200 | [diff] [blame^] | 1 | .PHONY: all make_out_folder |
| 2 | |
avm99963 | 9622dc7 | 2022-04-29 15:44:05 +0200 | [diff] [blame] | 3 | all: P1-exercici-1.o P1-exercici-2.o P1-exercici-3.o |
avm99963 | 3541873 | 2022-04-29 16:46:26 +0200 | [diff] [blame^] | 4 | make_out_folder: |
| 5 | mkdir -p out |
| 6 | P1-exercici-1.o: make_out_folder mt19937ar.o P1-exercici-1.f90 |
avm99963 | 9622dc7 | 2022-04-29 15:44:05 +0200 | [diff] [blame] | 7 | gfortran -c P1-exercici-1.f90 |
avm99963 | 3541873 | 2022-04-29 16:46:26 +0200 | [diff] [blame^] | 8 | gfortran P1-exercici-1.o mt19937ar.o -o out/P1-exercici-1 |
| 9 | P1-exercici-2.o: make_out_folder mt19937ar.o writeconfig.o P1-exercici-2.f90 |
avm99963 | 9622dc7 | 2022-04-29 15:44:05 +0200 | [diff] [blame] | 10 | gfortran -c P1-exercici-2.f90 |
avm99963 | 3541873 | 2022-04-29 16:46:26 +0200 | [diff] [blame^] | 11 | gfortran P1-exercici-2.o writeconfig.o mt19937ar.o -o out/P1-exercici-2 |
| 12 | P1-exercici-3.o: make_out_folder mt19937ar.o writeconfig.o magne.o P1-exercici-3.f90 |
avm99963 | 9622dc7 | 2022-04-29 15:44:05 +0200 | [diff] [blame] | 13 | gfortran -c P1-exercici-3.f90 |
avm99963 | 3541873 | 2022-04-29 16:46:26 +0200 | [diff] [blame^] | 14 | gfortran P1-exercici-3.o writeconfig.o mt19937ar.o magne.o -o out/P1-exercici-3 |
avm99963 | 9622dc7 | 2022-04-29 15:44:05 +0200 | [diff] [blame] | 15 | mt19937ar.o: mt19937ar.f |
| 16 | f77 -c mt19937ar.f |
| 17 | writeconfig.o: writeconfig.f90 |
| 18 | gfortran -c writeconfig.f90 |
| 19 | magne.o: magne.f90 |
| 20 | gfortran -c magne.f90 |
| 21 | |
| 22 | clean: |
avm99963 | 3541873 | 2022-04-29 16:46:26 +0200 | [diff] [blame^] | 23 | rm -rf configuration.eps configuration.tex configuration.svg *.o out |