emit a library name based on the basedir