LF Fortran 95

Automake Notes

  • As AUTOMAKE executes, it issues brief messages to explain the reasons for all compilations. It also indicates when it is scanning through a file to look for INCLUDE statements.
  • If for any reason the dependency file is deleted, AUTOMAKE will create a new one. Execution of the first AUTOMAKE will be slower than usual, because of the need to regenerate the dependency data.
  • AUTOMAKE recognizes the INCLUDE statements in all common variants of Fortran and C, and can be used with both languages.
  • When AUTOMAKE scans source code to see if it contains INCLUDE statements, it recognizes the following generalized format:
  • Optional spaces at the beginning of the line followed by..
  • An optional compiler control character, '%', '$' or '#', followed by..
  • The word INCLUDE (case insensitive) followed by..
  • An optional colon followed by..
  • The file name, optionally enclosed between apostrophes, quotes or angled brackets. If the file name is enclosed in angled brackets, it is assumed to be in one of the directories specified using the SYSINCLUDE keyword. Otherwise, AUTOMAKE looks in the source file directory, and if it is not there, in the directories specified using the INCLUDE keyword.
  • If AUTOMAKE cannot find an INCLUDE file, it reports the fact to the screen and ignores the dependency relationship.
  • AUTOMAKE is invoked using a batch file called AM.BAT . There is seldom any reason to modify the command file, though it is very simple to do so if required. It consists of two (or three) operations:
  • Execute AUTOMAKE. AUTOMAKE determines what needs to be done in order to update the system, and writes a batch file to do it. The options which may be appended to the AUTOMAKE command are:
  • TO= specifies the name of the output command file created by AUTOMAKE.
  • FIG= specifies the name of the AUTOMAKE configuration file.
  • Execute the command file created by AUTOMAKE.
  • Delete the command file created by AUTOMAKE. This step is, of course, optional.