Hi Yusup Khan,
what SW do you work with?
here is article of Creating a Library with Kinetis Design Studio
Creating a Library with Kinetis Design Studio | MCU on Eclipse
if using CW10.6, user can create a customized library with wizard:

can this help you?
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!