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. See the man page for your Fortran com- piler for more information. 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. Optimize the object code. Prints each compile step and final link step fully evaluated to see which options and files were used. Very useful for debugging. Define a variable.