6.3.3. Examples of armar usage
Syntax examples are shown in Example 6.1 to Example 6.8.
Example 6.1. Create a new library and add all object files
armar ‑‑create mylib *.o
Example 6.2. List the table of contents (verbose)
armar ‑tv mylib
Example 6.3. List the symbol table
armar ‑‑zs mylib
Example 6.4. Add (or replace) files
armar ‑r mylib obj1.o obj2.o obj3.o ...
armar ‑ru mylib k*.o
Example 6.5. Add (or replace) files in specified position
armar ‑r ‑a obj2.o mylib obj3.o obj4.o ...
Example 6.6. Extract a group of files
armar ‑x mylib k*.o
Example 6.7. Delete a group of files
armar ‑d mylib sys_*
Example 6.8. Merge libraries and add (or replace) files
armar ‑r mylib my_lib.a other_lib.a obj1.o obj2.o obj3.o