LMAETC16

LMAETC16 - 15 CHAPTER 1 This chapter describes the...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
15 CHAPTER 1 This chapter describes the Microsoft Program Maintenance Utility (NMAKE) version 1.20. NMAKE is a sophisticated command processor that saves time and simplifies project management. Once you specify which project files depend on others, NMAKE automatically builds your project without recompiling files that haven’t changed since the last build. If you are using the Programmer’s Workbench (PWB) to build your project, PWB automatically creates a makefile and calls NMAKE to run the file. You may want to read this chapter if you intend to build your program outside of PWB, if you want to understand or modify a makefile created by PWB, or if you want to use a foreign makefile in PWB. NMAKE can swap itself to expanded memory, extended memory, or disk to leave room for the commands it spawns. (For more information, see the description of the /M option on page 531.) New Features NMAKE version 1.20 offers the following new features. For details of each feature, see the reference part of this chapter. u New options: /B, /K, /M, /V u The !MESSAGE directive u Two preprocessing operators: DEFINED , EXIST u Three keywords for use with the !ELSE directive: IF , IFDEF , IFNDEF u New directives: !ELSEIF , !ELSEIFDEF , !ELSEIFNDEF u Addition of .CPP and .CXX to the .SUFFIXES list u Predefined macros for C++ programs: CPP , CXX , CPPFLAGS , CXXFLAGS u Predefined inference rules for C++ programs Overview NMAKE works by looking at the “time stamp” of a file. A time stamp is the time and date the file was last modified. Time stamps are assigned by most operating systems in 2-second intervals. NMAKE compares the time stamps of a “target” file and its “dependent” files. A target is usually a file you want to create, such as an executable file, though it could be a label for a set of commands you wish to Filename: e6119de20a182a78e4486dcfa736500475e838a1.DOC Project: Template: Author: Last Saved By: Revision #: 0 Page: 15 of 59 Printed: 10/27/92 15:04 A10/P10
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Environment and Tools execute. A dependent is usually a file from which a target is created, such as a source file. A target is “out-of-date” if any of its dependents has a later time stamp than the target or if the target does not exist. (For information on how the 2-second interval affects your build, see the description of the /B option on page 530.) Warning For NMAKE to work properly, the date and time setting on your system must be consistent relative to previous settings. If you set the date and time each time you start the system, be careful to set it accurately. If your system stores a setting, be certain that the battery is working. When you run NMAKE, it reads a “makefile” that you supply. A makefile (sometimes called a description file) is a text file containing a set of instructions that NMAKE uses to build your project. The instructions consist of description blocks, macros, directives, and inference rules. Each description block typically lists a target (or targets), the target’s dependents, and the commands that build the
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/24/2012 for the course EE 3751 taught by Professor Desouza during the Spring '04 term at LSU.

Page1 / 59

LMAETC16 - 15 CHAPTER 1 This chapter describes the...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online