-ar
This switch instructs the compiler driver to archive all output files into a library. Using -ar implies -c.
The following command compiles file1.c, file2.asm, and file3.c to object code and archives them into the library file libfunc.hza.
hcl file1.c file2.asm file3.c -o libfunc.hza