Libraries

Learn about libraries.

If a target or dependency name contains parentheses, it is assumed to be an archive (library) created by ar(1). For example:

lib.a : lib.a(mod1.o) lib.a(mod2.o)

The string within parentheses refers to a member (object module) within the library. The use of function names within parentheses is not supported. Thus, lib.a(mod1.o) refers to an archive that contains object module mod1.o. The expression lib.a(mod1.o mod2.o) is not valid.

Inference rules for archive libraries have this form, where sfx is the file name extension (suffix) from which the archive member is to be made.

.sfx.a

The way in which clearmake handles incremental archive construction differs from other make variants. For more information, see Working with incremental update tools.

Note: The u key for ar is not reliable within an HCL VersionVault environment. Do not use it.