NonStop Server for Java 4.2 Programmer's Reference

Specifying Tasks Provided by the Makefile (TNS/R Only)
The Makefile defines several rules, where each rule performs a different task. A rule appears as a
command line argument to make, for example:
$ make javasqlcomp
Runs the javasqlcomp rule that SQL compiles the java executable if the
NonStop SQL/MP product is installed on the system.
The rules in the Makefile for tasks that you might want to perform are:
make
Invokes the default "install" rule that relinks a new java executable file. The Makefile searches
the directories listed in the variable CUSTLIB_DIRS for custom libraries to link in. The JDBC
drivers for NonStop SQL are linked in as follows:
If the JDBC Driver for SQL/MX is installed, this driver is linked in only if the
NonStop SQL/MX product is installed on the system.
If the JDBC Driver for SQL/MP and the NonStop SQL/MP product are installed on the
system, the make rule SQL compiles the java executable.
Make fails with an error if two archive libraries with the same name are found in the directories
listed in the CUSTLIB_DIRS variable. For example, the make operation fails with an error
message that indicates the presence of two libraries with the same name (h/mylib) are present in
the following situation:
CUSTLIB_DIRS is set to:
CUSTLIB_DIRS = /usr/tandem/java_public_lib_jdk142 /h/mylib
1.
libjni.a exists in /h/mylib and in /usr/tandem/java_public_lib_jdk1422.
This limitation applies whether the two archive files contain the same object code or different
code.
For .lib files, you can have two files with the same name in different directories as long as the
files do not contain the same code. All object files in an archive file are extracted from the archive
file and linked in explicitly into the java executable. Therefore, your archive file should not
contain code that is not needed, to keep the java executable from being unnecessarily large.
make baseversion
Relinks a new java file without any custom libraries or optional libraries. The new java
executable file is not SQL compiled. This rule produces a java executable that matches what is
released on the product CD.
make javasqlcomp
SQL compiles the java executable if the NonStop SQL/MP product is installed on the system.
make clean
Removes temporary files created during the make process. Temporary files are always removed at