The sybopts.sh script is included with the sample programs and helps you build Open Client and Open Server applications for your platform by reading the SYBPLATFORM environment variable:
sybopts.sh args
where args can be, for example:
compile – returns the compiler command and platform-specific compile flags.
comlibs – returns the list of required Sybase libraries that must be linked with the application.
syslibs – returns the list of required non-Sybase system libraries that must be linked with the application.
For a complete list of arguments (args), see the “Usage” section in the sybopts.sh script available in $SYBASE/$SYBASE_OCS/sample/ctlibrary directory.