The following example can be substituted into the Link section of the Workbook page, Compile, Link and Run to do the work using the MAKESHR command.
You can use the command @PRODUDUC:MAKESHR to create a shareable image out of your object code.
For example, to do this on our example file WBPREP1:
> @PRODUDUC:MAKESHR WBPREP1
Keep in mind that if the compilation was performed on an Alpha,
the MAKESHR must be performed on an Alpha.
If the compilation was performed on a VAX,
the MAKESHR must be performed on a VAX.
If MAKESHR is successful, no messages will be issued.
You should have two new files in your directory.
EXE file is your shareable image.
SETUP_COM file defines some logical names needed by
IDA to recognize your shareable image. We will explain this a little better
later.
MAKESHR will work for many simple Prepmort files.
If you have a group of Prepmort routines, you can put them all into a single
shareable by first compiling all of them and then including all of their
names in a single MAKESHR command.
You can have as many different shareables as you like (provided they do not contain overlapping routines).
Routines written in the C language can be linked the same way as Prepmort
routines. After compiling them, use MAKESHR just as you would
for Prepmort.
There are some cases you will encounter later when MAKESHR
will not be the appropriate tool to create your shareable:
MAKESHR is not appropriate.
MAKESHR is not appropriate.