Option
|
Description
|
@filename
|
(Windows) Replace @filename on the mbuild command line with the contents of filename.
|
-c
|
Compile only; do not link.
|
-D<name>[=<def>]
|
(UNIX) Define C preprocessor macro <name> as having value <def>.
|
-D<name>
|
(Windows) Define C preprocessor macro <name>.
|
-f <file>
|
(UNIX and Windows) Use <file> as the options file; <file> is a full pathname if the options file is not in current directory. (Not necessary if you use the -setup option.)
|
-g
|
Build an executable with debugging symbols included.
|
-h[elp]
|
Help; prints a description of mbuild and the list of options.
|
-I<pathname>
|
Add <pathname> to the Compiler include search path.
|
-l<file>
|
(UNIX) Link against library lib<file>.
|
-L<pathname>
|
(UNIX) Include <pathname> in the list of directories to search for libraries.
|
-lang <language>
|
Override language choice implied by file extension.
<language> =c for C (default)
cpp for C++ This option is necessary when you use an unsupported file extension, or when you pass in all .o files and libraries.
|
-link <target>
|
Specify the type of output file.
<target> =exe for executable file
(default)
shared for shared library
|
<name>=<def>
|
(UNIX) Override options file setting for variable <name>. If <def> contains spaces, enclose it in single quotes, e.g., CFLAGS='opt1 opt2'. The definition, <def>, can reference other variables defined in the options file. To reference a variable in the options file, prepend the variable name with a $, e.g., CFLAGS='$CFLAGS opt2'.
|
-n
|
(UNIX) No execute flag. Using this option causes the commands used to compile and link the target to be displayed without executing them.
|
-outdir <dirname>
|
Place any generated object, resource, or executable files in the directory <dirname>. Do not combine this option with -output if the -output option gives a full pathname.
|
-output <name>
|
Create an executable named <name>. (An appropriate executable extension is automatically appended.)
|
-O
|
Build an optimized executable.
|
-setup
|
Set up default options file. This option should be the only argument passed.
|
-U<name>
|
Undefine C preprocessor macro <name>.
|
-v
|
Verbose; print all compiler and linker settings.
|