Additional source, object, or library files can be given to satisfy external references. Both C and Fortran source files can be specified when building a MEX file. The default values assigned in the body of this script for the documented variables that can be changed in .mexrc.sh can be viewed by typing cmex or fmex without ANY arguments. Note, the default options do not include the optimizer flag. The -O option must be specified to generate optimized code.
Further evaluation is done to most of the options below.
This means that if the argument part of the option is placed in single quotes, variable evaluation is postponed until after all options are considered. Include the standard system Fortran libraries when linking the MEX file. Optimize the object code. Use fmex if any Fortran source or object files were developed under version 3.5 or earlier. Prints each compile step and final link step fully evaluated to see which options and files were used.