The sybopts.sh reads the SYBPLATFORM environment variable to help you build Open Client and Open Server applications:
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 in $SYBASE/$SYBASE_OCS/sample/ctlibrary.