Fortran: Anhang B: Kettenlinie: Makefile

COMP = gfortran -c
LINK = gfortran  
LIB  = -ldislin

catenary: dislin.o catmod1.o catdisl.o catenary.o
	${LINK} -o catenary dislin.o catdisl.o catmod1.o catenary.o ${LIB}

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

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

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

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

clean:
	rm *.o
	rm *.mod