Pathway/iTS TCP and Terminal Programming Guide

The MAKEUL Macro
Compaq NonStop™ Pathway/iTS TCP and Terminal Programming Guide426751-001
A-2
Examples
The MAKEUL macro has the following features:
If an option is specified twice, the second option is used. For example, if the -src
option is specified twice with two different file names, the second -src option
becomes effective.
If the object file name and the library file name are the same, the object file name is
overwritten with the library file name.
At the end of execution of the macro, status information is displayed. This
information includes the names of the source file, object file, and library file and the
locations of the TCPLIB file, the pTAL compiler, and the nld utility.
If the -loc option is not specified, the MAKEUL macro looks for the TCPLIB file
first in the current subvolume, then in the installation subvolume (ISV)
$SYSTEM.ZPATHWAY. If the ISVs are in another volume, then you can write
another macro that invokes MAKEUL, as follows:
MAKEUL -loc $ISVVOL.ZPATHWAY %*%
You can also specify where the TCPLIB file is located by setting the default value
of the variable ISV_VOL to the volume where the ISVs are located, in the code of
MAKEUL macro: for example,
#SET ISV_VOL $MYISV
For more information about this variable, see “Set the Default Values” within the
MAKEUL code.
By default, the SYMBOLS option is passed to the pTAL compiler. You can modify
this option by setting the variable PTAL_OPTIONS accordingly. This variable
should contain pTAL options separated by commas: for example,
#SET ptal_options SYMBOLS,SUPPRESS
For more information about this variable, see “Set the Default Values” within the
MAKEUL code.
Examples
For creating a pTAL object file called PTOBJ from the pTAL source file PTSRC and
sending the output to the terminal, the syntax is as follows:
> MAKEUL -src PTSRC -obj PTOBJ
For creating a pTAL object file called PTOBJ from the pTAL source file PTSRC and
sending the output to the file PTOUT, the syntax is as follows:
> MAKEUL -src PTSRC -obj PTOBJ -out PTOUT
For creating a user library file called USERLIB from the pTAL source file PTSRC and
sending the output to the terminal, the syntax is as follows:
> MAKEUL -src PTSRC -lib USERLIB