Documentation for the Mac OS 7.1 Source Code Reconstruction
This document explains the build configuration system for the repository.
The build is driven by MPW Make tools. Configuration is primarily defined in .make files located in the Make/ directory.
Make/MainCode.Make / Make/Universal.makeThe master makefile.
Make/Build.txtLikely defines build versioning or specific build targets.
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. |
Conditional compilation is handled via compiler flags passed in the Makefile (e.g., -d DEBUG).
The patch_makefile.sh script dynamically modifies Make/MainCode.Make to inject dependencies.
MiniFinder.c.o, VirtualMemoryStub.c.o, etc., without manually editing the complex makefile.To change the configuration manually, you can edit Make/MainCode.Make (carefully, preserving line endings and encoding) or modify the patch_makefile.sh script.