#!/bin/sh FORTRAN=f77 FOPTS=-O2 LINKOPTS=-static OUT=flog.cgi OBJS="html.o util.o flog.o" for OBJ in $OBJS; do SRC=`basename $OBJ .o`.f echo "$SRC => $OBJ" $FORTRAN -c $SRC $FOPTS -o $OBJ [ $? != 0 ] && exit $? done echo "Linking $OUT..." $FORTRAN $OBJS $LINKOPTS -o $OUT