Hello,
I am not sure, if I understand your question correct, but if you use S32DE IDE, you simply press Build button in the upper bar. This willexecute set of commands which compile and link the project and create .elf file.
You can also choose the build target you want to use. Please see the figure below:
Regards,
Martin