Here are some examples of usage of the librarian. The following command:
xc8-ar -r myPicLib.a ctime.p1 init.p1
creates a library called myPicLib.a that contains the modules ctime.p1 and init.p1
The following command deletes the object module a.p1 from the library lcd.a:
xc8-ar -d lcd.a a.p1