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:
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.