Syntax

har -c archive-name object-file...

Description

This option creates a new archive. The archive will be created, overwriting any archive which already exists with the same name.

Example

To create an archive called cclib.hza which initially contains the two object code files ir.hzo and cg.hzo you would use:

har -c cclib.hza ir.hzo cg.hzo

The archiver expands wildcard file names so you can use

har -c cclib.hza *.hzo

to create an archive containing all the object files found in the current directory.