SQL/MX Guide to Stored Procedures in Java (G06.24+, H06.03+)

Getting Started
HP NonStop SQL/MX Guide to Stored Procedures in Java523727-004
2-10
Using the Makefile to Relink MXUDR
Using the Makefile to Relink MXUDR
You can also use the makefile, mxudr.mak, to relink MXUDR.
Use the make command to relink MXUDR:
/bin/make -f MxInstallDir/mxudr.mak
TARGET_DIR=MxTargetDir
INSTALL_DIR=MxInstallDir
JAVA_DIR=MxJavaDir
JDBCLIB_DIR=MxJdbcDir
JNI_OBJS="JNIObj1 JNIObj2"
In the make command, specify these variables:
TARGET_DIR=MxTargetDir
Specify the target directory, MxTargetDir, where the new MXUDR is to be
placed.
The default directory is /G/SYSTEM/SYSTEM.
INSTALL_DIR=MxInstallDir
Specify the setup directory MxInstallDir, which contains mxudr.tlo and
mxudr.oby.
The default directory is /usr/tandem/sqlmx/udr.
JAVA_DIR=MxJavaDir
Specify the directory MxJavaDir, which contains java.o, libjdk.lib,
libjvm.lib, libspt.lib, and sptcpp.o.
The default directory is /usr/tandem/java.
JDBCLIB_DIR=MxJdbcDir
Specify the directory MxJdbcDir, which contains libjdbcMx.lib.
The default directory is /usr/tandem/jdbcMx/current.
JNI_OBJS="JNIObj1 JNIObj2"
List the JNI objects, each separated by a space, if they exist. If you specify JNI
objects, use the form of relinkable objects, such as .o or .lib files. Archive
objects, such as .a files, are not supported for JNI objects by mxudr.mak.
Caution. The mxudr.mak makefile does not back up the original MXUDR file if this file
already exists in the target directory, and the makefile does not verify the new MXUDR.