Static Libraries Using a Makefile in C
A C static library is built by compiling each .c file into a .o object file, then archiving those objects into a libname.a file with ar rcs; a Makefile makes both stages repeatable. Programs that use the library compile against its headers and link against the archive. This guide builds a small reusable library, links…
