GNU Make Projects
This guide covers generating an SBOM for a C/C++ project built with GNU Make.
Prerequisites
lynkctl installed — see Installation
GNU Make 3.81 or newer, on
PATH
lynkctl runs make in dry-run and introspection modes only. It never compiles the project.
Generate an SBOM
From the project root:
lynkctl generate . -o sbom.cdx.jsonlynkctl auto-detects a Makefile or GNUmakefile. To be explicit, pass --provider gnu-make.
Choose a Build Target
By default lynkctl analyses the all target. Use --make-target (-t) to analyse a different one:
lynkctl generate . --make-target firmware -o sbom.cdx.jsonPass Build Variables
Some Makefiles change what gets compiled based on variables. Supply them with --make-config-vars, which is repeatable:
Troubleshooting
If a run reports warnings or errors, rerun with -v to see the individual diagnostics and their suggested actions. See Diagnostics & Exit Codes for severity levels, exit codes, and strict mode. For help interpreting a specific diagnostic, contact Interlynk.
Last updated