make(1) on Solnix vs Linux and the BSDs
On Solnix, make is the illumos make at /usr/bin/make (the page also covers /usr/bin/dmake and /usr/xpg4/bin/make), not GNU or BSD make. Its option letters differ from both: -D shows makefile text, -m picks serial or parallel jobs, and -K names a state file.
The manual pages
- Solnix: make(1) from
pkgs.solnix.illumos-world-man; the default on Solnix · illumos.org - Solnix: make(1) from
pkgs.solnix.gnumake; add the package to get it - Linux: make(1) gnumake-4.4.1
- FreeBSD: make(1) 15.1-RELEASE
- OpenBSD: make(1) 8.0
- NetBSD: make(1) 11.0
- Standard: POSIX.1-2024 (IEEE Std 1003.1-2024),
make
What Solnix runs
A default Solnix system runs the illumos make at /usr/bin/make. The same page documents /usr/bin/dmake with the same synopsis; /usr/xpg4/bin/make has a shorter synopsis with no -C and no -K. GNU make(1) is available from pkgs.solnix.gnumake; it is not on PATH by default.
Differences
| Compared with | Topic | What differs |
|---|---|---|
| Linux | same program as the gnumake alternative | The pkgs.solnix.gnumake page has the same NAME, DESCRIPTION and options as the Linux page (gnumake-4.4.1): it is GNU make, the same program. The default /usr/bin/make is a different program.Source: Solnix make(1) from pkgs.solnix.gnumake; Linux make(1) OPTIONS; illumos make(1) SYNOPSIS |
| all four | default makefile names | Solnix /usr/bin/make tries makefile, then Makefile, and retrieves a newer SCCS/s.makefile or SCCS/s.Makefile. GNU make tries GNUmakefile, makefile, Makefile. FreeBSD and NetBSD use .MAKE.MAKEFILE_PREFERENCE (default makefile, Makefile). OpenBSD tries makefile, then Makefile.Source: illumos make(1) -f; Linux make(1) DESCRIPTION; FreeBSD make(1) DESCRIPTION; NetBSD make(1) DESCRIPTION; OpenBSD make(1) DESCRIPTION |
| all four | -m meaning | Solnix -m takes serial or parallel, choosing how jobs run. GNU make ignores -m for compatibility. OpenBSD -m takes a directory to search for sys.mk, and FreeBSD and NetBSD show -m directory in their synopsis.Source: illumos make(1) -m; Linux make(1) -b, -m; OpenBSD make(1) -m; FreeBSD make(1) SYNOPSIS; NetBSD make(1) SYNOPSIS |
| Linux, OpenBSD | serial vs parallel default | Solnix make runs serially unless -j is given, and dmake runs in parallel by default; -j maxjobs needs a count. GNU -j takes an optional count and with none sets no limit. OpenBSD -j max_jobs takes a count.Source: illumos make(1) -m, -j; Linux make(1) -j; OpenBSD make(1) -j |
| FreeBSD, OpenBSD, NetBSD | -D meaning | Solnix -D takes no argument and displays the text of the makefiles read (-DD adds make.rules, the state file and hidden-dependency reports). On FreeBSD, OpenBSD and NetBSD, -D variable defines the variable as 1.Source: illumos make(1) -D, -DD; FreeBSD make(1) -D; OpenBSD make(1) -D; NetBSD make(1) -D |
| FreeBSD, OpenBSD, NetBSD | -d debugging | Solnix -d shows why targets are rebuilt and -dd gives detailed dependency output; neither takes flag letters. FreeBSD, OpenBSD and NetBSD take -d flags with letters such as A, m and g1.Source: illumos make(1) -d, -dd; FreeBSD make(1) -d; OpenBSD make(1) -d; NetBSD make(1) -d |
| all four | -B meaning | The Solnix synopsis has no -B. GNU make -B unconditionally remakes all targets. FreeBSD and NetBSD -B asks for backwards-compatible execution, one shell per command, and OpenBSD -B builds a rule's prerequisites one at a time, its default without -j.Source: illumos make(1) SYNOPSIS; Linux make(1) -B; FreeBSD make(1) -B; NetBSD make(1) -B; OpenBSD make(1) -B |
| FreeBSD, OpenBSD, NetBSD | -V variable | The Solnix synopsis shows -V with no argument. OpenBSD -V variable prints a variable's value, and FreeBSD and NetBSD show -V variable in their synopsis.Source: illumos make(1) SYNOPSIS; OpenBSD make(1) -V; FreeBSD make(1) SYNOPSIS; NetBSD make(1) SYNOPSIS |
| FreeBSD, OpenBSD, NetBSD | -K and -P | Solnix make has -K statefile (with .KEEP_STATE) and -P, which reports dependencies without building them. The FreeBSD, OpenBSD and NetBSD synopses have neither option.Source: illumos make(1) -K, -P; FreeBSD, OpenBSD and NetBSD make(1) SYNOPSIS |
| OpenBSD | system rules file location | Solnix -r skips /usr/share/lib/make/make.rules. OpenBSD -r skips the built-in rules in <sys.mk>, and the default system include directory is /usr/share/mk (changeable with -m).Source: illumos make(1) -r; OpenBSD make(1) -r, -m |
| Linux | -n and recursive make | Solnix -n still executes any command line that references $(MAKE), and in POSIX mode also runs lines starting with +. The GNU -n entry says only that it skips execution 'except in certain circumstances'.Source: illumos make(1) -n; Linux make(1) -n |
Everyday tasks
| Task | Solnix | Linux | FreeBSD | OpenBSD | NetBSD |
|---|---|---|---|---|---|
| build a target from a specific makefile | make -f makefile target | make -f file target | make -f makefile target | make -f mk target | make -f makefile target |
| build with several parallel jobs | make -j maxjobs target | make -j jobs target | make -j max_jobs target | make -j max_jobs target | make -j max_jobs target |
| show commands without running them | make -n target | make -n target | make -n target | make -n target | make -n target |
| keep building other targets after an error | make -k target | make -k target | make -k target | make -k target | make -k target |
| change to a directory before building | make -C directory target | make -C dir target | make -C directory target | make -C directory target | make -C directory target |
| ignore errors from commands | make -i target | make -i target | make -i target | make -i target | make -i target |
| print the rules and macro/variable database | make -p | make -p | — | make -p | — |
| test whether a target is up to date | make -q target | make -q target | make -q target | make -q target | make -q target |
Standards
- POSIX: make is a POSIX.1-2024 utility.
Writing portable scripts
- Avoid
-B,-D,-d,-m,-Vand bare-jin portable scripts; they mean different things or are missing on Solnix, GNU make and the BSDs. Stick to-e,-f,-i,-kand-n. - Name the makefile with
-fif it must work everywhere, so the differing default search lists (GNUmakefile, SCCS) do not matter.
Every difference here is taken from the manual pages linked above: Solnix's published page, Linux (man-pages and the GNU and util-linux manuals), FreeBSD, OpenBSD and NetBSD. Each row names its source. Where a manual is silent, this page is too. Compiled 2026-10-26. Found a mistake? Mail hackers@lists.solnix.io.