how to link flash lib files to link file in csp

I use R5F10BGGL, compiler is csp, when use flash self-programing library ,there are some unsure points:

  1. link file is sub or dr?
  2. the samp file fsl_sample_linker_file.sub is the link file? However, compile error linked this sub file as follow. or these can be added to compiler option?