Creating a Makefile Using Create3DOMake
The Create3DOMake MPW tool creates a simple makefile for building a 3DO
program. After you've installed the 3DO software from the installation
disc and have moved the Userstartup3DO file into your MPW folder, a 3DO
menu becomes available from MPW.
When you select the Create 3DO Makefile command in the 3DO menu, a dialog appears that lets you define the makefile. As you specify options, a Command Line section in the dialog is filled in.
The program for which you create the makefile may be written in any combination of Assembly Language, C, C++, or Rez. When you run the makefile, it will copy the successfully built program to the {3DORemote} folder. If you checked "Symbolic debugger information," the makefile also copies the symbol file to the {3DORemote} folder.
After the tool is installed, you can use it from the command line or via the graphical user interface as follows:
Figure 1: Create3DO Make dialog.
The program name and one source file are the only obligatory arguments.
Caution: The options "Include 3D libraries and "Enable memory
leaks detection" are currently not valid.
As you enter the information, the Command Line section is updated accordingly. The illustration below shows a completed dialog box for creating a program named UFO that includes symbolic debugging information but none of the other options.
Figure 2: Create3DOMake example
Note: In case of complex dependencies among header files, use the makefile created by Create3DOMake as a starting point, then add special dependencies in the appropriate section.
After MPW has created the executables, you can test the program on the 3DO system using the 3DO Debugger as your interface to the 3DO hardware. For more information, see the 3DO Debugger Programmer's Guide in the volume "3DO Tools for Programming I" that is part of the Toolkit documentation set (blue cover).
If compilation does not work, you need to resolve the error messages provided in the MPW worksheet.