This section describes where to find the makefiles for the tutorial example programs and explains how those makefiles are set up.
The makefiles for the tutorial examples are in the TUTORIAL directory except those for HELLO.EXE, which is in the HELLO directory.
Note:
All of the tutorial programs except HELLO are placed in one directory, MFC\SAMPLES\TUTORIAL. Because of this, you can't simply use the default makefile as you can with HELLO. For these programs, you must give NMAKE a specific makefile name.
The makefiles for building with PWB have the same base name as the example program file, plus the .MAK extension. The makefiles for building with NMAKE have the same base name as the example program file but no extension.
Makefiles for the DMTEST, CMDBOOK, and PHBOOK examples are in the MFC\SAMPLES\TUTORIAL directory. Makefiles for the HELLO example are in the MFC\SAMPLES\HELLO directory.
By default, the tutorial makefiles all build release mode programs.
If you want to build debug mode, see “How to Switch from Release to Debug Builds” on page 12. The paths listed here and throughout the chapter are relative paths. You'll probably want to write your own code in separate directories. In particular, if you follow the tutorial step by step and create your own code files to match the code listings given in the chapters, you'll need to write your versions in your own directories to avoid naming clashes with the same files provided on the distribution disks.
After a build, you'll find the .EXE and .OBJ files for the build in these directories.