/* Recipes for building WEPS with Unix f77 compiler */ /* FC "compile" recipe */ %0%[O]: %0%[F] { [FC] "-INCP="[dos-path [dirname %0]] [FC_IFLAGS] [FC_FLAGS] %0%[F] "-FO="[notdir [target]]; if %0 then mv [notdir [target]] [target]; /* "-FO="[dos-path [target]]; */ } /* FC "library build" recipe */ %0[LIB_PREFIX]%[A]: [[target]_obj] set unlink { [AR] [AR_FLAGS] [target] [[target]_obj]; } /* FC "link" recipe */ /* not yet tested */ [BIN]/%: [[target]_obj] set mkdir { /* echo "target_obj is: " [[target]_obj]; */ [LD] [LD_FLAGS] name [target] file [[target]_obj]; } /* This seems to be affected by some idiosyncracies in CYGWIN */ /* FC "link" recipe */ %: [ [downcase [target]]_obj] set mkdir { /* echo "target_obj is: " [target]_obj]; */ if [not link.wcm] then touch link.wcm; echo name [downcase [target]] > link.wcm; /* echo test [unsplit "," [[target]_obj]] >> link.wcm; */ echo file [subst \\ \\\\ [dos-path [unsplit "," [[target]_obj]]]] >> link.wcm; [LD] [LD_FLAGS] @link.wcm; }