Librarian (hclib)

Simple object file library manager. Adds or replaces object files in a .lib archive. If an object with the same base filename already exists in the library, it is replaced; otherwise, the object is appended.

Usage

hclib <library.lib> <object files...>

Examples

hclib mylib.lib newobj.obj                    # add one object
hclib mylib.lib obj1.obj obj2.obj obj3.obj    # add multiple objects
hclib mylib.lib updated.obj                   # replace existing object

If the library does not exist, it is created. A temporary file hclib.$$$ is created during the operation and renamed to the target library on success.

Runtime Libraries

LibraryTargetIncludes
z80-cpm-b.libZ80 / CP/Mprintf, putchar, strlen, strcmp, atoi, ...
8080-cpm-b.lib8080 / CP/Mprintf, putchar, strlen, ...
8085-cpm-b.lib8085 / CP/Mprintf, putchar, strlen, ...
8086-msdos-b.lib8086 / MS-DOS COMprintf, putchar, strlen, ...
8086-msdos-exe-b.lib8086 / MS-DOS EXESame, with far pointers