LIBRARY(7) | Miscellaneous Information Manual | LIBRARY(7) |
library
— search
deps
module:library library{ # automate block [libraries ...] }
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.
AUTOMATE_ETC_DIR
PKG_CONFIG
LIBRARY_PATH
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 } }
October 8, 2024 | EltaninOS |