Fortran: Anhang B: Dreiecksberechnung: Makefile

COMP = gfortran -c
LINK = gfortran  

triangle: modul1.o triangle.o
	${LINK} -o triangle modul1.o triangle.o

triangle.o: triangle.f90
	${COMP} triangle.f90

modul1.o: modul1.f90
	${COMP} modul1.f90

clean:
	rm *.o
	rm *.mod