User`s guide

Building Stand-Alone Applications on UNIX
4-11
Modifying the Options File. Another use of the setup o ption is if you want to
change your options file settings.Forexample, if you want to mak e a change to
the current linker settings, or you want to dis able a particular set of w arning s,
you should use the
setup option.
If youneedtochangethe options that
mbuild passes to yourcompileror linker,
you must first run
mbuild -setup
which copies a master options file to your local MATLAB directory, typically
$HOME/.matlab/R12/mbuildopts.sh.
If you need to see whichoptions
mbuild passestoyour compiler and linker,use
the verbose option,
-v,asin
mbuild -v filename1 [filename2 …]
togeneratealistofall the currentcompilersettings.To changetheoptions,use
an editor to make changes to your options file, which is in your local
matlab
directory. Your local matlab directory is a user-specific, MATLAB directory in
your individual home directory that is used specifically for your individual
options files. You can also embed the settings obtained from the verbose option
of
mbuild into an integrated development environment (IDE) or makefile that
you need to maintain outside of MATLAB. Often, however, it is easier to call
mbuild from your mak efile. See your systemdocumentation for information on
writing makefiles.
Note Any changes made to the local options file will be o verw r itten if yo u
execute
mbuild -setup. To make the changes persist through repeated uses of
mbuild -setup, you must edit the master file itself,
<matlab>/bin/mbuildopts.sh.
Temporarily Changing the Compiler. Totemporarilychange your CorC++compiler,
use t he
-f option, as in
mbuild -f <file> …
The -f option tells the mbuild script to use the options file, <file>.If<file>
is not in the current directory, then <file> must be the full pathname t o the
desired options file. Using the
-f option tells the mbuild script to use the