Sign in

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.

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 withTopicWhat differs
Linuxsame program as the gnumake alternativeThe 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 fourdefault makefile namesSolnix /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 meaningSolnix -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, OpenBSDserial vs parallel defaultSolnix 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 meaningSolnix -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 debuggingSolnix -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 meaningThe 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 variableThe 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 -PSolnix 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
OpenBSDsystem rules file locationSolnix -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 makeSolnix -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

TaskSolnixLinuxFreeBSDOpenBSDNetBSD
build a target from a specific makefilemake -f makefile targetmake -f file targetmake -f makefile targetmake -f mk targetmake -f makefile target
build with several parallel jobsmake -j maxjobs targetmake -j jobs targetmake -j max_jobs targetmake -j max_jobs targetmake -j max_jobs target
show commands without running themmake -n targetmake -n targetmake -n targetmake -n targetmake -n target
keep building other targets after an errormake -k targetmake -k targetmake -k targetmake -k targetmake -k target
change to a directory before buildingmake -C directory targetmake -C dir targetmake -C directory targetmake -C directory targetmake -C directory target
ignore errors from commandsmake -i targetmake -i targetmake -i targetmake -i targetmake -i target
print the rules and macro/variable databasemake -pmake -p—make -p—
test whether a target is up to datemake -q targetmake -q targetmake -q targetmake -q targetmake -q target

Standards

Writing portable scripts

  • Avoid -B, -D, -d, -m, -V and bare -j in portable scripts; they mean different things or are missing on Solnix, GNU make and the BSDs. Stick to -e, -f, -i, -k and -n.
  • Name the makefile with -f if 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.