Generating a custom software package for third part in Keil MDK

Hi,

I need to code and generate a custom functions collection for a third part (something like a "black box" module with known interface).

The software package or library should be distributed to a third part that have to take this functions library and add it to a larger software project application.

Since the library contains intellectual property, the code must be hidden (so just only a package to be integrated and lonked with the larger project application).

I need to learn how to build/generate this kind of package and on the other side how to integrate it (to validate the overall process) in Keil uvision MDK-ARM.

Is there any doc, tutorial, examples that can guide me?

Thanks