Setting Up the Code Generation Environment
4-7
Setting Up the Code Generation Tools on an HP Workstation
Identifying alternate directories for the compiler (C_DIR)
The compiler uses the C_DIR environment variable to name alternate direc-
tories that contain #include files and libraries. To set the C_DIR environment
variable, use this syntax:
For C shells:
setenv C_DIR “
pathname
1
[;
pathname
2
. . .]”
For Bourne or Korn shells:
C_DIR=“
pathname
1
[;
pathname
2
. . .]”
export C_DIR
(Be sure to enclose the directory names within quotes.)
The
pathnames
are directories that contain #include files or libraries (such as
stdio.h). You can separate pathnames with a semicolon or with blanks. In C
source, you can use the #include directive without specifying path information.
Instead, you can specify the path information with C_DIR.
Setting default shell options (C_OPTION)
You may find it useful to set the compiler, assembler, and linker shell default
options using the C_OPTION environment variable. If you do this, the shell
uses the default options and/or input filenames that you name with C_OPTION
every time you run the shell.
Setting up default options with the C_OPTION environment variable is useful
when you want to run the shell consecutive times with the same set of options
and/or input files. After the shell reads the command line and the input file-
names, it reads the C_OPTION environment variable and processes it.
The set the C_OPTION environment variable, use this syntax:
For C shells:
setenv C_OPTION ”
option
1
[
option
2
. . .]”
For Bourne or Korn shells:
C_OPTION=”
option
1
[
option
2
. . .]”
export C_OPTION
(Be sure to enclose the options within quotes.)