How to compile Macintosh 680x0 applications belonging to the Gryphel Project, including many of the Mini vMac extras.
Each of these applications is released as a disk image, all of them in the same format. At the top level of the image is the compiled application and a folder named "source". The source folder contains a file named "app.c", and also other files, with names ending in ".i", that are used by "app.c". All of the source code is written in the C language, except for the Macintosh style "resources". The resources are contained only in the compiled application, there is no other original copy in the disk image.
The Symantec C compiler is included in the Macintosh Programmer's Workshop 3.5 Golden Master that is still available from Apple.
To compile the Mini vMac build system, mount its disk image, and then execute these commands:
Set TheApp MnvM_bld SC -opt space -proto strict -w 17 -b2 -mbg off "{TheApp}:source:app.c" -o "{TheApp}:app.o" Link -rn "{TheApp}:app.o" "{Libraries}Interface.o" "{Libraries}MacRuntime.o" -o "{TheApp}:{TheApp}" Delete "{TheApp}:app.o"
To compile other applications, replace 'MnvM_bld' in the first line.
To execute commands in MPW, enter them into the Worksheet, select them, and then press the “Enter” key. The compile is done when the cursor stops spinning.
MPW 3.5 requires a Macintosh II or later. The Mini vMac Macintosh II emulation in development works well enough to run this version of MPW.
The MPW C compiler is included in MPW 3.0 (other versions might or might not also work).
To compile the Mini vMac build system, mount its disk image, and then execute these commands:
Set TheApp MnvM_bld C -r -b2 -mbg off "{TheApp}:source:app.c" -i "{TheApp}:source:" -o "{TheApp}:app.o" Link -rn "{TheApp}:app.o" "{clibraries}CRuntime.o" "{clibraries}CInterface.o" "{libraries}Interface.o" -o "{TheApp}:{TheApp}" Delete "{TheApp}:app.o"
To compile other applications, replace 'MnvM_bld' in the first line.
... to be documented ...
... to be documented ...
:
If you find Mini vMac useful, please consider helping the Gryphel Project, of which it is a part.
Next - Mini vMac compile time options