Documentation for the Mac OS 7.1 Source Code Reconstruction
This guide will help you set up your development environment to cross-compile Macintosh System 7.1 on Linux.
Before you begin, ensure you have the following installed on your Linux machine (e.g., Ubuntu/Debian):
make, gcc (standard Linux build tools).sudo apt-get update
sudo apt-get install git wget unrar hfsutils build-essential
git clone <repository-url> system7-source
cd system7-source
empwThe build system relies on empw (Emulated MPW) to run the original Macintosh Programmer’s Workshop tools.
empw from ksherlock/mpw.empw binary is in your system $PATH.empw --version
# Should output version information
You need to populate the MPW/ directory in the root of this repository with the MPW Shell and Tools. These are proprietary files and are not included in this repository.
MPW in the repo root.The cross_compile.sh script automates the remaining setup:
build_system7.sh../cross_compile.sh
Note: If you are missing the MPW/ directory, the script will warn you.
Once setup is complete, use the generated wrapper script to start the build:
./build_system7.sh
This will:
empw.Make/Universal.make (or Make/MainCode.Make).Build/ directory.To verify your environment, you can look at the Internal/C/MiniFinder.c. This is a minimal application that replaces the Finder.
If the build succeeds, you should see an object file or binary corresponding to this stub in the build output.
ls -l Build/