Using NMAKE to Compile FORTRAN Programs in M Editor in OS/2Last reviewed: July 19, 1995Article ID: Q63818 |
The information in this article applies to:
SUMMARYTo compile Microsoft FORTRAN programs using the NMAKE utility in the M Editor under OS/2, add the following line to the TOOLS.INI file:
extmake: text nmake /f %s MORE INFORMATIONThe NMAKE utility (also known as the Microsoft Program-Maintenance Utility) interprets a text file of commands, the description file, to compare dates of files and carry out other operations on the basis of the comparison. That is, NMAKE will check to see if any of the FORTRAN programs listed in the description file have been modified. If any have, NMAKE will issue commands to recompile and relink the modified programs. NMAKE is often utilized to compile and link several FORTRAN programs at once. For simplicity, only one FORTRAN program will be used here to demonstrate how to use NMAKE to compile FORTRAN programs in the M Editor. The extmake switch above indicates that the text setting, the %s symbol, should be used when a compilation is run. When running a compilation you pass the text argument to the COMPILE function and the editor executes the NMAKE utility according to this text argument. NMAKE uses the text argument, %s, as the description file because the /F option is used. The /F option specifies that the filename following it is the description file to use. Additional information about the /F option can be found on Page 287 of the "Microsoft CodeView and Utilities User's Guide." To compile a FORTRAN program, TEST.FOR, using the NMAKE utility in the M Editor under OS/2, do the following:
all : test test.obj : test.for fl /c $**test : test.obj link $**;The following is the FORTRAN program TEST.FOR compiled using NMAKE in the M Editor:
write(*,*) ' It works!' endCompiling FORTRAN programs using the NMAKE utility in the M Editor in MS-DOS or the MS-DOS compatibility box of OS/2 is not possible because there is not enough memory to load all the files needed.
|
Additional reference words: kbinf 5.00 5.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |