To simplify the setting of compiler options, the environment variable CBLFLAGS may be set to a list of options. These options will be used each time the compiler is run. The CBLFLAGS variable is particularly useful for setting options that you use all the time.
If you have set the CBLFLAGS variable and need to unset it temporarily, you can use the -x command-line option to ignore it for any particular run of the compiler.
You may continue to use command-line options when you use the CBLFLAGS variable. All of the options from both places are used. Note that the environment variable CBLFLAGS is examined after the command-line options.
On UNIX machines, the CBLFLAGS variable is set in the environment. This can be done with the export command of the Bourne or Korn Shell or the setenv command of the C-Shell. Windows must be restarted for the new values to take effect. For more information about setting environment variables, see Environment Variables.
The @ file name abbreviation is particularly useful in the CBLFLAGS variable. For example, if you set the variable to -o /programs/@, every program you compile will have its object file placed in the /programs directory with the same name as the source file.