SYNOPSIS buildclient [ -C ] [ -v ] [ {-r rmname | -w } ] [ -o name] [ -f firstfiles] [ -l lastfiles] buildclt [ -C ] [ -v ] [ -w ] [ -o name] [ -f firstfiles] [ -l lastfiles]
buildclient is used to construct a TUXEDO System/T client module. The command combines the files supplied by the -f and -l options with the standard TUXEDO System/T libraries to form a load module. The load module is built by buildclient using the default C language compilation command defined for the operating system in use. The default C language compilation command for the UNIX System is the cc(1) command described in the UNIX System reference manual. The COBOL language compilation command for UNIX is the cob(1) command described in COBOL for UNIX. The options to buildclient have the following meaning:
buildclient uses the environment variable TUXDIR to find the System/T libraries and include files to use during compilation of the client process.
buildclient normally uses the default C language compilation command to produce the client executable. The default C language compilation command is defined for each supported operating system platform and is defined as cc(1) for UNIX System. In order to allow for the specification of an alternate compiler, buildclient checks for the existence of an environment variable named CC. If CC does not exist in buildclient's environment, or if it is the string "", buildclient will use the default C language compiler. If CC does exist in the environment, its value is taken to be the name of the compiler to be executed.
The environment variable CFLAGS is taken to contain a set of arguments to be passed as part of the compiler command line. This is in addition to the command line option "-I${TUXDIR}/include" passed automatically by buildclient. If CFLAGS does not exist in buildclient's environment, or if it is the string "", no compiler command line arguments are added by buildclient.
When the -C option is specified for COBOL compilation, buildclient normally uses the TUXEDO shell cobcc which in turn calls cob to produce the client executable. In order to allow for the specification of an alternate compiler, buildclient checks for the existence of an environment variable named ALTCC. If ALTCC does not exist in buildclient's environment, or if it is the string "", buildclient will use cobcc. If ALTCC does exist in the environment, its value is taken to be the name of the compiler command to be executed.
The environment variable ALTCFLAGS is taken to contain a set of additional arguments to be passed as part of the COBOL compiler command line when the -C option is specified. This is in addition to the command line option "-I${TUXDIR}/include" passed automatically by buildclient. When the -C option is used, putting compiler options and their arguments in the buildclient -f option will generate errors; they must be put in ALTCFLAGS. If not set, then the value is set to the same value used for CFLAGS, as specified above.
The environment variable COBOPT is taken to contain a set of additional arguments to be used by the COBOL compiler, when the -C option is specified.
The environment variable COBCPY indicates which directories contain a set of COBOL copy files to be used by the COBOL compiler, when the -C option is specified.
The environment variable LD_LIBRARY_PATH indicates which directories contain shared objects to be used by the COBOL compiler, in addition to the TUXEDO System shared objects.
buildclient is supported as a TUXEDO System/T-supplied compilation tool on UNIX and MS-DOS operating systems. However, due to file naming restrictions, only the buildclt alias is supported on MS-DOS. Note that file names supplied as part of the buildclient command line must conform to the syntax and semantics of the resident operating system.
The MS-DOS version of buildclt has significant differences from the UNIX System version. These differences warrant a separate man page for the MS-DOS version of the command. Therefore, a separate buildclt(1) manual page is also included to describe the command for the MS-DOS environment.
CC=ncc CFLAGS="-I /APPDIR/include"; export CC CFLAGS buildclient -o empclient -f emp.c -f "userlib1.a userlib2.a" COBCPY=$TUXDIR/cobinclude COBOPT="-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl" COBDIR=/usr/lib/cobol LD_LIBRARY_PATH=$COBDIR/coblib:$TUXDIR/lib export COBOPT COBCPY COBDIR LD_LIBRARY_PATH buildclient -C -o empclient -f name.cbl -f "userlib1.a userlib2.a"SEE ALSO
buildclt(1), cc(1), ld(1) in a UNIX System reference manual.