#; # Prog.rules.general # # General, compiler independent rules # # This sort of allows some short hand tricks # and provides a general mechanism for installing binaries define compile.init @if [ ! -d $(OBJDIR) ]; then \ ${MKDIR} $(OBJDIR); \ fi; endef ifndef INSTALL_AOUT define INSTALL_AOUT ${INSTALL} ${OBJDIR}/a.out $@ ${RM} ${OBJDIR}/a.out endef endif #A smooth way to handle platforms #without a f90 compiler ifeq (${HAVE_F90}, no) define F90_COMPILE ${compile.init} touch $@ endef define F90_LN echo "#!/bin/sh " > $@ echo "echo need a F90 compiler " >>$@ endef endif