How can I create a library?
To generate the library file with the MPLAB® XC8 compiler use the option: --output=lpp
To create a library file; run this command on the machine's command prompt:
xc8 --chip=device_name file1.c file2.c file3.c --output=lpp
creates a library file called file1.lpp.
This lpp file should be added as a library to the MPLAB X IDE project.
When building the library, make sure that the --ASMLIST option is NOT used.
If you want to keep the contents of the library file confidential, use the --SHROUD
option, which will obfuscate the modules used.
See also: Libraries