LIBRARY(7) Miscellaneous Information Manual LIBRARY(7)

librarysearch deps

module:library
library{
	# automate block
	[libraries ...]
}

The library module searches for rules to build each specified library. If no rule is found, it tries to locate the library using pkg-config(1). If that fails, it performs a basic search through the system's library directories.

Once the dependencies are processed, the module sets relevant environment variables if necessary. It then invokes automate(1) to process the “library” block, excluding the dependencies.

The directory path containing automate's config files and data.
The argument to invoke pkg-config or an equivalent.
Colon-separated (‘:’), list of paths to search for libraries.

The library utility exits 0 on success, and >0 if an error occurs.

To build a program:

#!/bin/automate -s default,c
program:sdl-example
sdl-example{
	library{
		lib/libcommon.a
		SDL2
	}
}

automate(1), pkg-config(1), venus-conf(5)

October 8, 2024 EltaninOS