Making Software

Building software is complicated because source code must be very specifically processed to create a program that works—let alone a program that works well! The make(1) program makes building software easily reproducible, so that a program can be built exactly as the software author intends. make takes its instructions from a configuration file, or makefile, which tells make exactly how to build a program from source. You don’t need to know the internals of a makefile, so we’re not going to dissect one here.

A makefile includes one or more targets and a set of instructions to carry out. For example, typing make install tells make to check the makefile for a procedure called install and, if found, to execute it. A target’s name ...

Get Absolute OpenBSD, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.