The Build Script
The first step in compiling sendmail is to establish an object directory and a Makefile that is appropriate to your machine architecture and operating system. You do this by running the Build script in the sendmail source directory:[3]
%cd sendmail%./Build -nConfiguration: pfx=, os=SunOS, rel=4.1.4, rbase=4, rroot=4.1, arch=sun4, sfx= Using M4=/usr/5bin/m4 Creating ../obj.SunOS.4.1.4.sun4/sendmail using ../devtools/OS/SunOS ← many more lines here %
Here, Build found that our machine was a
sun4, running the SunOS 4.1.4 release of Unix.
Build then created the working directory
../obj.SunOS.4.1.4.sun4, set up symbolic links
to all the source files in that directory, and finally generated a
Makefile there.
The Build program understands several
command-line switches that can be used to modify its behavior (see
Table 2-2). Any switch or other command-line
argument that is not in that table is carried through and passed as
is to the make(1) program.
For example,
specifying the -n switch to
Build (in the earlier example) caused
Build to pass that switch to
make(1), thereby preventing
make(1) from actually building
sendmail.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access