Lahey/Fujitsu Fortran


By default, AUTOMAKE is run by a batch file called AM.BAT. This batch file executes AUTOMAKE.EXE , which inspects a configuration file and a dependency file, scans for out of date targets, and generates a temporary batch file called AMTEMP.BAT , which contains the commands needed to bring the target up to date. Once AUTOMAKE.EXE is complete, AM.BAT executes AMTEMP.BAT to build the target, and then deletes the temporary batch file.

AUTOMAKE stores details of any dependencies in your program in a dependency file, usually called 'automake.dep '. AUTOMAKE uses this data to deduce which files need to be compiled when you make a change. Unlike NMAKE utilities, which require the user to specify dependencies explicitly, AUTOMAKE creates and maintains this data itself. To do this, AUTOMAKE periodically scans source files to look for INCLUDE and USE statements. This is a very fast process, which adds very little to the overall time taken to complete the update.

The operation of AUTOMAKE is controlled by a configuration file which contains the default compiler name and options, INCLUDE file search rule, etc. For simple situations, where the source code to be compiled is in a single directory, and builds into a single executable, it will probably be possible to use the system default configuration file, called 'automake.fig ' located in LF95's bin directory. In that case there is no need for any customization of AUTOMAKE-- just type 'am ' to update both your program and the dependency file.

In other cases, you may wish to change the default compiler name or options, add a special link command, or change the INCLUDE file search rule; this can be achieved by customizing a local copy of the AUTOMAKE configuration file. More complex systems, perhaps involving source code spread across several directories, can also be handled in this way.

To run AUTOMAKE, simply type 'am'. If there is a configuration file (AUTOMAKE.FIG) in the current directory, AUTOMAKE reads it. Otherwise, it starts the AUTOMAKE Configuration file editor, AMEDIT.EXE.