Make both shared and static compile directions use the same
input and output files, with only minor compile flag and file name differences.