Mac OS 7.1 Source Docs

Documentation for the Mac OS 7.1 Source Code Reconstruction

View the Project on GitHub belikh/sys71src

Configuration

This document explains the build configuration system for the repository.

Build System Overview

The build is driven by MPW Make tools. Configuration is primarily defined in .make files located in the Make/ directory.

Key Configuration Files

Make/MainCode.Make / Make/Universal.make

The master makefile.

Make/Build.txt

Likely defines build versioning or specific build targets.

Environment Variables

The cross_compile.sh and build_system7.sh scripts set up the following environment variables for empw:

Variable Description
MPW Root of the MPW tools directory.
KS_MPW Alias for MPW (used by empw).
BuildResults Output directory for artifacts (Build/).
ObjDir Directory for intermediate object files.
AIncludes Path to public Assembly includes.
CIncludes Path to public C includes.
IntAIncludes Path to internal Assembly includes.

Feature Flags and Defines

Conditional compilation is handled via compiler flags passed in the Makefile (e.g., -d DEBUG).

Patching

The patch_makefile.sh script dynamically modifies Make/MainCode.Make to inject dependencies.

To change the configuration manually, you can edit Make/MainCode.Make (carefully, preserving line endings and encoding) or modify the patch_makefile.sh script.