It should be enough to install missing libraries on you system.
libXm is part of openmotif package:
libXp is part of X.Org X11 runtime library:
EDIT: I created a support case on SAP site and they responded me with a list of necessary packages. First, there is a site System requirements for Linux (this one is for ASE 16.0 SP03 PL05, but you can change it in the upper right corner) where you can find that you need to setup $LANG environment variable first. Then there is referral to SAP KBA Note 2489781, which is accessible only with valid credentials, so I picked important information below (again valid for ASE 16.0 SP03 PL05):
System: Red Hat
Hardware: x86_64 processor (Intel Xeon with EM64T)
- glibc.i686 (Redhat 7 requires 32-bit libraries to execute the isql and dscp utilities)
Additional Linux Libraries:
With all of above installed, you should be able to build and run this version of ASE.